Using java.lang.reflect.Method.invoke on a static method?

This is probably a FAQ, but I am finding it impossible to construct a search which answers this question for me.
How do I call java.lang.reflect.Method.invoke on a static (e.g. class) method? Is it even possible?
Thanks,
dwh

Is this of any help?
http://www.esus.com/javaindex/j2se/jdk1.2/javalang/reflection/reflection.html
Cheers,
Joris

Similar Messages

  • How to use java.lang.Class.getMethod() and java.lang.reflect.Method.invoke(

    I want to call a specified method of one class dynamically. I use the method
    "getMethod()" in package "java.lang.Class" to get method and "invoke()" in
    " java.lang.reflect.Method " to invoke method.
    The problem is as following :
    1. There are two argument in this method "getMethod(String MethodName , Class[] paremterTypes)" in package "Class". I have no idea about the second parameter " Class[] parameterTypes ".what does the argument exactly mean ?
    2. There are two argument in the method "invoke(object obj, object[] obj)" in package "Method".
    I have no idea about the second parameter "object[] obj ".what is mean ?
    I pass " null " value to it and it works.But i pass anothers ,jvm will throw exception.

    I have a generic Method Executer that has a method like
    public Object execute(String className, String methodName, Object args)
        String fullClassName = packageName + className ;
        Class delegateClass = Class.forName(fullClassName);
        BaseDelegate delegate = (BaseDelegate)delegateClass.newInstance();
        Method method = null;
        if (args == null)
            method = delegateClass.getMethod(methodName, new Class[] {});
            obj = method.invoke(delegate,new Object[] {});
        else
            method = delegateClass.getMethod(methodName, new Class[] {args.getClass()});
            obj = method.invoke(delegate, new Object[]{args});
       }This seems to have problems when I call the method from a class like:
    execute("CategoryDelegate", "getCategoryById", new Integer(4144));(I get a NoSuchMethodException)
    The method I am trying to execute in CategoryDelegate looks like:
    public Category getCategoryById(int categoryId) throws DelegateExceptionI think it has to deal with the difference in the way we handle Primitive Wrappers and Objects. Wrapper we have to use Interger.TYPE and with the rest of the Objects we have to use obj.class.
    Am I doing something wrong here? Any suggestions to make it work for primitive wrappers as well as Objects?

  • Using java.lang.reflect.Proxy class

    I am investigating the uses of the new Proxy object introduced in jdk1.3.
    One of the first things I noticed was how slow it was to generate a class via Proxy. The system can spend over 100 millliseconds to generate one. If you create many of those this can suck up alot of time. Is there a way to speed this up? I noticed when I try to cache the Object sent back into one of the java.util Collection I get errors when trying to retrieve them. Usually class cast errors when I call the 'isEmpty' method on the Collection.
    I noticed that I could cache them into an array of Objects, I have also been able to store the Class that is generated, and the Constructor, so when new ones were needed I could just call the constructor using the Class that was pre generated.
    In my performance tests it took in the order of 2 minutes to generate 100,000 without any cacheing.
    When I cached the objects in an [] of Objects that time went down to around 15 seconds. When I cached the Class and Constructor the time went to around 30 seconds.
    Has anyone out there attempted to cache Proxy's?
    I would appreciate any experience you have had with this.
    thanks in advance
    chris

    Cris,
    I am very interested in the caching approach you took. I have an application that uses a lot of proxies, any kind of optimization on proxies would result in a big performance boost.
    Thanks,
    David

  • Java.lang.StackOverflowError when invoking a method, returning a org.w3c.dom.Document object, on a SessionBean

    Hello,
    I hope someone can help me with this.
    I have a stateless session bean, which is returning a
    org.w3c.dom.Document object. The whole object is getting created
    but at the client side I am getting the following exception:
    java.rmi.RemoteException: ; nested exception is:
    weblogic.rmi.ServerError: A RemoteException occurred in the server method
    - with nested exception:
    [java.lang.StackOverflowError:
    Start server side stack trace:
    java.lang.StackOverflowError
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetEx
    ception.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectOutputStream.invokeObjectWriter(Compiled Code)
    at java.io.ObjectOutputStream.outputObject(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at java.io.ObjectOutputStream.outputClassFields(Compiled Code)
    at java.io.ObjectOutputStream.defaultWriteObject(Compiled Code)
    Then multiple occurences of the last few lines followed by
    at org.apache.xerces.dom.ParentNode.writeObject(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectOutputStream.invokeObjectWriter(Compiled Code)
    at java.io.ObjectOutputStream.outputObject(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at java.io.ObjectOutputStream.outputClassFields(Compiled Code)
    at java.io.ObjectOutputStream.defaultWriteObject(Compiled Code)
    at org.apache.xerces.dom.ParentNode.writeObject(Compiled Code)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectOutputStream.invokeObjectWriter(Compiled Code)
    at java.io.ObjectOutputStream.outputObject(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled
    Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(Compiled
    Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled
    Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(Compiled
    Code)
    at weblogic.rmi.extensions.AbstractOutputStream2.writeObject(Compiled
    Code)
    at com.ssmb.teams.model.CMSInterestDataEJBEOImpl_WLSkel.invoke(Compiled
    Code)
    at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code
    at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled
    Code)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    End server side stack trace
    at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.j
    ava:76)
    at com.ssmb.teams.model.CMSInterestDataEJBEOImpl_WLStub.getRegionAnalyst
    Data(CMSInterestDataEJBEOImpl_WLStub.java:558)
    at com.ssmb.teams.model.CMSInterestDataEJBEOImpl_ServiceStub.getRegionAn
    alystData(CMSInterestDataEJBEOImpl_ServiceStub.java, Compiled Code)
    at CMSJavaScript.main(CMSJavaScript.java:87)
    The structure of the XML document is
    <Maillist>
         <Region>
              <RegionCode>7</RegionCode>
              <RegionName>Asia Pacific</RegionName>
              <Analyst>
                   <Id>11111</Id>
                   <Name>AAAAAAAAAAAAAAAAA</Name>
              </Analyst>
              <Analyst>
                   <Id>22222</Id>
                   <Name>BBBBBBBBBBBBBBBBBB</Name>
              </Analyst>
         </Region>
    </Maillist>
    If the no. of Anlayst elements are 219, I am getting this error ( the same thing
    is working for less no. of analyst).
    Surprisingly when I access this ejb, by deploying it on my local server instance
    on Win-NT, it works fine. I am getting this
    exception, when the server is running on Sun Solaris.
    The weblogic version is 5.1.
    It will be really helpful if someone can reply to mee ASAP
    Thanks.
    Suren.

    Thanks a lot guys for all that information.
    Rajesh Mirchandani <[email protected]> wrote:
    Suren,
    More info at
    http://edocs.bea.com/wls/docs60/faq/java.html#251197
    Rob Woollen wrote:
    The quick fix is probably to use the -Xss argument on the Solaris JVMto increase the
    thread stack size.
    -- Rob
    Suren wrote:
    Thanks for your quick response.
    But how do we overcome with this?
    I tried to look for some help with this, but if you have any idea,
    can you suggest
    something ?
    Thanks
    Suren.
    Rob Woollen <[email protected]> wrote:
    It looks like the stack is overflowing when your DOM Tree is being
    serialized.
    Perhaps the Solaris JVM has a lower stack size by default.
    -- Rob
    Suren wrote:
    Hello,
    I hope someone can help me with this.
    I have a stateless session bean, which is returning a
    org.w3c.dom.Document object. The whole object is getting created
    but at the client side I am getting the following exception:
    java.rmi.RemoteException: ; nested exception is:
    weblogic.rmi.ServerError: A RemoteException occurred in
    the
    server method
    - with nested exception:
    [java.lang.StackOverflowError:
    Start server side stack trace:
    java.lang.StackOverflowError
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetEx
    ception.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectOutputStream.invokeObjectWriter(Compiled
    Code)
    at java.io.ObjectOutputStream.outputObject(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at java.io.ObjectOutputStream.outputClassFields(CompiledCode)
    at java.io.ObjectOutputStream.defaultWriteObject(CompiledCode)
    Then multiple occurences of the last few lines followed by
    at org.apache.xerces.dom.ParentNode.writeObject(CompiledCode)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectOutputStream.invokeObjectWriter(CompiledCode)
    at java.io.ObjectOutputStream.outputObject(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at java.io.ObjectOutputStream.outputClassFields(CompiledCode)
    at java.io.ObjectOutputStream.defaultWriteObject(CompiledCode)
    at org.apache.xerces.dom.ParentNode.writeObject(CompiledCode)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Compiled Code)
    at java.io.ObjectOutputStream.invokeObjectWriter(CompiledCode)
    at java.io.ObjectOutputStream.outputObject(Compiled Code)
    at java.io.ObjectOutputStream.writeObject(Compiled Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled
    Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(Compiled
    Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(Compiled
    Code)
    at weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(Compiled
    Code)
    at weblogic.rmi.extensions.AbstractOutputStream2.writeObject(Compiled
    Code)
    at com.ssmb.teams.model.CMSInterestDataEJBEOImpl_WLSkel.invoke(Compiled
    Code)
    at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(CompiledCode
    at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled
    Code)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(CompiledCode)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    End server side stack trace
    at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.j
    ava:76)
    at com.ssmb.teams.model.CMSInterestDataEJBEOImpl_WLStub.getRegionAnalyst
    Data(CMSInterestDataEJBEOImpl_WLStub.java:558)
    at com.ssmb.teams.model.CMSInterestDataEJBEOImpl_ServiceStub.getRegionAn
    alystData(CMSInterestDataEJBEOImpl_ServiceStub.java, Compiled
    Code)
    at CMSJavaScript.main(CMSJavaScript.java:87)
    The structure of the XML document is
    <Maillist>
    <Region>
    <RegionCode>7</RegionCode>
    <RegionName>Asia Pacific</RegionName>
    <Analyst>
    <Id>11111</Id>
    <Name>AAAAAAAAAAAAAAAAA</Name>
    </Analyst>
    <Analyst>
    <Id>22222</Id>
    <Name>BBBBBBBBBBBBBBBBBB</Name>
    </Analyst>
    </Region>
    </Maillist>
    If the no. of Anlayst elements are 219, I am getting this error( the
    same thing
    is working for less no. of analyst).
    Surprisingly when I access this ejb, by deploying it on my local
    server
    instance
    on Win-NT, it works fine. I am getting this
    exception, when the server is running on Sun Solaris.
    The weblogic version is 5.1.
    It will be really helpful if someone can reply to mee ASAP
    Thanks.
    Suren.

  • ERROR: The Propagation operation ended in error. java.lang.reflect.Undeclar

    Dear all,
    i am using bea weblogic 10.0 ant i am downloading the running Inventory.
    but the below problem occurc when i run ant task for downloading that is
    ant -buildfile propagation_ant.xml downloadSrc the below problem occurs. i am new to bea so how can i debug the problem
    VERBOSE: InventoryTreeWalker: visiting node: Application:ContentServices:BEA Repository:ContentNodes:Webmasters:Sports:I won`t step down from presidency Khan.txt
    ERROR: The Propagation operation ended in error.
    java.lang.reflect.UndeclaredThrowableException
    at weblogic.security.providers.xacml.authorization.XACMLAuthorizerMBeanImpl.policyExists(XACMLAuthorizerMBeanImpl.java:245)
    at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.bea.p13n.security.internal.SecurityProviderProxy.invoke(SecurityProviderProxy.java:48)
    at $Proxy54.policyExists(Unknown Source)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:241)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:239)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.kernelRunAs(SecurityPolicyDelegate.java:433)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:246)
    at com.bea.p13n.entitlements.management.internal.RDBMSSecurityPolicyManager.getSecurityPolicy(RDBMSSecurityPolicyManager.java:204)
    at com.bea.p13n.entitlements.management.SecurityPolicyManager.getSecurityPolicy(SecurityPolicyManager.java:119)
    at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicy(SecurityHelper.java:146)
    at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicies(SecurityHelper.java:122)
    at com.bea.propagation.content.online.hierarchy.ContentNodeHierarchy.discoverChildren(ContentNodeHierarchy.java:113)
    at com.bea.propagation.framework.hierarchy.ListNodeHierarchy.getChildrenNodes(ListNodeHierarchy.java:113)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:215)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:158)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:102)
    at com.bea.propagation.framework.tool.io.InventoryTreeExport.walkDepthFirst(InventoryTreeExport.java:88)
    at com.bea.propagation.framework.tool.io.InventoryFolderExport.walkDepthFirst(InventoryFolderExport.java:110)
    at com.bea.propagation.framework.tool.io.InventoryArchiveExport.walkDepthFirst(InventoryArchiveExport.java:103)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:1017)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:991)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation_Remote(InventoryManagementServlet.java:510)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation(InventoryManagementServlet.java:453)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doService(InventoryManagementServlet.java:318)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doPost(InventoryManagementServlet.java:199)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:315)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    ERROR: The Propagation operation ended in error.
    java.lang.reflect.UndeclaredThrowableException
    at weblogic.security.providers.xacml.authorization.XACMLAuthorizerMBeanImpl.policyExists(XACMLAuthorizerMBeanImpl.java:245)
    at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.bea.p13n.security.internal.SecurityProviderProxy.invoke(SecurityProviderProxy.java:48)
    at $Proxy54.policyExists(Unknown Source)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:241)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:239)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.kernelRunAs(SecurityPolicyDelegate.java:433)
    at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:246)
    at com.bea.p13n.entitlements.management.internal.RDBMSSecurityPolicyManager.getSecurityPolicy(RDBMSSecurityPolicyManager.java:204)
    at com.bea.p13n.entitlements.management.SecurityPolicyManager.getSecurityPolicy(SecurityPolicyManager.java:119)
    at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicy(SecurityHelper.java:146)
    at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicies(SecurityHelper.java:122)
    at com.bea.propagation.content.online.hierarchy.ContentNodeHierarchy.discoverChildren(ContentNodeHierarchy.java:113)
    at com.bea.propagation.framework.hierarchy.ListNodeHierarchy.getChildrenNodes(ListNodeHierarchy.java:113)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:215)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:158)
    at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:102)
    at com.bea.propagation.framework.tool.io.InventoryTreeExport.walkDepthFirst(InventoryTreeExport.java:88)
    at com.bea.propagation.framework.tool.io.InventoryFolderExport.walkDepthFirst(InventoryFolderExport.java:110)
    at com.bea.propagation.framework.tool.io.InventoryArchiveExport.walkDepthFirst(InventoryArchiveExport.java:103)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:1017)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:991)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation_Remote(InventoryManagementServlet.java:510)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation(InventoryManagementServlet.java:453)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doService(InventoryManagementServlet.java:318)
    at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doPost(InventoryManagementServlet.java:199)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:315)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

    your error seems to indicate that your embeddedLdap isnt in sync with the Database ? Did you either delete files from your file systems or cleanup the portal db or finally used a copy of some existing database for your domain?

  • Unexpected exception: java.lang.reflect.InvocationTargetException Help!

    What this error mean. Help! I dont understand. The program is running when I try to run it but when I try to deploy it using JNLP it wont work.
    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.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: Cutout$1
         at Cutout.<init>(Cutout.java:45)
         at Cutout.main(Cutout.java:175)
         ... 11 more
    It seems like the error is at line 45 of my code. My code starting from line 45 is this...
         capture.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        try {
                             java.awt.Point pos = jFrame.getLocationOnScreen();
                             javax.imageio.ImageIO.write(shot.getSubimage(pos.x + 3, pos.y + 27, jFrame.getWidth() - 7, jFrame.getHeight() - 30), "jpg", new java.io.File("image.jpg"));
                        } catch(java.io.IOException ioe) {
                             ioe.printStackTrace();
         popup.add(capture);
         refresh = new javax.swing.JMenuItem("Refresh");
         refresh.setMnemonic('R');
            refresh.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                        refresh();
         popup.add(refresh);
         exit = new javax.swing.JMenuItem("Exit");
         exit.setMnemonic('x');
            exit.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jFrame.setVisible(false);
                        jFrame.dispose();
                        System.exit(0);
         popup.add(exit);
            addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseReleased(java.awt.event.MouseEvent evt) {
                    popup.show(evt.getComponent(), evt.getX(), evt.getY());
            });Is there something wrong with this one?

    Hi,
    I get the same error and i am not really sure what your explanation says... This problem below is the latest of a series of problems i started getting after i updated my BIRT version in Eclipse 3.3.1 and RAD 6.0... I troubleshooted and resolved most of them however i am not sure and it is not obvious to me what is required for this particular one below
    In the problems tab there is nothing to give me a clue. The exception below appears in the Websphere console and also on the page when trying to access my jsp file normally. I am not sure what is causing it, but here it is:
    JSP Processing Error
    HTTP Error Code: 500
    Error Message:JSPG0227E: Exception caught while translating /directory/init.jsp: java.lang.reflect.InvocationTargetException
    Root Cause:com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception caught while translating /directory/init.jsp: java.lang.reflect.InvocationTargetException     at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:133)     at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:168)     at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:81)     at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:298)     at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:265)     at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:137)     at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230)     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)     at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)     at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
    One of the funny things here, is that this is happening only when i start websphere in debug mode!
    Does anyone have any idea of what may be causing this or how we can find what's causing it or how to resolve it??
    Thanks in advance
    & Best Regards
    Spiros P.

  • Exceptions details : java.lang.reflect.InvocationTargetException

    I have set up a web service.
    Development environment:
    1 java 5.0
    2 jwsdp 2.0
    3 Java system application server 9.0
    I set up the web service by following these steps:
    1 write endpoint application source code
    2 write build file and build properties.
    3 use asant command compile the source code (successfully)
    4 use "asant generate-runtime-artifacts" generate web service artifacts(successfully)
    5 use "asant pkg-war" to package war file. (successfully)
    6 use "asant deploy-app " to deploy the web service. (successfully)
    So, I can find my webservice in administration console. I click the test button, it pop up a webpage, in which I can input parameters for my web method.
    After inputting all the parameters, I clicked the button to invock my web method. But some exceptions occured.
    Exceptions details : java.lang.reflect.InvocationTargetException
    javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:311) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:106) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:135) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75) Caused by: 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:585) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:284) ... 28 more Caused by: javax.xml.ws.soap.SOAPFaultException: Unknown fault type:class java.lang.NoClassDefFoundError at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(ClientEncoderDecoder.java:86) at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(SOAPXMLDecoder.java:211) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:540) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:260) at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139) at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86) at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174) at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108) at $Proxy76.getAdslPortStatus(Unknown Source) ... 33 more
    Anybody can give me a clue? Thank you very much.
    Message was edited by:
    Flashget
    Message was edited by:
    Flashget

    i to have the same errors which u got sir, if u find any answer please send it to me
    [email protected]
    regards
    hari krishna

  • Java.lang.reflect.InvocationTargetException

    Hi,
    I am new to EJB. i've developed my first EJB Program using Netbeans.
    Here are my classes :
    package ejb;
    import javax.ejb.Stateless;
    @Stateless(mappedName="Bean30")
    public class Bean30Bean implements Bean30Remote
    public String getResult()
    return "This is EJB 3.0 Bean";
    Remote Interface :
    package ejb;
    import javax.ejb.Remote;
    @Remote
    public interface Bean30Remote {
    String getResult();
    Calling EJB :
    InitialContext ctx = new InitialContext();
    Bean30Remote br = (Bean30Remote) ctx.lookup("Bean30#ejb.Bean30Remote");
    System.err.println("EJB message is: " + br.getResult());
    While lookup, it is throwing me an exception :
    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 org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:438)
    at org.glassfish.appclient.client.AppClientFacade.main(AppClientFacade.java:165)
    Caused by: javax.naming.NamingException: Lookup failed for 'Bean30#ejb.Bean30Remote2' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException: ejb ref resolution error for remote business interfaceejb.Bean30Remote2 [Root exception is java.lang.ClassNotFoundException: ejb.Bean30Remote2]]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at applicationclientfortest.Main.main(Main.java:27)
    ... 6 more
    Caused by: javax.naming.NamingException: ejb ref resolution error for remote business interfaceejb.Bean30Remote2 [Root exception is java.lang.ClassNotFoundException: ejb.Bean30Remote2]
    at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:433)
    at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:75)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:556)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:514)
    ... 9 more
    Caused by: java.lang.ClassNotFoundException: ejb.Bean30Remote2
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.glassfish.appclient.client.acc.ACCClassLoader.findClass(ACCClassLoader.java:212)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at com.sun.ejb.EJBUtils.getBusinessIntfClassLoader(EJBUtils.java:687)
    at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:462)
    at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:413)
    ... 13 more
    I've checked on the GlassFish. It has been deployed successfully with name "EJBModule30".
    Any comments will be greatly appreciated. Please let me know if i'm doing something wrong.

    r035198x wrote:
    >
    That shouldn't be necessary in a JEE environment. Proper packaging is all you need to do and the container takes care of the rest.The remote client may not be in a container....
    **puts on a brown paper bag**
    In any case the name inconsistency is a nice catch, but when I check the logging:
    ejb ref resolution error for remote business interfaceejb.Bean30Remote2 [Root exception is java.lang.ClassNotFoundException: ejb.Bean30Remote2]]I wonder if Glassfish actually contains a logging mistake where it doesn't print a space between the log text and the interface, or that someone has been doing some manual editing before posting it...

  • Java.lang.reflect.InvocationTargetException Caused by: java.lang.UnsatisfiedLinkError

    Hi all,
    I'm using jdic web browser (windows version) and customizing it for a project. I want to make an executable jar file. Since I'm using NetBeans 6.7.1, I'm getting a jar file in dist folder. Bt when I run it it does not open the jdic browser.
    Then I tried java web start and make a jnlp file. When it tries to run I get the below error..
    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.sun.javaws.Launcher.executeApplication(Launcher.java:1293)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1239)
    at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1086)
    at com.sun.javaws.Launcher.run(Launcher.java:105)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.UnsatisfiedLinkError: no jdic in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at org.jdesktop.jdic.browser.internal.WebBrowserUtil$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jdesktop.jdic.browser.internal.WebBrowserUtil.loadLibrary(Unknown Source)
    at org.jdesktop.jdic.browser.internal.WebBrowserUtil.getDefaultBrowserPath(Unknown Source)
    at org.jdesktop.jdic.browser.BrowserEngineManager.selectEngine(Unknown Source)
    at org.jdesktop.jdic.browser.BrowserEngineManager.getActiveEngine(Unknown Source)
    at AgentBrowser.Browser.jbInit(Browser.java:362)
    at AgentBrowser.Browser.<init>(Browser.java:99)
    at AgentBrowser.Browser.main(Browser.java:117)
    ... 9 more
    http://java.ittoolbox.com/groups/technical-functio...ocationtargetexception-1710507
    A person shared his view on "java.lang.reflect.InvocationTargetException" but I'm not quite sure about that since the browser works nicely if I run through NetBeans. (running the project through NetBeans).
    I dnt know how does this library path problem occurs
    please help me..!!
    thanks in advance

    Yeah..! it's working :)
    I just copied jdic files (jdic.jar,jdic.dll, IeEmbed.exe etc) into dict/lib/ folder and now it is working.

  • Java.lang.reflect.InvocationTargetException on the server log

    Hi friends ,
    I have deployed a war on the tomcat server .the site was working properly.but from last week we are getting the following exception in the log .this exception is thrown not at a particular time but randomly
    what must be the problem .
    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 org.mkcl.validator.ValidationSupport.validate(ValidationSupport.java:110)
         at org.mkcl.validator.ValidationSupport.validate(ValidationSupport.java:50)
         at org.apache.jsp.Modules.jobseeker.process.SaveJobSeekerRegistrationFormOne_jsp._jspService(SaveJobSeekerRegistrationFormOne_jsp.java:79)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
         at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
         at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
         at org.mkcl.validator.NumberIntegerValidator.validate(NumberIntegerValidator.java:11)
         ... 25 more
    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 org.mkcl.validator.ValidationSupport.validate(ValidationSupport.java:110)
         at org.mkcl.validator.ValidationSupport.validate(ValidationSupport.java:50)
         at org.apache.jsp.Modules.jobseeker.process.SaveJobSeekerRegistrationFormOne_jsp._jspService(SaveJobSeekerRegistrationFormOne_jsp.java:79)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
         at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
         at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
         at org.mkcl.validator.NumberIntegerValidator.validate(NumberIntegerValidator.java:11)
         ... 25 more
    i searched for the solution which says that it is becoz of the soap but i haven't used soap.
    So please help me for this

    Clear JAVA Caches.
    Try this:
    1) Go to Applications >Utilities > Java > and startup Java Preferences
    2) Under General Tab, go down to Temporary Internet Files section and click "Settings..." button.
    3) In the Temporary Files Settings window, click the "Delete Files.." button. Click Ok and quit application.
    4) Download your FCS Java Client Application again from your browser (http:// YOUR.IP.ADDRESS/finalcutserver) and install as usual.
    Good Luck!
    Message was edited by: isazaly

  • Java.lang.reflect.InvocationTargetException when launching ESB

    Hello,
    I'm getting a java.lang.reflect.InvocationTargetException when launching ESB. I've tried restoring the archives and generating new signatures, clearing my local java cache and restarting the server.
    I'm running NW 711 SP06 and are using Java 1.6.0_14-b08 on the client (actually the same system). This used to work and the integration directory works fine.
    The full exception is below.
    Thanks (and points) for any ideas. 
    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.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: com/sap/exception/standard/SAPIllegalArgumentException
         at com.sap.guid.GUIDGeneratorFactory.initClusterID(GUIDGeneratorFactory.java:69)
         at com.sap.guid.GUIDGeneratorFactory.getInstance(GUIDGeneratorFactory.java:33)
         at com.sap.aii.utilxi.misc.api.GUIDFactory.getGuidGenerator(GUIDFactory.java:74)
         at com.sap.aii.utilxi.misc.api.GUIDFactory.<init>(GUIDFactory.java:50)
         at com.sap.aii.utilxi.misc.api.GUIDFactory.<clinit>(GUIDFactory.java:27)
         at com.sap.aii.utilxi.applcomp.ApplCompLevel.<init>(ApplCompLevel.java:103)
         at com.sap.aii.utilxi.applcomp.ApplCompLevel$Constants.<clinit>(ApplCompLevel.java:59)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.<init>(ExplicitApplicationComponents.java:287)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.setInstance(ExplicitApplicationComponents.java:250)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.getInstance(ExplicitApplicationComponents.java:256)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.setTypeId(ApplicationComponent.java:276)
         at com.sap.aii.ib.gui.misc.ApplicationBase.prepareStartup(ApplicationBase.java:210)
         at com.sap.aii.ibrep.gui.appl.ApplicationImpl.start(ApplicationImpl.java:137)
         at com.sap.aii.ibrep.gui.appl.ApplicationImpl.main(ApplicationImpl.java:116)
         ... 9 more
    Caused by: java.lang.ClassNotFoundException: com.sap.exception.standard.SAPIllegalArgumentException
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         ... 23 more

    A workaround: starting with the repository.jnlp file from a system where the ESB was working, I replaced all of the references to the server address, port and SID to point to the server that wasn't working and saved the resulting repository.jnlp. Clicking on that jnlp file launched the ESB without error.
    I still don't know the root cause of the problem, but this seems to be an acceptable workaround for now.
    Rob

  • AxisFault: java.lang.reflect.InvocationTargetException

    Hi all,
    this is really really weird.
    I am having a service, where I send files and an own datatype to.
    Well, this all works very fine (after lots of "trial/error" ;-) ).
    But now, I want to use jacksum to compare the checksum of the transferred file and before and after the transfer.
    The strange thing is, the code works when I run the service as a java application.
    But when I call it from my client I get an error in a row which definetly is not wrong!
    The error is (well, this error message really didn't help me at all!):
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.reflect.InvocationTargetException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname: r27300
    java.lang.reflect.InvocationTargetException
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
         at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:2248)
         at org.apache.axis.client.Call.invoke(Call.java:2171)
         at org.apache.axis.client.Call.invoke(Call.java:1691)
         at com.libs.serveradmin.util.FileSaving.saveFile(FileSaving.java:75)
         at com.libs.serveradmin.model.UploadFileBean.upload(UploadFileBean.java:508)
         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.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.libs.serveradmin.filter.MultiPartFilter.doFilter(MultiPartFilter.java:50)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)Did anyone have the same problem before and did solve it?
    I can tell you, that all the jars needed are there, because without calculating the checksum the service is called without an error.
    And on the other hand, trying to run my web service as a java application, this works fine aswell.
    Hope, anyone can help me, because I'm really stuck in that problem
    Thanks a lot in advance!
    Steffi

    Yeah I have to agree, it was pretty simple and if you dont understand the concept of a build path within an IDE you probably should be reading some more basic tutorials than those centered around web services.
    That wasnt meant as an insult either, but I doubt you would really understand what it is that you are doing.
    Lots of things could cause an invocation target exception, not just a missing jar file so if you are getting this exception the solution on this page could well be wrong in your situation.
    You should look for the actual cause of this exception on your application server where the web service in exposed from, and\or read the javadoc below.
    [Invocation Target Exception|http://java.sun.com/j2se/1.4.2/docs/api/java/lang/reflect/InvocationTargetException.html]

  • Java.lang.reflect.InnvokationTargetException

    Hello everybody,
    I am getting following error logs while executing my swing application.
    java.lang.reflect.InnvokationTargetException
    at sun.reflect.delegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Mehod:java:324)
    I am trying to call some class's method using reflection principle.
    All values of acces modifier, return type, method name, args are correct at run time. I don't understand why i am getting this error.
    Can anybody please help me.
    Thanks and regards
    Girish Varde

    I would say that this sentence is rather confusing since you get the exception nonetheless.The sentence means when I am in debug mode and check value of the actual class whose method is called, the class value is correct. It's not that the class whose method I am calling does not exist.
    First I give the reference error log which you can use to locate at what point the exception is thrown.
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.apsiva.commframework.server.Communicator.processRequest(Communicator.java:45)
         at com.apsiva.commframework.server.CommunicationServlet.processRequest(CommunicationServlet.java:92)
         at com.apsiva.commframework.server.CommunicationServlet.doPost(CommunicationServlet.java:30)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    public class Communicator implements java.io.Serializable{
         public static final String DECENTRALIZED_MODE = "decentralizedMode";
         //applicationMode could be localMode or distributedMode or decentralizedMode
         public static final String DISTRIBUTED_MODE = "distributedMode";
         public static final String LOCAL_MODE = "localMode";
          * Communicator constructor comment.
         public Communicator() {
              super();
    public Object processRequest(Request request) throws java.lang.Exception {
         Object obj = null;
         try
              String str = request.getActionCode();
              System.out.println("Printing str : " + str);
              if (str == null)
                   return null;
              Class cls = ActionCodes.class;
              Field f = cls.getField(str);
              String actionClassName = (String)f.get(null);
              if (actionClassName == null)
                   return null;
              cls = Class.forName(actionClassName);
              Object actionObj = cls.newInstance();
              System.out.println("Printing  actionClassName : " + actionClassName);
              Method mthd = cls.getMethod("processRequest", new Class[]{Request.class}); 
              System.out.println("Printing  mthd : " + mthd);
              obj = mthd.invoke(actionObj, new Object[]{request});   // line 45
              return obj;     
         } catch (Exception e)
              e.printStackTrace();
              throw e;
    public class CommunicationServlet extends HttpServlet{
         private Communicator communicator = null;
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
         doPost(req,res);
         }//end of doGet
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
         res.setContentType("text/html");
         Response response = null;
         OutputStream o = null;
         try{
              Request request = getSerializedRequest(req);
              //logString("The seriliazed object is: " + request.toString());
              response = (Response)processRequest(request);
              o = res.getOutputStream();
              sendSerializedResponse(o, response);
         }catch(Exception e){
              e.printStackTrace();
              try{
                   if(o != null)sendSerializedResponse(o, e);
                   else {
                        o = res.getOutputStream();
                        sendSerializedResponse(o, e);
              }catch(Exception ignor){
                   ignor.printStackTrace();
         }//end of doPost
    public Communicator getCommunicator() {
         return new Communicator();
    private HashMap getParams(HttpServletRequest req){
         Enumeration enu = req.getParameterNames();     
         HashMap map = new HashMap();
         while(enu.hasMoreElements()){
              String name = (String)enu.nextElement();
              String value = req.getParameter(name);
              if(name != null && !name.equals("") && value != null){
                   map.put(name, value);
              }//end of if
         }//end while
         return map;
         }//end of getParams
    private Request getSerializedRequest(HttpServletRequest req) throws Exception{
         log("start getSerializedRequest()");
         Request request = null;
         try{
              ObjectInputStream oIn = new ObjectInputStream(req.getInputStream());
              Object o = oIn.readObject();
              oIn.close();
              request = (Request)o;
              return request;     
         }catch(Exception e){
              logString("CommunicationServlet cannot receive serialized object.");     
              e.printStackTrace();
              throw e;
    }//end of getRequest
    private void logString(Object s){
         if(s != null) System.out.println(s);
         else System.out.println("Received null object.");
    public Object processRequest(Request request) throws Exception {
         return  this.getCommunicator().processRequest(request);        // line 92
    private void sendSerializedResponse(OutputStream o, Object resp) throws Exception{
         if(o != null){
              ObjectOutputStream oOut = new ObjectOutputStream(o);
              oOut.writeObject(resp);
              oOut.flush();
              oOut.close();
    public void setCommunicator(Communicator newCommunicator) {
         communicator = newCommunicator;
    }

  • JSWDP 1.1 - wsdeploy error: java.lang.reflect.InvocationTargetException

    Ok - All help is really appreciated!
    I'll get the configuration questions out of the way first...I'm using:
    JWSDP 1.1
    JDK 1.3.1_08
    J2EE 1.3.1
    I've been able to successfully run the "Hello World" example provided by the JWSDP 1.1 tutorial. I'm now trying to generate a WSDL using an interface that had worked with JWSDP 1.0 EA, but I'm getting the following error:
    process-war:
    [echo] Running wsdeploy....
    [echo] CLASSPATH=C:\ATG\DAS6.2.0\DAS\lib\classes.jar:D:\j2sdkee1.3.1\lib\j2ee.jar:C:\ATG\ATG6.2.0\CIWS\lib\cacjdbc.jar:C:\ATG\ATG6.2.0\CIWS\lib\CIWS_JAXB.jar:C:\ATG\ATG6.2.0\CIWS\lib\oromatcher.jar:C:\ATG\ATG6.2.0\CIWS\lib\classes12.zip:C:\ATG\ATG6.2.0\CIWS\j2ee-apps\ciws\java-code:C:\ATG\ATG6.2.0\CIWS\j2ee-apps\ciws\web-app\WEB-INF\classes
    [exec] info: created temporary directory: D:\ciws-ws\ciws\build\wsdeploy-generated\jaxrpc-deploy-615014
    [exec] java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/ejb/CreateException
    [exec] at java.lang.Class.getMethods0(Native Method)
    [exec] info: processing endpoint: ciws
    [exec] at java.lang.Class.getMethods(Class.java:737)
    [exec] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processInterface(RmiModeler.java:270)
    [exec] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.modelPort(RmiModeler.java:232)
    [exec] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.buildModel(RmiModeler.java:195)
    [exec] at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:85)
    [exec] at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:61)
    [exec] at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:368)
    [exec] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.process(DeployTool.java:259)
    [exec] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.process(DeployTool.java:229)
    [exec] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:182)
    [exec] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:41)
    [exec] at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:24)
    [exec] at java.lang.reflect.Method.invoke(Native Method)
    [exec] at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    [exec] Result: 1
    Here are my configuration files:
    common/build.properties
    #  This file contains properties common to the tutorial examples
    #  for JAX-RPC.
    jwsdp.home=D:\\jwsdp-1.1
    tut-root=${jwsdp.home}/docs
    # tut-root=D:\\wspack-docs
    build=build
    url=http://localhost:8080/manager
    jaxrpc.home=${jwsdp.home}/jaxrpc-1.0.3
    jaxp.holme=${jwsdp.home}/jaxp-1.2.2
    saaj.home=${jwsdp.home}/saaj-1.1.1
    wscompile-path=${jaxrpc.home}/bin
    rlib=${jaxrpc.home}/lib
    plib=${jaxp.home}/lib
    pelib=${jaxp.home}/lib/endorsed
    slib=${saaj.home}/lib
    wlib=${jwsdp.home}/jwsdp-shared/lib
    rjars=${rlib}/jaxrpc-api.jar:${rlib}/jaxrpc-ri.jar
    pjars=${plib}/jaxp-api.jar
    pejars=${pelib}/xercesImpl.jar:${pelib}/xalan.jar:${pelib}/xsltc.jar:${pelib}/dom.jar:${pelib}/sax.jar
    sjars=${slib}/saaj-api.jar:${slib}/saaj-ri.jar:${slib}/dom4j.jar
    wjars=${wlib}/jax-qname.jar:${wlib}/commons-logging.jar:${wlib}/mail.jar:${wlib}/activation.jar
    jwsdp-jars=${rjars}:${pjars}:${pejars}:${sjars}:${wjars}
    build.properties
    # This file is referenced by the build.xml file.
    atg-home=C:\\ATG
    ciws-home=${atg-home}\\ATG6.2.0\\CIWS
    example=ciws
    context-path=ciws
    package-name=/com/enc/ciws/wrapper
    client-class=com.enc.ciws.client.CiwsClient
    client-jar=${example}-client.jar
    portable-war=${example}-portable.war
    deployable-war=${context-path}.war
    # ORIGINAL --> war-path=${tut-root}/tutorial/examples/jaxrpc/${example}/dist/${deployable-war}
    war-path=D:\\ciws-ws\\ciws\\dist\\${deployable-war}
    atg-das-jar=${atg-home}\\DAS6.2.0\\DAS\\lib\\classes.jar
    j2ee-jar=D:\\j2sdkee1.3.1\\lib\\j2ee.jar
    ciws-jars=${ciws-home}\\lib\\cacjdbc.jar:${ciws-home}\\lib\\CIWS_JAXB.jar:${ciws-home}\\lib\\oromatcher.jar:${ciws-home}\\lib\\classes12.zip
    ciws-classes=${ciws-home}\\j2ee-apps\\ciws\\java-code:${ciws-home}\\j2ee-apps\\ciws\\web-app\\WEB-INF\\classes
    custom-classpath=${atg-das-jar}:${j2ee-jar}:${ciws-jars}:${ciws-classes}
    build.xml
    <!DOCTYPE project [
      <!ENTITY commonTargets SYSTEM "./ciws-targets.xml">
    ]>
    <project name="JAX-RPC Tutorial" default="build" basedir=".">
      <property file="${user.home}/build.properties"/>
      <property file="../common/build.properties"/>
      <property file="build.properties"/>
      &commonTargets; <!-- The ant targets are in ../common/targets.xml -->
      <target name="build" depends="build-service"
         description="Executes the targets needed to build the service.">
      </target>
    </project>
    config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
         xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
         <wsdl location="http://localhost:8080/ciws/ciws?WSDL" packageName="com.enc.ciws.wrapper"/>
    </configuration>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
      <display-name>CIWS</display-name>
      <description>A web application containing a JAX-RPC endpoint for CIWS</description>
      <session-config>
        <session-timeout>60</session-timeout>
      </session-config>
    </web-app>
    jaxrpc-ri.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <webServices
        xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
        version="1.0"
        targetNamespaceBase="http://com.test/wsdl"
        typeNamespaceBase="http://com.test/types"
        urlPatternBase="/ws">
        <endpoint
            name="ciws"
            displayName="CIWS"
            description="A web service to inquiry about claims"
            interface="com.enc.ciws.wrapper.CIWSWrapper" 
            implementation="com.enc.ciws.wrapper.CIWSWrapperImpl"/>
        <endpointMapping endpointName="ciws" urlPattern="/ciws"/>
    </webServices>
    Snippets of ant script (ciws-targets.xml)
      <target name="process-war" depends="set-ws-scripts"
          description="Runs wsdeploy to generate the ties and create a deployable WAR file">
          <echo message="Running wsdeploy...."/>
          <echo message="CLASSPATH=${custom-classpath}"/>
          <delete file="dist/${deployable-war}" />
       <exec executable="${wsdeploy}">
          <arg line="-verbose"/>
          <arg line="-keep"/>
          <arg line="-tmpdir"/>
          <arg line="${build}/wsdeploy-generated"/>
          <arg line="-classpath"/>
          <arg line="${custom-classpath}"/>
          <arg line="-o"/>
          <arg line="dist/${deployable-war}"/>
          <arg line="dist/${portable-war}"/>
        </exec>
      </target>
    And finally the code!! (I know, I know...probably not good with all the exceptions)
    package com.enc.ciws.wrapper;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface CIWSWrapper extends java.rmi.Remote {
        String getAdjusterInfo(String claimInquiryRS) throws java.rmi.RemoteException;
        String getClaimDetail(String requestString)
            throws
                java.rmi.RemoteException,
                java.io.IOException,
                javax.xml.bind.ValidationException,
                javax.xml.bind.UnmarshalException,
                javax.ejb.CreateException,
                javax.naming.NamingException,
                com.enc.ciws.utils.exception.InvalidRequestException;
        String getClaimHistory(String requestString) throws java.rmi.RemoteException;
        String getClaimSummaryByPolicyHolderInfo(String claimInquiryRS)
            throws
                java.rmi.RemoteException,
                java.io.IOException,
                java.text.ParseException,
                javax.xml.bind.ValidationException,
                javax.xml.bind.UnmarshalException,
                javax.ejb.CreateException,
                javax.naming.NamingException,
                com.enc.ciws.utils.exception.InvalidRequestException;
        String getClaimSummaryByPolicyNumber(String claimInquiryRS)
            throws
                java.rmi.RemoteException,
                java.io.IOException,
                javax.xml.bind.ValidationException,
                javax.xml.bind.UnmarshalException,
                javax.ejb.CreateException,
                javax.naming.NamingException,
                com.enc.ciws.utils.exception.InvalidRequestException;
        String getClaimSummaryByStatus(String claimInquiryRS)
            throws
                java.rmi.RemoteException,
                java.io.IOException,
                java.text.ParseException,
                javax.xml.bind.ValidationException,
                javax.xml.bind.UnmarshalException,
                javax.ejb.CreateException,
                javax.naming.NamingException,
                com.enc.ciws.utils.exception.InvalidRequestException;
        public String getPaymentDetail(String requestString)
            throws java.rmi.RemoteException;
        String getSubroDetail(String requestString)
            throws
                java.rmi.RemoteException,
                java.io.IOException,
                javax.xml.bind.ValidationException,
                javax.xml.bind.UnmarshalException,
                javax.ejb.CreateException,
                javax.naming.NamingException,
                com.enc.ciws.utils.exception.InvalidRequestException;
    }

    try just using the wscompile.bat/.sh commandline tool first. It will automatically setup the classes used
    by wscompile and jaxrpc, you will only then need to specify the classpath to your classes on the
    commandline. This might help you isolate the problem so you can fix the ant tasks.

  • JNI: java.lang.reflect.InvocationTargetException

    I am trying to use JNI, however, when I try to access it from a non-static class it throws an java.lang.reflect.InvocationTargetException. I think I've narrowed it down to the System.loadLibrary() method. Does anybody know why this could be happening?
    Thanks,
    Jeremy

    java.lang.reflect.InvocationTargetException
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    com.ebay.rtc.BranchToProcessor.branch(BranchToProcessor.java:75)
    com.ebay.rtc.RTCServlet.doGet(RTCServlet.java:80)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    java.lang.Thread.run(Thread.java:536)

Maybe you are looking for

  • Adobe flash player has downloaded successfully, but it's still not working

    hello all, I have a new week old laptop, that has windows 7, I'm trying to view videos online, like on youtube, but it keeps saying download flash player, so I download it, then it says it again when i try to watch the videos. I've downloaded it abou

  • How can i install flash player on an imac

    i download flash player, when i click on it to be installed, it always says error relaunch

  • No tag "output_text" defined in tag library imported

    Dear All, I have the following jsp file. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <html> <head> <title>Welcome to PizzaRia!!!</title> <link rel="stylesheet" type="text/css

  • Can't download LR 3.5 update

    Is anyone else having trouble with the Adobe download site? I've been trying to download the LR 3.5 update on both Safari and Firefox but nothing is coming through--it's showing 6.8KB out of  out of 103MB. Same thing for the RAW update. Everything el

  • Adobe Premiere 9 crashing

    I am running Windows 7 Intel i7 8GB ram.  I had Adobe Premiere 9 for some time and now it crashes everytime I try and open it. I tried some of the troubleshooting steps I read but nothing works.  Any suggestions?