# java.lang.reflect.InvocationTargetException Error

**URL:** <https://techcommunity.softwareag.com/t/java-lang-reflect-invocationtargetexception-error/90479>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [June 18, 2009, 2:55pm UTC](https://techcommunity.softwareag.com/t/java-lang-reflect-invocationtargetexception-error/90479 "2009-06-18T14:55:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Modesto1](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@Modesto1](https://techcommunity.softwareag.com/u/Modesto1)\
**Post date:** [June 18, 2009, 2:55pm UTC](https://techcommunity.softwareag.com/t/java-lang-reflect-invocationtargetexception-error/90479/1 "2009-06-18T14:55:30Z")

</div>

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:

```auto
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

```auto
@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.

---

<div class="post-metadata">

**Author:** ![Dietmar\_Gartner](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dietmar_gartner/32/127_2.png) [@Dietmar\_Gartner](https://techcommunity.softwareag.com/u/Dietmar_Gartner)\
**Post date:** [June 18, 2009, 3:55pm UTC](https://techcommunity.softwareag.com/t/java-lang-reflect-invocationtargetexception-error/90479/2 "2009-06-18T15:55:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [June 18, 2009, 9:32pm UTC](https://techcommunity.softwareag.com/t/java-lang-reflect-invocationtargetexception-error/90479/3 "2009-06-18T21:32:21Z")

</div>

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](http://servline24.softwareag.com/SecuredServices/KCFullTextASP/viewing/view.asp?DSN=SCORE&DST=TCD&KEY=562527-14664639)

> [@](#):
>
> Resolution:
> 
> 1. The CLASSPATH should be as follows:
> 
> /home/xmlrpc/xmlrpc8/classes/entirex.jar:/home/xmlrpc/xmlrpc8/wsstack-lib/wsstack-client.jar
> 
> JAR files have to be explicitly named in the CLASSPATH. If only a folder is used, or if the “\*” is used, then only the Class files on that location are used, but no JAR files.
> 
> 1. The file “wsstack-client.jar” loads a set of other JAR files which have to be stored in parallel.
> 
> “Stored in parallel” means you should either (a) use the “wsstack-client.jar” of the WSSTACK installation “lib” folder, or (b) copy the complete “lib” folder to the XMLRPCServer (i.e. the single file “wsstack-client.jar” is NOT enough).
> 
> See the /WEB-INF/MANIFEST.MF inside of the “wsstack-client.jar” file for more details (open the JAR file with WinZIP, 7-zip or a similar tool), and check for completeness.

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/java-lang-reflect-invocationtargetexception-error/90479/4 "2021-04-02T14:57:10Z")

</div>


