Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RQM selenium adaptor has an error to start up, how to solve it?

We are using RQM 4.0.2, and trying to run Selenium adaptor from Windows 7. We are following this document,
http://www.ibm.com/developerworks/rational/library/run-automated-selenium-junit-tests/index.html
The errors can be found below, what could be the cause of the problem?

C:\setupexe\Selenium and MobilePerfecto\RQMJUnitSeleniumAdapter>start.bat -repos
itory https://rqmserver.rogers.com:9443/qm -user li.chen -password sakib!234 -ad
apterName drssbra3004_Li -projectArea QM_Pilot
Launching Command Line Adapter...

java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
Configuration file C:\setupexe\Selenium and MobilePerfecto\RQMJUnitSeleniumAdapt
er\Config2.ini does not exist, adapter will use the arguments passed
java.security.NoSuchAlgorithmException: SSL_TLS SSLContext not available
Unable to create SSL_TLS context, trying TLS
Successfully created an HTTP client
java.security.NoSuchAlgorithmException: SSL_TLS SSLContext not available
Unable to create SSL_TLS context, trying TLS
The adapter failed to connect to the server
com.ibm.rqm.integration.client.clientlib.RQMProtocolException: Unable to log int
o server: 401: https://rqmserver.rogers.com:9443/qm
        at com.ibm.rqm.integration.client.clientlib.RQMConnectionHelper.login(RQ
MConnectionHelper.java:204)
        at com.ibm.rqm.adapter.library.data.ServerInformation.login(ServerInform
ation.java:184)
        at com.ibm.rqm.adapter.library.data.NewRequester.<init>(NewRequester.jav
a:138)
        at com.ibm.rqm.adapter.commandline.QMCommandLineAdapter.main(QMCommandLi
neAdapter.java:264)
Exception in thread "main" org.apache.abdera.parser.ParseException: javax.xml.st
ream.XMLStreamException: ParseError at [row,col]:[-1,-1]
Message: The reference to entity "etag" must end with the ';' delimiter.
        at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:253)
        at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElemen
tImpl.java:265)
        at org.apache.axiom.om.impl.traverse.OMChildrenIterator.next(OMChildrenI
terator.java:106)
        at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:208)
        at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:
140)
        at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102)
        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
        at org.apache.abdera.parser.stax.FOMXPath.selectNodes(FOMXPath.java:162)

        at org.apache.abdera.parser.stax.FOMXPath.selectNodes(FOMXPath.java:180)

        at com.ibm.rqm.adapter.library.data.NewRequester.getAllProjectAreas(NewR
equester.java:446)
        at com.ibm.rqm.adapter.library.data.NewRequester.getProjectAreaAlias(New
Requester.java:2815)
        at com.ibm.rqm.adapter.commandline.QMCommandLineAdapter.main(QMCommandLi
neAdapter.java:266)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[-1,-1]
Message: The reference to entity "etag" must end with the ';' delimiter.
        at com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwWrappedXMLStre
amException(StAXMessageProvider.java:73)
        at com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.produceFatalErrorEvent(
XMLStreamReaderImpl.java:2096)
        at com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.reportFatalError(XMLStr
eamReaderImpl.java:2102)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.reportFatalError(Document
EntityScanner.java:479)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.checkReferenceInAttValue(
DocumentEntityScanner.java:4465)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.scanAttValueUnbuffered(Do
cumentEntityScanner.java:3595)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.scanStartElementUnbuffere
d(DocumentEntityScanner.java:3487)
        at com.ibm.xml.xlxp.api.util.SimpleScannerHelper.scanStartElementUnbuffe
red(SimpleScannerHelper.java:935)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.stateUnbufferedStartEleme
nt(DocumentEntityScanner.java:507)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.scanContentUnbuffered(Doc
umentEntityScanner.java:2782)
        at com.ibm.xml.xlxp.api.util.SimpleScannerHelper.scanContentUnbuffered(S
impleScannerHelper.java:1241)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.stateUnbufferedContent(Do
cumentEntityScanner.java:551)
        at com.ibm.xml.xlxp.scan.DocumentEntityScanner.produceEvent(DocumentEnti
tyScanner.java:644)
        at com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.getNextScannerEvent(XML
StreamReaderImpl.java:1638)
        at com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.next(XMLStreamReaderImp
l.java:532)
        at com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl$XMLStreamReaderProxy.ne
xt(XMLInputFactoryImpl.java:175)
        at org.apache.abdera.parser.stax.FOMBuilder.getNextElementToParse(FOMBui
lder.java:160)
        at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:184)
        ... 12 more
The command line adapter did not run, exited unexpectedly, or was killed.
This can happen if java.exe was not found in the PATH,
or if java.exe is too old or not compatible (the version of JAVA required is 1.5
 or later),
or Configuration File does not have write permissions,
or some other error occurred.
Please refer to the readme.txt file in the adapter package.
C:\setupexe\Selenium and MobilePerfecto\RQMJUnitSeleniumAdapter>

0 votes

Comments
The classpath looks like
com.ibm.rqm.selenium.seleniumClasspath=C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/apache-mime4j-0.6.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/bsh-1.3.0.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/cglib-nodep-2.1_3.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/commons-codec-1.9.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/commons-collections-3.2.1.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/commons-exec-1.1.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/commons-io-2.4.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/commons-jxpath-1.3.jar;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/commons-lang3-3.3.2.jar;
....
;C:/LIC/li.chen/RTC/SeleniumProject/libs/selenium-2.44.0/libs/junit-4.12.jar;C:/SeleniumScripts/SeleniumProject.jar;C:/Program Files (x86)/Java/jdk1.8.0_31/bin

Some check points as below first:
1) user li.chen  for the adapter has RQM connector or Professional license
2) user li.chen is a member of the specified project area QM_Pilot
3) configuration file must have write permissions in the current working directory
    or the directory specified by -configFile option

