A Java Exception on Running CEM Export Tool/Web Services is related to the host argument used.

Document ID:  TEC1167307
Last Modified Date:  08/03/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Application Performance Management

Releases

  • CA Application Performance Management:Release:10.5.2
  • CA Application Performance Management:Release:10.6

Components

  • WILY CEM:APMCEM
Issue:

  Note that similar issues also occurred in releases earlier than 10.5.2. See this Community post https://communities.ca.com/thread/108788124 for details

Here is an example of an example of a command line argument that will fail.

c:\tmp\cemtoolissue>java -jar CEMExportTool.jar -host 172.20.42.237 -username admin -password ""  -port 8081 -command 1 -output data.csv -interval 3 -start "07/15/2014 00:00:00" -end

"07/15/2017 23:59:00"

CEM Host: 172.20.42.237

CEM webservice login username: admin

CEM webservice login password: *******

CEM webservice listen port: 8081

command number: 1

Export file : data.csv

Aggregation Type: 3

Query start time : 07/15/2014 00:00:00

Query end time : 07/15/2017 23:59:00

 

- Redirect requested but followRedirects is disabled

 

A Java Stack exception will be returned looking like the following:

Exception in thread "main" java.lang.StackOverflowError

        at java.security.AccessController.doPrivileged(Native Method)

       at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at org.apache.axis.AxisFault.addHostnameIfNeeded(AxisFault.java:881)

        at org.apache.axis.AxisFault.initFromException(AxisFault.java:280)

        at org.apache.axis.AxisFault.<init>(AxisFault.java:181)

        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)

        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:727)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:727)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:727)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:727)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:727)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:727)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

 

 

Environment:
APM 10.5.2 and later
Cause:

  A probable root cause has been identified and will be fixed in a future release.

Workaround:

If using CEM Export Tool, CEM Web Services, or any other EM web services clients, you might see connection issues when using either IP address or host name for login. The solution is to use fully-qualified domain name (FQDN) for the host parameter. 

 

Example:

-host hostname.mydomainame.com

Additional Information:

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >