Null Pointer Exception in QTP Adatper Console
![](http://jazz.net/_images/myphoto/b8c5745736ca3a8d9cd59d66b5c61095.jpg)
Hi,
I am using RQM-QTP-9.x-Adapter-v2.0 and i have integrate it with RQM 2.0
When i try to execute QTP Scripts from Rational Quality Manager following error occurred:
:\QTPAdapterHome\QTPAdapter\bin>Echo Off
aunched the Adapter console
aved current adapter settings in config.properties file
aved current adapter settings in config.properties file
uccessfully created an HTTP client
he adapter is now connected
reated Quick Test Professional v2.0 Adapter.
QMQTPProcessor.Import()] Uploaded 1 test scripts
ser Dir: C:\QTPAdapterHome\QTPAdapter\bin
xecuting QTP Test Script from local machine...
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown
Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Sourc
)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
n Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
What could be the issue?
Can any one please let me know about this its very urgent.
Thanks,
Rajesh Gottapu.
I am using RQM-QTP-9.x-Adapter-v2.0 and i have integrate it with RQM 2.0
When i try to execute QTP Scripts from Rational Quality Manager following error occurred:
:\QTPAdapterHome\QTPAdapter\bin>Echo Off
aunched the Adapter console
aved current adapter settings in config.properties file
aved current adapter settings in config.properties file
uccessfully created an HTTP client
he adapter is now connected
reated Quick Test Professional v2.0 Adapter.
QMQTPProcessor.Import()] Uploaded 1 test scripts
ser Dir: C:\QTPAdapterHome\QTPAdapter\bin
xecuting QTP Test Script from local machine...
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown
Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Sourc
)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
n Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
What could be the issue?
Can any one please let me know about this its very urgent.
Thanks,
Rajesh Gottapu.
5 answers
![](http://jazz.net/_images/myphoto/b8c5745736ca3a8d9cd59d66b5c61095.jpg)
Hi Rajesh,
To be honest I am not too familiar with the internals of this integration, but it looks like it is uploading the script to the location C:\QTPAdapterHome\QTPAdapter\bin and then failing to load it. Does your script show up in that directory tree? Any issues with file access to that directory?
Not definitive but at least it is somewhere to start.
Regards,
John
To be honest I am not too familiar with the internals of this integration, but it looks like it is uploading the script to the location C:\QTPAdapterHome\QTPAdapter\bin and then failing to load it. Does your script show up in that directory tree? Any issues with file access to that directory?
Not definitive but at least it is somewhere to start.
Regards,
John
Hi,
I am using RQM-QTP-9.x-Adapter-v2.0 and i have integrate it with RQM 2.0
When i try to execute QTP Scripts from Rational Quality Manager following error occurred:
:\QTPAdapterHome\QTPAdapter\bin>Echo Off
aunched the Adapter console
aved current adapter settings in config.properties file
aved current adapter settings in config.properties file
uccessfully created an HTTP client
he adapter is now connected
reated Quick Test Professional v2.0 Adapter.
QMQTPProcessor.Import()] Uploaded 1 test scripts
ser Dir: C:\QTPAdapterHome\QTPAdapter\bin
xecuting QTP Test Script from local machine...
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown
Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Sourc
)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
n Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
What could be the issue?
Can any one please let me know about this its very urgent.
Thanks,
Rajesh Gottapu.
![](http://jazz.net/_images/myphoto/b8c5745736ca3a8d9cd59d66b5c61095.jpg)
Hi all,
I am trying to import QTP scripts in RQM and execute them in RQM.
I am getting the following error in the adapter console when i am trying to run the script in RQM
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
n Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
wn Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Can anybody tell me the problem and how to solve it.
Awaiting your replies!
Amrutha
I am trying to import QTP scripts in RQM and execute them in RQM.
I am getting the following error in the adapter console when i am trying to run the script in RQM
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
n Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
wn Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Can anybody tell me the problem and how to solve it.
Awaiting your replies!
Amrutha
![](http://jazz.net/_images/myphoto/b8c5745736ca3a8d9cd59d66b5c61095.jpg)
Hi all,
I am trying to import QTP scripts in RQM and execute them in RQM.
I am getting the following error in the adapter console when i am trying to run the script in RQM
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
n Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
wn Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Can anybody tell me the problem and how to solve it.
Awaiting your replies!
Amrutha
I get the exact same error when trying to execute the QTP script from within RQM. Any help is greatly appreciated.
Thanks
![](http://jazz.net/_images/myphoto/b8c5745736ca3a8d9cd59d66b5c61095.jpg)
Hello,
I was able to solve the problem by changing a particular setting in Quick test professional. hope this would be useful for others who have the same problem.
Open Quick Test Professional -> Click Tools -> Select Options -> Select Run (Present on the left side bar) -> In the window Check the box which says "Allow other Hp products to run tests and components" and say -> Apply
Through this QTP adapter is allowed to run QTp scripts from RQM.
Hope this helps!
I was able to solve the problem by changing a particular setting in Quick test professional. hope this would be useful for others who have the same problem.
Open Quick Test Professional -> Click Tools -> Select Options -> Select Run (Present on the left side bar) -> In the window Check the box which says "Allow other Hp products to run tests and components" and say -> Apply
Through this QTP adapter is allowed to run QTp scripts from RQM.
Hope this helps!
![](http://jazz.net/_images/myphoto/b8c5745736ca3a8d9cd59d66b5c61095.jpg)
Hello,
I was able to solve the problem by changing a particular setting in Quick test professional. hope this would be useful for others who have the same problem.
Open Quick Test Professional -> Click Tools -> Select Options -> Select Run (Present on the left side bar) -> In the window Check the box which says "Allow other Hp products to run tests and components" and say -> Apply
Through this QTP adapter is allowed to run QTp scripts from RQM.
Hope this helps!
Hi,
Unfortunately I encounter the same problem. Even after checking the box which says "Allow other Hp products to run tests and components". I still receive each time:
Loading HP QuickTest Professional Java Support (version 10.0.2297.0) (SUN 1.6.0_
21)
Launched the Adapter console
Successfully created an HTTP client
The adapter is now connected
Created Quick Test Professional Adapter 2.0.0.3
User Dir: D:\data\QTP\QTPAdapter\bin
Executing QTP Test Script from local machine...
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.checkForValidQTPScript(Unknown
Source)
at com.ibm.rqm.adapter.qtp.QMQTPProcessor.processExecution(Unknown Sourc
e)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTask(Unknow
n Source)
at com.ibm.rqm.adapter.library.data.AbstractProcessor.processTasks(Unkno
wn Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter.runLoop(Unknown Source)
at com.ibm.rqm.adapter.library.data.RQMAdapter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Is there anyone that can help me with this issue?
Thanks in advance,
Chris Hauwert