It appears that you're using Oracle Java 1.8.0_31. Try with IBM Java 6 or 7 and see if it makes any difference (almost all IBM products bundle their own JVM).

Thanks Don and Donald,

li.chen has the following licenses and he is an admin with full sets of permissions.

Rational Quality Manager - Quality Professional-Floating

Rational Team Concert - Developer-Floating 

Config2 does not exist. After created one manually, the following error was encountered when starting the adaptor.

Adapter is reconnecting. Using saved configuration information from Config2.ini
Exception in thread "main" java.lang.RuntimeException: BASE64 input is invalid b
ecause it is the wrong size
        at com.ibm.rqm.adapter.library.connection.Base64.decode(Base64.java:163)

        at com.ibm.rqm.adapter.commandline.QMCommandLineAdapter.main(QMCommandLi
neAdapter.java:240)
The command line adapter did not run, exited unexpectedly, or was killed.

Now I am going to find out IBM Java then try it.



4 answers

Permanent link
As Don mentioned, check your permissions and licenses since the 401 (Unauthorized) indicates a permissions/licensing issue for user li.chen in RQM project area QM_Pilot. 

0 votes

Comments
...
java version "1.7.0"
Java(TM) SE Runtime Environment (build pwi3270sr7fp1-20140712_01(SR7 FP1))
IBM J9 VM (build 2.6, JRE 1.7.0 Windows 7 x86-32 20140627_204598 (JIT enabled, A
OT enabled)
J9VM - R26_Java726_SR7_20140627_0924_B204598
JIT  - r11.b06_20140409_61252.04
GC   - R26_Java726_SR7_20140627_0924_B204598
J9CL - 20140627_204598)
JCL - 20140707_01 based on Oracle 7u65-b16
Configuration file C:\setupexe\Selenium and MobilePerfecto\RQMJUnitSeleniumAdapt
er\Config2.ini does not exist, adapter will use the arguments passed
Successfully created an HTTP client
The adapter failed to connect to the server
com.ibm.rqm.integration.client.clientlib.RQMProtocolException: Unable to log int
        at com.ibm.rqm.integration.client.clientlib.RQMConnectionHelper.login(RQ
MConnectionHelper.java:204)
...

 the above is the result with IBM Java.

This is the same error response (401).  Check your permissions and licenses since the 401 (Unauthorized) indicates a permissions/licensing issue for user li.chen in RQM project area QM_Pilot. 

 li.chen has the following licenses 
Rational Quality Manager - Quality Professional-Floating

Rational Team Concert - Developer-Floating 

and he is an admin with full sets of permissions.


Permanent link
What version of TLS are you using. If you are using TLSv1.2 then there is a defect Update (and consolidate?) SSLContextUtil for TLSv1.2 in java-based code & utilities (89323) which is fixed in 4.0.4 for the adapter and rqm server

0 votes

Comments

 how to find out TLS version?


Permanent link
This was determined to be a defect. The "!" in the user's password was designating a variable due to delayed expansion (http://ss64.com/nt/delayedexpansion.html) being enabled within the start.bat file.
*note: this is also applicable for starting the CLA (command line adapter).
 


Work Around:
1) Change user and password so that no exclamation point ("!" ) is used. Any other special characters will work if special characters are required in your password.

0 votes

Comments

Thanks Chris. 

There is also another work-around in QM: RQM Selenium adapter:  Unable to log into server (133282) (comment 4) if the username and/or password cannot be changed.


Permanent link

can someone help me here please. i am getting similar error message. there is no special character in my user id and password.
I am using clm 6.0.5 with ifix-02 on windows OS.

C:\RQMJUnitSeleniumAdapter>start.bat -repository https://mapanda3:9443/qm -use m
anoj
Launching Adapter...

java version "1.8.0"
Java(TM) SE Runtime Environment (build pwa6480sr4fp10-20170727_01(SR4 FP10))
IBM J9 VM (build 2.8, JRE 1.8.0 Windows 7 amd64-64 Compressed References 2017072
2_357405 (JIT enabled, AOT enabled)
J9VM - R28_20170722_0201_B357405
JIT  - tr.r14.java_20170722_357405
GC   - R28_20170722_0201_B357405_CMPRSS
J9CL - 20170722_357405)
JCL - 20170726_01 based on Oracle jdk8u144-b01
Adapter is reconnecting. Using saved configuration information from Config2.ini
Exception in thread "main" java.lang.RuntimeException: BASE64 input is invalid b
ecause it is the wrong size
        at com.ibm.rqm.adapter.library.connection.Base64.decode(Base64.java:163)

        at com.ibm.rqm.adapter.commandline.QMCommandLineAdapter.main(QMCommandLi
neAdapter.java:297)
The adapter did not run, exited unexpectedly, or was killed.
This can happen if java.exe was not found in the PATH,
or if java.exe is too old or not compatible (the version of JAVA required is 1.5
 or later),
or Configuration File does not have write permissions,
or some other error occurred.
Please refer to the readme.txt file in the adapter package.
C:\RQMJUnitSeleniumAdapter>

0 votes

Comments

i tries with different parameter like
start.bat -repository https://mapanda3:9443/qm -userid manoj
start.bat -repository https://mapanda3:9443/qm -user manoj

Do you have any non-alphanumeric characters in your password?

in the extracted directory of the selenium adapter, delete the Config2.ini file and try to restart the adapter. If that doesn't work try re-extracting the adapter from the .zip file. Also, make sure you have the latest adapter from jazz.net RQM all downloads.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 30 '15, 4:09 p.m.

Question was seen: 5,475 times

Last updated: Feb 21 '18, 10:05 a.m.

Confirmation Cancel Confirm