Highlighted
Absent Member.
Absent Member.
274 views

ArcSight Express WebAPI Trouble

Hi,

We have ArcSight Express Appliance 4.0 and we are trying to use ArcSight WebAPI from java project. Before we begin, we got the SDK from appliance ($ARCSIGHT_HOME/utilities/sdk). We imported all of the jars to the our eclipse project build path. However when we run the project we get exception. Even we tried to run sample example code from the examples section of the SDK. Again we got exception. SOAP Code snippets from WebAPI documents also fails. Exception message is that:



Exception in thread "main" java.lang.RuntimeException: Could not create dispatch

at com.arcsight.coma.client.ws.jaxws.JaxWSClientFactory.getDispatch(JaxWSClientFactory.java:80)

at com.arcsight.coma.client.ws.jaxws.JaxWSClientFactory.createClient(JaxWSClientFactory.java:50)

at com.arcsight.coma.client.ws.WSClientFactory.createClient(WSClientFactory.java:79)

at com.arcsight.product.core.service.v1.client.ws.LoginServiceClientFactory.createClient(LoginServiceClientFactory.java:26)

********************************

*********************************

Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions

java.util.List is an interface, and JAXB can't handle interfaces.

this problem is related to the following location:

at java.util.List

at private java.util.HashMap com.arcsight.product.core.service.v1.axis2.jaxws.GroupServiceGetAllRightsByGroupTypeResponse._return

at com.arcsight.product.core.service.v1.axis2.jaxws.GroupServiceGetAllRightsByGroupTypeResponse

at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(Unknown Source)

at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source)

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 javax.xml.bind.ContextFinder.newInstance(Unknown Source)

at javax.xml.bind.ContextFinder.newInstance(Unknown Source)

at javax.xml.bind.ContextFinder.find(Unknown Source)

at javax.xml.bind.JAXBContext.newInstance(Unknown Source)

at javax.xml.bind.JAXBContext.newInstance(Unknown Source)

at com.arcsight.coma.client.ws.jaxws.JaxWSClientFactory.getDispatch(JaxWSClientFactory.java:77)

... 5 more

Are we doing something wrong? What can be the cause of this exception and how can I solve this issue?

Any help will be appreciated.

Tags (1)
0 Likes
Reply
5 Replies
Highlighted
Absent Member.
Absent Member.

Were you ever able to resolve this? I'm having the same issue. Thanks!

0 Likes
Reply
Highlighted
Absent Member.
Absent Member.

Yes, use the JDK 6. The problem should be solved in that way. Regards!

0 Likes
Reply
Highlighted
Absent Member.
Absent Member.

Yeah. Use the insecure version of Java. HP doesn't care about security! Good to know...

0 Likes
Reply
Highlighted
Absent Member.
Absent Member.

That's too bad. I guess we're just going to end up using the "/opt/arcsight/manager/bin/arcsight archive" command until Java 7 is supported. That code must be doing something somewhat off-the-rails for it to be broken by a Java update.

0 Likes
Reply
Highlighted
Absent Member.
Absent Member.

I'm experiencing the exact same issue.  Was the fix to use JDK 6?

- Brandon

0 Likes
Reply
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.