[jboss-user] [JBoss jBPM] - Get Instance

magnumff do-not-reply at jboss.com
Tue Sep 16 08:30:26 EDT 2008


hi 

I have developed a Java client application to external web service :


  | Properties props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
  | props.put(Context.PROVIDER_URL, "jnp://localhost:1099");			
  | InitialContext ctx = new InitialContext(props);			
  | RemoteCommandServiceHome commandServiceHome = (RemoteCommandServiceHome) ctx.lookup("ejb/CommandServiceBean");
  | RemoteCommandService commandService =commandServiceHome.create();
  | 


can create an instance of the process xxxx. With the command :

commandService.execute(new NewProcessInstanceCommand("xxxx"));

I can not predict application process created. With the command :

Object o=commandService.execute( new GetProcessInstanceCommand(17)); 


error is :

Exception : java.lang.reflect.UndeclaredThrowableException
Cause : java.io.InvalidClassException: org.hibernate.collection.AbstractPersistentCollection; local class incompatible: stream classdesc serialVersionUID = 7602608801868099635, local class serialVersionUID = -5723701046347946317
StackTrace : [Ljava.lang.StackTraceElement;@9c82f4
Message : null
java.lang.reflect.UndeclaredThrowableException
	at $Proxy1.execute(Unknown Source)
	at ProvaClient.main(ProvaClient.java:40)
Caused by: java.io.InvalidClassException: org.hibernate.collection.AbstractPersistentCollection; local class incompatible: stream classdesc serialVersionUID = 7602608801868099635, local class serialVersionUID = -5723701046347946317
	at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
	at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:134)
	at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:331)
	at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:194)
	at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
	at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
	at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
	at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
	... 2 more











View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176776#4176776

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176776



More information about the jboss-user mailing list