Registering sample adapter RQMAutomationSample results in "500: Internal Server Error"
I am attempting to run a sample RQM automation adapter, which is referenced from the "offical" RQM documentation. Here is the link to the sample:
http://wiki.eclipse.org/Lyo/BuildClient#RQMAutomationSample
Running the sample adapter results in "500: Internal Server Error".
I am able to run the Command-Line adapter (which comes with RQM) successfully on the same machine.
Can anybody help, please? What might be the difference between the command-line and the sample, and why is the "official" sample creating an "internal server error"?
I cannot sniff the difference with wireshark since the connection is over https.
The adapter seems to login successfully; it is just the registration that fails.
Here is the entire log produced by the sample:
Sep 4, 2015 11:53:46 AM org.eclipse.lyo.client.oslc.samples.automation.RQMAutomationSample configureAdapter
INFO: Loading cached adapter properties from file:/C:/Users/mvpomera/dev/RQM/SampleAdapter/org.eclipse.lyo.client/org.eclipse.lyo.client.java.sample/target/classes/org/eclipse/lyo/client/oslc/samples/automation/adapter.properties
Sep 4, 2015 11:53:47 AM org.eclipse.lyo.client.oslc.samples.automation.RQMAutomationSample configureAdapter
INFO: Logging into service provider at https://rqmclm.rockwellautomation.com/qm
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Sep 4, 2015 11:53:48 AM org.eclipse.lyo.client.oslc.samples.automation.RQMAutomationSample configureAdapter
INFO: Registering with service provider
Exception in thread "main" org.eclipse.lyo.client.oslc.samples.automation.AutomationException: Failed to register the adapter at https://rqmclm.rockwellautomation.com/qm/oslc_auto_test/contexts/_I-zpoP5dEeSmF_-Muq0a0Q/resources/com.ibm.rqm.execution.ToolAdapter. 500: Internal Server Error
at org.eclipse.lyo.client.oslc.samples.automation.AutomationAdapter.register(AutomationAdapter.java:800)
at org.eclipse.lyo.client.oslc.samples.automation.RQMAutomationSample.configureAdapter(RQMAutomationSample.java:147)
at org.eclipse.lyo.client.oslc.samples.automation.RQMAutomationSample.begin(RQMAutomationSample.java:78)
at org.eclipse.lyo.client.oslc.samples.automation.RQMAutomationSample.main(RQMAutomationSample.java:65)
Comments
Paul Slauenwhite
FORUM MODERATOR / JAZZ DEVELOPER Sep 08 '15, 10:34 a.m.Please check the RQM logs for the source of the 500 error response.
Mikhail Pomeranets
Sep 08 '15, 10:43 a.m.Sure, I may have to do that eventually, but it is not easy to arrange in the corporate environment: it is a production server and I would have to request all sorts of permissions from IT to check the logs on that server. I was just hoping that somebody had seen the same problem before (I am playing with the unmodified "official" sample, after all) and would be able to point me in the right direction without the server logs...
Mikhail Pomeranets
Sep 09 '15, 8:46 a.m.Paul, installing a trial version is a good idea; I did not know it was available. I have already requested the permissions for access to the production server's logs, though, so I hope I will get the answers shortly.