Hello,

the application i write is deployed to the JBoss 4.0.3SP1 successfully. My 
client successfully calls simple session beans remotely.

If the server side code tries to read or write an Entity, the appended 
exception is being thrown.

The hot code is (please refer to the last line of each snippet):


  | Query query = manager.createQuery(
  |                             "SELECT ps FROM ProzessStatus AS ps "
  |                             + "WHERE ps.applikation=:app AND 
ps.userId=:uid");
  | query.setParameter("app", applikation);
  | query.setParameter("uid", userId);
  |             
  | ProzessStatus prozessStatus = (ProzessStatus)query.getSingleResult();
  | 

and 


  |   prozessStatus = new ProzessStatus();
  |   prozessStatus.setApplikation(applikation);
  |   prozessStatus.setUserId(userId);
  |   manager.persist(prozessStatus);
  | 

After some debugging the exception now is catched and logged by the server side 
code as follows:

  | 19:36:50,008 ERROR [ProzessStatusServiceBean] 
java.lang.IllegalArgumentException: Unknown entity: 
org.mywms.deckerwms.model.ProzessStatus
  | java.lang.IllegalArgumentException: Unknown entity: 
org.mywms.deckerwms.model.ProzessStatus
  |         at 
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:133)
  |         at 
org.jboss.ejb3.entity.InjectedEntityManager.persist(InjectedEntityManager.java:97)
  |         at 
org.mywms.deckerwms.service.ProzessStatusServiceBean.setProzessStatus(ProzessStatusServiceBean.java:104)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
  |         at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:113)
  |         at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:138)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:32)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:148)
  |         at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:60)
  |         at $Proxy81.setProzessStatus(Unknown Source)
  |         at 
org.mywms.deckerwms.facade.ApplikationsStatusBean.setProzessStatus(ApplikationsStatusBean.java:45)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
  |         at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66)
  |         at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:32)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
  |         at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |         at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:189)
  |         at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
  |         at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:69)
  |         at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
  |         at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
  |         at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:247)
  |         at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:299)
  |         at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:169)
  | 

I do not believe in an unknown Entity, because the server logs says:

anonymous wrote : 19:34:12,898 INFO  [Ejb3Configuration] found EJB3 Entity 
bean: org.mywms.deckerwms.model.ProzessStatus


Another thing is, that if the application is undeployed, the server log tells 
me:

anonymous wrote : 
  | 19:50:50,622 WARN  [Ejb3Module] Stopping failed 
jboss.j2ee:service=EJB3,module=DeckerWMS.ejb3
  | javax.naming.NameNotFoundException: DeckerWMS not bound
  | 


I have another project here, which seems to work properly with equal settings 
and configurations.
I have checked everything up and down several times; without success.

Please - please help!


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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to