Object Spy sees a java app as window class instead of javawindow class?

Hello, I am having a problem where any java application is being seen as a window class object. Meaning that no objects in the app can be seen by QTP. This probelm just started this morning so I know the java addin and application were configured correctly. Yesterday I was coding allong just fine, I can't imagine what would have changed over night. java or windows update maybe? I have went as far as to uninstall and reinstall qtp with no affect.  Any advise?

 

Thanks

Tags:

Parents
  •  

     

    1. Check the system environment variables from %path%. Is any external java installation path is pointed? If that so, comment and try

    2. Check that jasmine.jar(QTP Java loader) in the test environment variable.

  • Hi, thanks. I figured out what it was, it looks like qtp 10 is incompatible with jre 1.6.35, which was what my local install was at. Or maybe a better way to say it is that, in my setup at least, it is compatible with 1.6.25. When it was working on Monday I had jre 1.6.25. It must have updated on me. I simply uninstalled .35 and reinstalled .25 and I am able to pick up the javawindow class. And hey it only took me a day and a half of hair pulling to figure it out! I guess the good part is that now I know QTP inside and out! lol

     

    Thanks again your comment made me think of the jre version as being an issue.

     

     

  • Interesting piece of info, its not all java apps. I have another java app and qtp can see the object in that just fine. So why would QTP be able to see java object is one app but not the other? I know QTP has the capability to see the objects because I get it working after messing around with stuff for half the day.

  • ok so uninstall jre 1.6.26, reinstall it it works fine? so now I have a temp fix for it so i can at least move forward but reinstalling java every morning is not a long term solution.

  • ok so uninstall jre 1.6.26, reinstall it it works fine? so now I have a temp fix for it so i can at least move forward but reinstalling java every morning is not a long term solution.

  • Just to make sure this was repeatable I shut down the computer and started back up, java app only seen as window class again. uninstall jre reinstall it and as long as I don't shutdown it sees javawindow class again. Anyone know if there is a hotfix for QTP 10 for this?

  • I don't know! This time without restarting the computer or shutting down, just closing the java app and starting the app again and QTP doesn't see javawindow class. I reinstall java...again. and still can't see it. Restart the computer and reinstall java... Still can't see it. Shut down, power up and reinstall java... Still can't see it.  Something has to be triggered the first time a java app is launched that messes with QTP java hooks... This is ridiculous...

  • Monday morning, same boat... Does it maybe have something to do with 64 bit windows and QTP10? or a combination of those and jre1.6.25? Tried it on another 32bit windows 7 desktop with the same results.... What really sucks is that I have the entire test coded but can't complete testing since I cant get QTP to see the application anymore, and testing with QTP is required for this project... This is so frustrating! I don't think I will ever take another project that requires QTP.

  • Monday morning, same boat... Does it maybe have something to do with 64 bit windows and QTP10? or a combination of those and jre1.6.25? Tried it on another 32bit windows 7 desktop with the same results.... What really sucks is that I have the entire test coded but can't complete testing since I cant get QTP to see the application anymore, and testing with QTP is required for this project... This is so frustrating! I don't think I will ever take another project that requires QTP.

  • Monday morning, same boat... Does it maybe have something to do with 64 bit windows and QTP10? or a combination of those and jre1.6.25? Tried it on another 32bit windows 7 desktop with the same results.... What really sucks is that I have the entire test coded but can't complete testing since I cant get QTP to see the application anymore, and testing with QTP is required for this project... This is so frustrating! I don't think I will ever take another project that requires QTP.

  • So another whole day lost... tried a bunch of different versions of java with no working combination. Talked with another guy that says his install is working fine with this java app, he has no java references in his path environment variable. So I remove mine, rebooted but could not get it to work. He said he did nothing special, just had java installed then installed QTP and thats it. So I decided to try a complete fresh install. Removed all java and QTP. On reinstalling I ran into an issue with it hanging on something with the assembly. after some research I found that it was due to a mercury dll that was never removed on the previous uninstall (Not sure if this is a red falg to someone). So I was able to remove that and then ran the QTPCleanUninstallerV2.10 to make sure there were no reminants of the old install. Since I read that they sometimes cause issues. rebooted one more time for fun... Installed java 1.6.0_26, rebooted...then installed QTP 10 with the java optional addin. restarted then brough up qtp then my java app and still only see the java app as the window class. W....T.....F.....

     

    I have to get this working so I will post an update on what doesnt work tomorrow!

  • So another whole day lost... tried a bunch of different versions of java with no working combination. Talked with another guy that says his install is working fine with this java app, he has no java references in his path environment variable. So I remove mine, rebooted but could not get it to work. He said he did nothing special, just had java installed then installed QTP and thats it. So I decided to try a complete fresh install. Removed all java and QTP. On reinstalling I ran into an issue with it hanging on something with the assembly. after some research I found that it was due to a mercury dll that was never removed on the previous uninstall (Not sure if this is a red falg to someone). So I was able to remove that and then ran the QTPCleanUninstallerV2.10 to make sure there were no reminants of the old install. Since I read that they sometimes cause issues. rebooted one more time for fun... Installed java 1.6.0_26, rebooted...then installed QTP 10 with the java optional addin. restarted then brough up qtp then my java app and still only see the java app as the window class. W....T.....F.....

     

    I have to get this working so I will post an update on what doesnt work tomorrow!

Reply
  • So another whole day lost... tried a bunch of different versions of java with no working combination. Talked with another guy that says his install is working fine with this java app, he has no java references in his path environment variable. So I remove mine, rebooted but could not get it to work. He said he did nothing special, just had java installed then installed QTP and thats it. So I decided to try a complete fresh install. Removed all java and QTP. On reinstalling I ran into an issue with it hanging on something with the assembly. after some research I found that it was due to a mercury dll that was never removed on the previous uninstall (Not sure if this is a red falg to someone). So I was able to remove that and then ran the QTPCleanUninstallerV2.10 to make sure there were no reminants of the old install. Since I read that they sometimes cause issues. rebooted one more time for fun... Installed java 1.6.0_26, rebooted...then installed QTP 10 with the java optional addin. restarted then brough up qtp then my java app and still only see the java app as the window class. W....T.....F.....

     

    I have to get this working so I will post an update on what doesnt work tomorrow!

Children
No Data