xjodoin/torpedo — Issue #5: Appels successifs
Author: mdebellefeuille
Created: 2011-10-17 19:33:38+00:00
State: open

Je ne sais pas s'il y a des états statiques, mais quand je call de manière subséquentes mes requêtes j'obtiens l'un des 2 stacks suivant :

java.lang.RuntimeException: void is final
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:344)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at javassist.util.proxy.ProxyFactory.create(ProxyFactory.java:488)
at javassist.util.proxy.ProxyFactory.create(ProxyFactory.java:473)
at com.netappsid.jpaquery.internal.JoinHandler.handleCall(JoinHandler.java:50)
at com.netappsid.jpaquery.internal.FJPAMethodHandler.handle(FJPAMethodHandler.java:94)
at com.netappsid.jpaquery.FJPAQuery.innerJoin(FJPAQuery.java:110)
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardQueryBuilder.generateNumberOfRequisitionQuery(OrderDashBoardQueryBuilder.java:155)
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardMapManager.findNumberOfRequisition(OrderDashBoardMapManager.java:111)
at com.netappsid.erp.server.orderdashboard.services.beans.OrderDashBoardServicesBean.generateOrderDashBoard(OrderDashBoardServicesBean.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.netappsid.mob.ejb3.internal.InvocationHandler$InvocationContextImpl.proceed(InvocationHandler.java:97)
at com.netappsid.mob.ejb3.internal.InvocationHandler.call(InvocationHandler.java:173)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javassist.CannotCompileException: void is final
at javassist.util.proxy.ProxyFactory.make(ProxyFactory.java:526)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:335)
... 21 more

ou

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.netappsid.mob.ejb3.internal.InvocationHandler$InvocationContextImpl.proceed(InvocationHandler.java:97)
at com.netappsid.mob.ejb3.internal.InvocationHandler.call(InvocationHandler.java:173)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardQueryBuilder.generateNumberOfPReceivedPurchaseQuery(OrderDashBoardQueryBuilder.java:188)
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardMapManager.findNumberOfReceivedPurchase(OrderDashBoardMapManager.java:129)
at com.netappsid.erp.server.orderdashboard.services.beans.OrderDashBoardServicesBean.generateOrderDashBoard(OrderDashBoardServicesBean.java:76)
... 11 more

parfois ça passe d'autre ça ne passe pas. Semble être une condition de course. Ce qui est bizarre c'est que le null pointer semble être sur un proxy généré et en plus jamais le même.