Re: Could not instantiate stub objects
Hi Rob, Yeah, it is strange that it wouldn't generate the stubs on it's own. The Test environment and the production environment are setup up as identical as I can. They are both currently running jdk1.6.0_10. In checking the permissions, both servers are setup identically. The only real differences I can see is the hardware. OS versions are identical. The production server has more CPUs and more RAM. I can't see any other differences. Again, that you for working on this with me. What was done to get this working certainly isn't preferred because the problem hasn't really been solved. But at least the solution is running. Kevin Hi Kevin, Thanks for the update mate, sorry I disappeared last night, it was getting late and I was knackered. Well at least you have a working solution now, really very odd that it couldn't generate the stub objects. If the connection was fine from the server there shouldn't have been a problem. What JAVA versions are you running on the servers? Same on both? My only other thought is perhaps some form of permissions error, the cf server doesn't have permissions to write those stub files to the FS or something? Might be worth double checking. Whilst nothing has changed code wise, something configuration wise on the server may have changed, a windows update or something, who knows. Rob Hi Rob, I thought I'd let you know I got it working, albeit using a method that I'd prefer not to, but nonetheless it works. What I did was I went on to the Test server I told you about that works great with the web service. After removing the web service from the administrator and stopping the ColdFusion services, I went in and deleted out all the stub directories. I then started the server back up. I then copied all the stub .class files from the test server over to the production server. Then it came to life. Should've been easier than that. But after all the hours I put into this, I'll take it. Thanks for your assistance. Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321978 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Could not instantiate stub objects
Hey Kevin, Seems like the servers you've got setup are as identical as you could hope for, just seems to senseless that it wasn't creating them. Tell me, have you tried to the regenerate them again since you got it working? My only thought at the moment is that whilst not a permissions issue perhaps one of the old stub objects on the server has become corrupt and couldn't be overwritten by CF, yet you deleting is manually and then copying in the version from the production would be fine. Perhaps it's worth reclicking the 'refresh' button in the admin now to see what it does? Or deleting the stub objects manually and then running the code, that would give some more clues. Rob -Original Message- From: Kevin Cundick [mailto:kcund...@nutracorp.com] Sent: 27 April 2009 17:21 To: cf-talk Subject: Re: Could not instantiate stub objects Hi Rob, Yeah, it is strange that it wouldn't generate the stubs on it's own. The Test environment and the production environment are setup up as identical as I can. They are both currently running jdk1.6.0_10. In checking the permissions, both servers are setup identically. The only real differences I can see is the hardware. OS versions are identical. The production server has more CPUs and more RAM. I can't see any other differences. Again, that you for working on this with me. What was done to get this working certainly isn't preferred because the problem hasn't really been solved. But at least the solution is running. Kevin Hi Kevin, Thanks for the update mate, sorry I disappeared last night, it was getting late and I was knackered. Well at least you have a working solution now, really very odd that it couldn't generate the stub objects. If the connection was fine from the server there shouldn't have been a problem. What JAVA versions are you running on the servers? Same on both? My only other thought is perhaps some form of permissions error, the cf server doesn't have permissions to write those stub files to the FS or something? Might be worth double checking. Whilst nothing has changed code wise, something configuration wise on the server may have changed, a windows update or something, who knows. Rob Hi Rob, I thought I'd let you know I got it working, albeit using a method that I'd prefer not to, but nonetheless it works. What I did was I went on to the Test server I told you about that works great with the web service. After removing the web service from the administrator and stopping the ColdFusion services, I went in and deleted out all the stub directories. I then started the server back up. I then copied all the stub .class files from the test server over to the production server. Then it came to life. Should've been easier than that. But after all the hours I put into this, I'll take it. Thanks for your assistance. Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321979 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Could not instantiate stub objects
Hi Kevin, Thanks for the update mate, sorry I disappeared last night, it was getting late and I was knackered. Well at least you have a working solution now, really very odd that it couldn't generate the stub objects. If the connection was fine from the server there shouldn't have been a problem. What JAVA versions are you running on the servers? Same on both? My only other thought is perhaps some form of permissions error, the cf server doesn't have permissions to write those stub files to the FS or something? Might be worth double checking. Whilst nothing has changed code wise, something configuration wise on the server may have changed, a windows update or something, who knows. Rob -Original Message- From: Kevin Cundick [mailto:kcund...@nutracorp.com] Sent: 24 April 2009 00:12 To: cf-talk Subject: Re: Could not instantiate stub objects Hi Rob, I thought I'd let you know I got it working, albeit using a method that I'd prefer not to, but nonetheless it works. What I did was I went on to the Test server I told you about that works great with the web service. After removing the web service from the administrator and stopping the ColdFusion services, I went in and deleted out all the stub directories. I then started the server back up. I then copied all the stub .class files from the test server over to the production server. Then it came to life. Should've been easier than that. But after all the hours I put into this, I'll take it. Thanks for your assistance. Kevin Hi All, I am having some trouble trying to call a web service that is currently setup in the ColdFusion administrator. I get the following exception each time I try... Error,jrpp-3,04/22/09,13:55:25,nutracorp,Could not instantiate stub objects for web service invocation.The rootcause was that: java.lang.reflect.InvocationTargetException The specific sequence of files included or processed is: D:\xxx\sites\xweb\search_.cfm, line: 40 coldfusion.xml.rpc.ServiceInfo$ServiceStubInstantiationException: Could not instantiate stub objects for web service invocation. Has anyone seen this before? It is running ColdFusion 7 on Windows Server 2003 (SP3). CF is utilizing Java's JDK1.6.0_10. Upgrading to ColdFusion 8 is not an option for me as I have been turned down upon many requests. So I'm stuck with CF 7. I know it is not supported to run JDK 1.6, but I need many of the features that come with that JDK so falling back also isn't an option. The weird thing is that this has worked for quite some time and then broke out of the blue without any changes being made. I would appreciate any suggestions on what could be going on. Thanks, Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321925 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Could not instantiate stub objects
Hi Kevin, You say that the webservice is listed in the CFADMIN? I'd try deleting it from the list and then the next time the code is called it should regenerate and hopefully solve your problem, have you tried that? Is this remote service your own? Or someone elses? Rob -Original Message- From: Kevin Cundick [mailto:kcund...@nutracorp.com] Sent: 22 April 2009 22:07 To: cf-talk Subject: Could not instantiate stub objects Hi All, I am having some trouble trying to call a web service that is currently setup in the ColdFusion administrator. I get the following exception each time I try... Error,jrpp-3,04/22/09,13:55:25,nutracorp,Could not instantiate stub objects for web service invocation.The rootcause was that: java.lang.reflect.InvocationTargetException The specific sequence of files included or processed is: D:\xxx\sites\xweb\search_.cfm, line: 40 coldfusion.xml.rpc.ServiceInfo$ServiceStubInstantiationException: Could not instantiate stub objects for web service invocation. Has anyone seen this before? It is running ColdFusion 7 on Windows Server 2003 (SP3). CF is utilizing Java's JDK1.6.0_10. Upgrading to ColdFusion 8 is not an option for me as I have been turned down upon many requests. So I'm stuck with CF 7. I know it is not supported to run JDK 1.6, but I need many of the features that come with that JDK so falling back also isn't an option. The weird thing is that this has worked for quite some time and then broke out of the blue without any changes being made. I would appreciate any suggestions on what could be going on. Thanks, Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321846 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Could not instantiate stub objects
Hi Rob, Thank you for suggestion. I did what you recommended and after I did that, I get this exception... Could not instantiate stub objects for web service invocation. I'm not sure why it would not be able to instantiate the class, it is there. So this has me stuck. Thank you again for your suggestion. Kevin Hi Kevin, You say that the webservice is listed in the CFADMIN? I'd try deleting it from the list and then the next time the code is called it should regenerate and hopefully solve your problem, have you tried that? Is this remote service your own? Or someone elses? Rob Hi All, I am having some trouble trying to call a web service that is currently setup in the ColdFusion administrator. I get the following exception each time I try... Error,jrpp-3,04/22/09,13:55:25,nutracorp,Could not instantiate stub objects for web service invocation.The rootcause was that: java.lang.reflect.InvocationTargetException The specific sequence of files included or processed is: D:\xxx\sites\xweb\search_.cfm, line: 40 coldfusion.xml.rpc.ServiceInfo$ServiceStubInstantiationException: Could not instantiate stub objects for web service invocation. Has anyone seen this before? It is running ColdFusion 7 on Windows Server 2003 (SP3). CF is utilizing Java's JDK1.6.0_10. Upgrading to ColdFusion 8 is not an option for me as I have been turned down upon many requests. So I'm stuck with CF 7. I know it is not supported to run JDK 1.6, but I need many of the features that come with that JDK so falling back also isn't an option. The weird thing is that this has worked for quite some time and then broke out of the blue without any changes being made. I would appreciate any suggestions on what could be going on. Thanks, Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321854 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Could not instantiate stub objects
I failed to mention that this remote service is someone else's. If I attempt the hit the WSDL by just pasting the URL in the browser it does come back successfully. Any further suggestions? I would appreciate it. Hi Rob, Thank you for suggestion. I did what you recommended and after I did that, I get this exception... Could not instantiate stub objects for web service invocation. I'm not sure why it would not be able to instantiate the class, it is there. So this has me stuck. Thank you again for your suggestion. Kevin Hi Kevin, You say that the webservice is listed in the CFADMIN? I'd try deleting it from the list and then the next time the code is called it should regenerate and hopefully solve your problem, have you tried that? Is this remote service your own? Or someone elses? Rob Hi All, I am having some trouble trying to call a web service that is currently setup in the ColdFusion administrator. I get the following exception each time I try... Error,jrpp-3,04/22/09,13:55:25,nutracorp,Could not instantiate stub objects for web service invocation.The rootcause was that: java.lang.reflect.InvocationTargetException The specific sequence of files included or processed is: D:\xxx\sites\xweb\search_.cfm, line: 40 coldfusion.xml.rpc.ServiceInfo$ServiceStubInstantiationException: Could not instantiate stub objects for web service invocation. Has anyone seen this before? It is running ColdFusion 7 on Windows Server 2003 (SP3). CF is utilizing Java's JDK1.6.0_10. Upgrading to ColdFusion 8 is not an option for me as I have been turned down upon many requests. So I'm stuck with CF 7. I know it is not supported to run JDK 1.6, but I need many of the features that come with that JDK so falling back also isn't an option. The weird thing is that this has worked for quite some time and then broke out of the blue without any changes being made. I would appreciate any suggestions on what could be going on. Thanks, Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321892 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Could not instantiate stub objects
Hi Kevin, In the admin panel when you click 'refresh' next to the webservice, what happens then? Also, try running the following code in a CFM and see what exception is thrown: cfset CreateObject(java, coldfusion.server.ServiceFactory ).XmlRpcService.RefreshWebService('URL OF THE WSDL GOES HERE') / That will likely throw the exact same exception as before, my only thought if that doesn't work is that we can try and restart the cfusion service to clear any dud caches it might be storing but other than that I'm all out, unless the problem lies at the server end for whoever is publishing the service, it'll be worth speaking to them if none of these things help. Rob -Original Message- From: Kevin Cundick [mailto:kcund...@nutracorp.com] Sent: 23 April 2009 19:44 To: cf-talk Subject: Re: Could not instantiate stub objects I failed to mention that this remote service is someone else's. If I attempt the hit the WSDL by just pasting the URL in the browser it does come back successfully. Any further suggestions? I would appreciate it. Hi Rob, Thank you for suggestion. I did what you recommended and after I did that, I get this exception... Could not instantiate stub objects for web service invocation. I'm not sure why it would not be able to instantiate the class, it is there. So this has me stuck. Thank you again for your suggestion. Kevin Hi Kevin, You say that the webservice is listed in the CFADMIN? I'd try deleting it from the list and then the next time the code is called it should regenerate and hopefully solve your problem, have you tried that? Is this remote service your own? Or someone elses? Rob Hi All, I am having some trouble trying to call a web service that is currently setup in the ColdFusion administrator. I get the following exception each time I try... Error,jrpp-3,04/22/09,13:55:25,nutracorp,Could not instantiate stub objects for web service invocation.The rootcause was that: java.lang.reflect.InvocationTargetException The specific sequence of files included or processed is: D:\xxx\sites\xweb\search_.cfm, line: 40 coldfusion.xml.rpc.ServiceInfo$ServiceStubInstantiationException: Could not instantiate stub objects for web service invocation. Has anyone seen this before? It is running ColdFusion 7 on Windows Server 2003 (SP3). CF is utilizing Java's JDK1.6.0_10. Upgrading to ColdFusion 8 is not an option for me as I have been turned down upon many requests. So I'm stuck with CF 7. I know it is not supported to run JDK 1.6, but I need many of the features that come with that JDK so falling back also isn't an option. The weird thing is that this has worked for quite some time and then broke out of the blue without any changes being made. I would appreciate any suggestions on what could be going on. Thanks, Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321896 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Could not instantiate stub objects
Thank you Rob for your suggestions. In the admin panel if I click refresh next to the webservice it gives me this exception... Unable to refresh webservice. Could not instantiate stub objects for web service invocation. The rootcause was that: java.lang.reflect.InvocationTargetException When running the cfset you suggested below, I get the same exception as before. Thank you for your efforts! Hi Kevin, In the admin panel when you click 'refresh' next to the webservice, what happens then? Also, try running the following code in a CFM and see what exception is thrown: cfset CreateObject(java, coldfusion.server.ServiceFactory ).XmlRpcService.RefreshWebService('URL OF THE WSDL GOES HERE') / That will likely throw the exact same exception as before, my only thought if that doesn't work is that we can try and restart the cfusion service to clear any dud caches it might be storing but other than that I'm all out, unless the problem lies at the server end for whoever is publishing the service, it'll be worth speaking to them if none of these things help. Rob I failed to mention that this remote service is someone else's. If I attempt the hit the WSDL by just pasting the URL in the browser it does come back successfully. Any further suggestions? I would appreciate it. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321899 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Could not instantiate stub objects
Hi Kevin, Yeah these kinds of issues are a nightmare, web services seem to always throw really dumb vague errors which nobody knows anything about! I've wasted hours on problems like this. My final shot at this would be to delete that entry in the cfadmin and restart the coldfusion service on your box, this should clear out any temporary files. My thoughts at the moment are that the publisher has made some changes to the service and that the WSDL is now invalid but due to some cached file somewhere it won't refresh it properly or something. If this isn't a really busy server and you can afford to restart it then that would be my final suggestion, other than contacting the publisher to see if they're aware of any issues. The only other thing I wanted to ask, when you say you're browsing to the WSDL in a browser and it works fine, is that on your local machine or in the browser on the server? I'd be interested to know if the WSDL loads ok in the browser on the server, might be some firewall setting or something causing the problems. Rob -Original Message- From: Kevin Cundick [mailto:kcund...@nutracorp.com] Sent: 23 April 2009 20:38 To: cf-talk Subject: Re: Could not instantiate stub objects Thank you Rob for your suggestions. In the admin panel if I click refresh next to the webservice it gives me this exception... Unable to refresh webservice. Could not instantiate stub objects for web service invocation. The rootcause was that: java.lang.reflect.InvocationTargetException When running the cfset you suggested below, I get the same exception as before. Thank you for your efforts! Hi Kevin, In the admin panel when you click 'refresh' next to the webservice, what happens then? Also, try running the following code in a CFM and see what exception is thrown: cfset CreateObject(java, coldfusion.server.ServiceFactory ).XmlRpcService.RefreshWebService('URL OF THE WSDL GOES HERE') / That will likely throw the exact same exception as before, my only thought if that doesn't work is that we can try and restart the cfusion service to clear any dud caches it might be storing but other than that I'm all out, unless the problem lies at the server end for whoever is publishing the service, it'll be worth speaking to them if none of these things help. Rob I failed to mention that this remote service is someone else's. If I attempt the hit the WSDL by just pasting the URL in the browser it does come back successfully. Any further suggestions? I would appreciate it. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321900 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Could not instantiate stub objects
Hi Rob, Yes, many hours have already gone into this and I haven't made much progress. ;) I attempted what you suggested with removing the web service from the administrator, stopping and starting the CF service. Unfortunately, no change. I have a test environment currently working. This test environment has no trouble running this Web Service. The code is exactly the same from production to test. Just makes this issue even more puzzling. This shows that the WSDL should still work. When I test the WSDL via the URL, I did it from a browser on the server itself. Of course this shows that there isn't a connection issue from the server itself. Thanks again! Kevin Hi Kevin, Yeah these kinds of issues are a nightmare, web services seem to always throw really dumb vague errors which nobody knows anything about! I've wasted hours on problems like this. My final shot at this would be to delete that entry in the cfadmin and restart the coldfusion service on your box, this should clear out any temporary files. My thoughts at the moment are that the publisher has made some changes to the service and that the WSDL is now invalid but due to some cached file somewhere it won't refresh it properly or something. If this isn't a really busy server and you can afford to restart it then that would be my final suggestion, other than contacting the publisher to see if they're aware of any issues. The only other thing I wanted to ask, when you say you're browsing to the WSDL in a browser and it works fine, is that on your local machine or in the browser on the server? I'd be interested to know if the WSDL loads ok in the browser on the server, might be some firewall setting or something causing the problems. Rob Thank you Rob for your suggestions. In the admin panel if I click refresh next to the webservice it gives me this exception... Unable to refresh webservice. Could not instantiate stub objects for web service invocation. The rootcause was that: java.lang.reflect.InvocationTargetException When running the cfset you suggested below, I get the same exception as before. Thank you for your efforts! come back successfully. Any further suggestions? I would appreciate it. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321903 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Could not instantiate stub objects
Hi Rob, I thought I'd let you know I got it working, albeit using a method that I'd prefer not to, but nonetheless it works. What I did was I went on to the Test server I told you about that works great with the web service. After removing the web service from the administrator and stopping the ColdFusion services, I went in and deleted out all the stub directories. I then started the server back up. I then copied all the stub .class files from the test server over to the production server. Then it came to life. Should've been easier than that. But after all the hours I put into this, I'll take it. Thanks for your assistance. Kevin Hi All, I am having some trouble trying to call a web service that is currently setup in the ColdFusion administrator. I get the following exception each time I try... Error,jrpp-3,04/22/09,13:55:25,nutracorp,Could not instantiate stub objects for web service invocation.The rootcause was that: java.lang.reflect.InvocationTargetException The specific sequence of files included or processed is: D:\xxx\sites\xweb\search_.cfm, line: 40 coldfusion.xml.rpc.ServiceInfo$ServiceStubInstantiationException: Could not instantiate stub objects for web service invocation. Has anyone seen this before? It is running ColdFusion 7 on Windows Server 2003 (SP3). CF is utilizing Java's JDK1.6.0_10. Upgrading to ColdFusion 8 is not an option for me as I have been turned down upon many requests. So I'm stuck with CF 7. I know it is not supported to run JDK 1.6, but I need many of the features that come with that JDK so falling back also isn't an option. The weird thing is that this has worked for quite some time and then broke out of the blue without any changes being made. I would appreciate any suggestions on what could be going on. Thanks, Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321911 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4