[jBPM] - Unable to save process from process-designer after moving it from Eclipse (NPE)
by mcfeber
mcfeber [https://community.jboss.org/people/mcfeber] created the discussion
"Unable to save process from process-designer after moving it from Eclipse (NPE)"
To view the discussion, visit: https://community.jboss.org/message/750296#750296
--------------------------------------------------------------
I am using guvnor 5.4.0 Final and process-designer.2.2.1.Final in tomcat 7.
I import (Add... via webdav) a simple bpmn2 process (start,script,stop) from Eclipse, open it in the designer, make a small change (move the icons) and select save.
The designer reports:
400 Sorry, a technical error occurred. Please contact a system administrator.
The catalina.out has the following (partial) stack trace:
ERROR 25-07 11:54:33,597 (LoggingHelper.java:error:74) Service method 'public abstract java.lang.String org.drools.guvnor.client.rpc.AssetService.checkinVersion(org.drools.guvnor.client.rpc.Asset) throws com.google.gwt.user.client.rpc.SerializationException' threw an unexpected exception: java. ang.NullPointerException
java.lang.NullPointerException
at org.drools.repository.AssetItem.updateContent(AssetItem.java:390)
at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.storeAssetContent(BPMN2ProcessHandler.java:155)
at org.drools.guvnor.server.RepositoryAssetOperations.checkinVersion(RepositoryAssetOperations.java:180)
at org.drools.guvnor.server.RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetOperations$Proxy$_$$_WeldClien Proxy.java)
at org.drools.guvnor.server.RepositoryAssetService.checkinVersion(RepositoryAssetService.java:155)
at org.drools.guvnor.server.RepositoryAssetService$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetService$Proxy$_$$_WeldClientProxy java)
at org.drools.guvnor.server.RepositoryServiceServlet.checkinVersion(RepositoryServiceServlet.java:596)
After that, any attempt to save the process results in the following message:
Error: Unable to save this asset, as it has been recently updated by [admin]
I've tried this with validation (after creating the PNG) where the designer reports it as valid and without validation, and the result is the same. Is there a way around this? I need to be able to round-trip processes between Eclipse and guvnor.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750296#750296]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[JBoss Remoting] - PermGen Space: OutOfMemory caused by loading the same class multiple times
by Fabian Epp
Fabian Epp [https://community.jboss.org/people/fabian.epp] created the discussion
"PermGen Space: OutOfMemory caused by loading the same class multiple times"
To view the discussion, visit: https://community.jboss.org/message/749853#749853
--------------------------------------------------------------
Hello Community,
in our situation we have some server side classes which the osgi-client doesn´t have in it´s classpath. The client knows only its interfaces. The implementations will be loaded from server via Remote Class Loading.
Now the problem is, when we call a server method which returns a certain implementation, the following scenario happens::
1.) On each server call, a new ClassLoader will be created which loads all classes which is needed to create a single instance of the requested type.
2.) At the next server call, the previous loaded classes are not reused. Instead a new ClassLoader is created which loads and stores the same classes again
3.) If the loaded instances are remembered in a Collection the Garbage Collector has no chance to unload the classes because there is always exactly one existing reference.
--> So, the Perm Gen Space increases and increases till we get an PermGenSpace Out Of Memory Exception
So, my question is:
Is it possible that the same classloader load all classes so that one class is only one time?
How can it be configured?
I´m happy about every solution.
Thank you for your help:
Fabian
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749853#749853]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[Beginner's Corner] - Re: Nessus scan makes JBoss 5.1.0.GA stop processing web requests
by izan
izan [https://community.jboss.org/people/izan] created the discussion
"Re: Nessus scan makes JBoss 5.1.0.GA stop processing web requests"
To view the discussion, visit: https://community.jboss.org/message/719131#719131
--------------------------------------------------------------
Hi all!
I'm seeing this error also, and don't know how to get over it. I am using JBoss AS 5.1.0.GA with jboss-remoting 2.5.1, and also checked with jboss-remoting.jar 2.5.4.SP3 in client and common/lib folders (not sure if I should replace more JARs)
These are the tests that I have done so far:
1. Nessus scan on port 3873
2012-02-23 14:23:39,936 ERROR [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#4[xx.x.x.x:53826]) WorkerThread#4[x.x.x.x:53826] exception occurred during first invocation
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor199.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:909)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:491)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:100)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:66)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
... 6 more
2. telnet localhost 3873 throws the following exception
2012-02-23 14:23:55,246 ERROR [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#4[x.x.x.x:54029]) WorkerThread#4[x.x.x.x:54029] exception occurred during first invocation
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor199.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:909)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:491)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2265)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2278)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:100)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:66)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
Don't know if this was solved by the original poster somehow, but if someone has a clue where to keep looking, I'd be much obliged!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/719131#719131]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[jBPM] - Re: [Jbpm5]how to get the image showing the current status of a workflow
by Amit Joshi
Amit Joshi [https://community.jboss.org/people/mailamitjoshi] created the discussion
"Re: [Jbpm5]how to get the image showing the current status of a workflow"
To view the discussion, visit: https://community.jboss.org/message/749800#749800
--------------------------------------------------------------
Hi,
Many thanks for your reply. I am trying the solution mentioned by you but I end up with the following exception:
org.jbpm.api.JbpmException: resource jbpm.cfg.xml does not exist
at org.jbpm.pvm.internal.stream.ResourceStreamInput.openStream(ResourceStreamInput.java:60)
at org.jbpm.pvm.internal.xml.Parse.getInputSource(Parse.java:146)
at org.jbpm.pvm.internal.xml.Parser.buildDocument(Parser.java:453)
at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:425)
at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)
at org.jbpm.api.Configuration.setResource(Configuration.java:79)
at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)
Is the missing file required in jbpm 5? Any workaround?
Thanks and regards,
Amit
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749800#749800]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months