javax.ejb.ejbexception: java.lang.illegalargumentexception: an exception occ

javax.ejb.EJBException: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is:
java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is: oracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is:
java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManageroracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.ejb.EJBUtils.getUserException(EJBUtils.java:346) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.ejb.interceptor.system.DMSInterceptor.(10.1.3.1.1) ].server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87) at LoginEJB_RemoteProxy_fif0gf.login(Unknown Source) at controller.user.addregister.service(addregister.java:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:258) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197) at controller.controller.service(controller.java:28) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

是你的SessionBean里面的方法写得有问题,
em.createQuery("");
里面的句子是否有错误,这点应该检查下。

------------
An exception occured while creating a query in EntityManager; nested exception is:
这个错误就是指的这个意思。从上面的报错中,看不出是哪个方法。
温馨提示:内容为网友见解,仅供参考
无其他回答

...java.lang.illegalargumentexception: an exception occ_百度...
An exception occured while creating a query in EntityManager; nested exception is:这个错误就是指的这个意思。从上面的报错中,看不出是哪个方法。

相似回答