users@glassfish.java.net

Re: InvocationTargetException instead of custom _at_ApplicationException

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Thu, 7 Feb 2008 02:32:39 +0100

Aaargh, I think I asked for that InvocationTargetException by myself
when wrapping my remote services with cglib's MethodInterceptor...
I'm sorry for blinder alarm...

W.Sz.

2008/2/7, Witold Szczerba <pljosh.mail_at_gmail.com>:
> 2008/2/6, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>:
> > Can you post the full stack trace?
> > [Message sent by forum member 'ksak' (ksak)]
>
> Here you are; as one can see, there is my @ApplicationException -
> AccountingExportServiceException wrapped by InvocationTargetException:
>
>
> java.lang.reflect.InvocationTargetException
> 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:597)
> at pl.ibpolsoft.sop.client.service.Services$ServiceInterceptor.intercept(Services.java:90)
> at pl.ibpolsoft.sop.core.services.AccountingExportServiceRemote$$EnhancerByCGLIB$$b2b84d28.getSymfoniaDocs(<generated>)
> at pl.ibpolsoft.sop.client.model.SymfoniaExportModel.getDocs(SymfoniaExportModel.java:100)
> at pl.ibpolsoft.sop.client.model.SymfoniaExportModel.initialize(SymfoniaExportModel.java:118)
> at pl.ibpolsoft.sop.client.model.SymfoniaExportModel.<init>(SymfoniaExportModel.java:57)
> at pl.ibpolsoft.sop.client.Controller$19.doInBackground(Controller.java:993)
> at pl.ibpolsoft.sop.client.Controller$19.doInBackground(Controller.java:991)
> at javax.swing.SwingWorker$1.call(SwingWorker.java:278)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at javax.swing.SwingWorker.run(SwingWorker.java:317)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: pl.ibpolsoft.sop.core.services.AccountingExportServiceException:
> custom message
> at pl.ibpolsoft.sop.core.services.SymfoniaExportServiceBean.getSymfoniaDocs(SymfoniaExportServiceBean.java:367)
> 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:597)
> at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
> at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
> at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
> at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
> at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
> at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:77)
> at $Proxy245.getSymfoniaDocs(Unknown Source)
> 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:597)
> at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154)
> at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
> at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
> at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
> at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
> at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
> at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
> at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
> at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
> at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
> at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
>