cancel
Showing results for 
Search instead for 
Did you mean: 

Saving error ...

andytau
Champ in-the-making
Champ in-the-making
Hi,
when I try ho add a new model I get the error below, while if I try to edit an existing model everything go ok.
How can I solve ?

Feb 15, 2013 12:19:18 PM org.activiti.editor.rest.model.ModelSaveRestResource saveModel
SEVERE: Error saving model
java.lang.NullPointerException
   at org.activiti.editor.rest.model.ModelSaveRestResource.saveModel(ModelSaveRestResource.java:61)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:449)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:493)
   at org.restlet.resource.ServerResource.put(ServerResource.java:1142)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:378)
   at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:594)
   at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:302)
   at org.restlet.resource.ServerResource.handle(ServerResource.java:849)
   at org.restlet.resource.Finder.handle(Finder.java:513)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:500)
   at org.restlet.routing.Router.handle(Router.java:740)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.engine.ChainHelper.handle(ChainHelper.java:114)
   at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:75)
   at org.restlet.Application.handle(Application.java:391)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:500)
   at org.restlet.routing.Router.handle(Router.java:740)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:500)
   at org.restlet.routing.Router.handle(Router.java:740)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.engine.ChainHelper.handle(ChainHelper.java:114)
   at org.restlet.Component.handle(Component.java:391)
   at org.restlet.Server.handle(Server.java:491)
   at org.restlet.engine.ServerHelper.handle(ServerHelper.java:74)
   at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:153)
   at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1031)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:722)
9 REPLIES 9

trademak
Star Contributor
Star Contributor
Could you verify that if you fill-in a description that it works?
Then it's definitely a bug.

Best regards,

andytau
Champ in-the-making
Champ in-the-making
If you mean description of process … then I tried but it doesn't work any way.

Thanks.

andytau
Champ in-the-making
Champ in-the-making
Dear All,
I made another try … I exported the model process (included in the distribution), and then reimported the xml. I can correctly deploy this new process, but if I open the imported model and then try to save it (even without modifying it) I get the same error.

Can anyone please suggest a solution ?

Thanks.

Best,
Andrea

trademak
Star Contributor
Star Contributor
Hi,

If you fill-in a description do you get a different stacktrace?
Are you using the Modeler that's included in the 5.11 release?

Best regards,

andytau
Champ in-the-making
Champ in-the-making
Hi,
thanks for your reply. Yes the very same stacktrace … I think this is something related to grants, I made this try :

1. create a new model accessing activiti-explorer from a browser window on the server itself. Saved and everything went ok.
2. accessing this model from a browser on a different machine tried to save without modifying and get always the same error
3. reaccessing the model from the server itself tried to save and again everything went ok.

Do I have to configure some particular policies fro tomcat ?

Thanks again.

Best regards,
Andrea

andytau
Champ in-the-making
Champ in-the-making
Sorry. Yes it's 5.11

trademak
Star Contributor
Star Contributor
Hi,

This works fine here. So no problem working from another machine.
Could it be related to your network?

Best regards,

andytau
Champ in-the-making
Champ in-the-making
I'm checking firewall settings …

Kindest regards,
Andrea

andytau
Champ in-the-making
Champ in-the-making
Hi,
solution found. Firewall (JUNIPER) was blocking the request since the signature was associated with a directory traversal attack. Since this is a default rule for many firewalls maybe it should be avoided to use the ../ in the post uri from editor.

Thanks.

Best regards,
Andrea