webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

java.lang.reflect.InvocationTargetException Error

  • 1.  java.lang.reflect.InvocationTargetException Error

    Posted Thu June 18, 2009 10:56 AM

    Hi.
    We have migrated from EntireX 7.3.3 to EntireX 8.0.1 (these are versions for Windows).
    We use new JXmlRpcServer but we have the error:

    2009-06-18 11:29:05.686> Worker-1.........( CP:HTTPTransport.invoke() I:SendReceive Exception: com.softwareag.wsstack.client.api.WSClientException: java.lang.reflect.InvocationTargetException
    at com.softwareag.wsstack.client.api.WSClientFactory.newInternalClient(WSClientFactory.java:188)
    at com.softwareag.wsstack.client.api.WSClientFactory.newClient(WSClientFactory.java:123)
    at com.softwareag.entirex.xml.rt.gi.a(Unknown Source)
    at com.softwareag.entirex.xml.rt.gh.a(Unknown Source)
    at com.softwareag.entirex.xml.rt.c1.a(Unknown Source)
    at com.softwareag.entirex.xml.rt.ga.b(Unknown Source)
    at com.softwareag.entirex.aci.fy.b(Unknown Source)
    at com.softwareag.entirex.aci.p.run(Unknown Source)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at com.softwareag.wsstack.client.api.WSClientFactory.newInternalClient(WSClientFactory.java:176)
    ... 7 more
    Caused by: java.lang.NoClassDefFoundError
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:564)
    at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:96)
    at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:79)
    at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:618)
    at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:115)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
    at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:146)
    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:139)
    at com.softwareag.wsstack.client.impl.WSBasicClientImpl.createClient(WSBasicClientImpl.java:125)
    at com.softwareag.wsstack.client.impl.WSBasicClientImpl.<init>(WSBasicClientImpl.java:229)
    at com.softwareag.wsstack.client.impl.WSStaxClientImpl.<init>(WSStaxClientImpl.java:46)
    ... 12 more
    )

    The jxmlrpcserver.bat is

    @echo off
    
    rem
    rem   Copyright (c) 2000-2008 SOFTWARE AG, All Rights Reserved.
    rem
    rem   $Revision: 1.20 $
    rem
    rem   Start procedure for the EntireX XML RPC Server
    rem
    
    setlocal
    
    SET EXXDIR=C:\PROGRA~1\SOFTWA~1\EntireX
    SET XMLRPCSERVERDIR=%EXXDIR%\XmlRpcServer
    SET WS_STACK_HOME=C:\PROGRA~1\SOFTWA~1\WEBSER~1.2
    
    echo START at %DATE% %TIME%
    echo CMD: %CMDCMDLINE%
    echo EXXDIR: %EXXDIR%
    echo XMLRPCSERVERDIR: %XMLRPCSERVERDIR%
    echo WS_STACK_HOME: %WS_STACK_HOME%
    
    
    rem set own Java Runtime Environment, if exists.
    rem Otherwise use %JAVA_HOME%
    if exist "C:\PROGRA~1\SOFTWA~1\JDK\v1.5.0\jre\bin\java.exe" set JAVA_HOME="C:\PROGRA~1\SOFTWA~1\JDK\v1.5.0\jre"
    if not exist "%JAVA_HOME%\bin\java.exe" set JAVA_HOME_BIN="C:\PROGRA~1\SOFTWA~1\JDK\v1.5.0\jre\bin"
    if exist "%JAVA_HOME%\bin\java.exe" set JAVA_HOME_BIN=%JAVA_HOME%\bin\
    echo JAVA_HOME: %JAVA_HOME%
    
    set classpath=%XMLRPCSERVERDIR%\lib\entirex801.jar
    set CLASSPATH=%CLASSPATH%;%WS_STACK_HOME%\lib\wsstack-client.jar
    echo CLASSPATH: %CLASSPATH%
    
    set EXXPROP=%XMLRPCSERVERDIR%\entirex.xml.runtime.properties
    echo EXXPROP: %EXXPROP%
    
    set EXXCONF=%XMLRPCSERVERDIR%\entirex.xml.runtime.configuration.xml
    echo EXXCONF: %EXXCONF%
    
    rem set PROXY=-Dhttp.proxyHost=httpprox -Dhttp.proxyPort=8080 -Dhttps.proxyHost=sslprox -Dhttps.proxyPort=443
    set PROXY=-Dhttp.proxyHost=ourproxy -Dhttp.proxyPort=ourport -Dhttp.nonProxyHosts="localhost|127.0.0.1"
    
    echo PROXY: %PROXY%
    
    echo PARAMETER: %*
    
    "%JAVA_HOME_BIN%\java" %PROXY% -Dhttp://xml.org/sax/properties/dom-node=executeCommandReturn -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Dentirex.trace=3 -classpath "%CLASSPATH%" com.softwareag.entirex.xml.rt.XMLRPCServer -p "%EXXPROP%" -c "%EXXCONF%" %*
    
    echo END at %DATE% %TIME%
    
    endlocal

    Can anyone help us?
    Thanks.


    #EntireX
    #webMethods
    #Mainframe-Integration


  • 2.  RE: java.lang.reflect.InvocationTargetException Error

    Posted Thu June 18, 2009 11:55 AM

    Hi Modesto,

    I’d propose you open a support request and provide some additional information like the XML RPC Server configuration- and properties files.

    Regards, Dietmar


    #Mainframe-Integration
    #webMethods
    #EntireX


  • 3.  RE: java.lang.reflect.InvocationTargetException Error

    Posted Thu June 18, 2009 05:32 PM

    Check that your WSSTACK directory (%WS_STACK_HOME%\lib) contains all the required objects (there’s a long list…).

    See the SL24 tip at http://servline24.softwareag.com/SecuredServices/KCFullTextASP/viewing/view.asp?DSN=SCORE&DST=TCD&KEY=562527-14664639

    If that doesn’t resolve it, then Dietmar’s suggestion is appropriate.


    #EntireX
    #Mainframe-Integration
    #webMethods