Which version of Java is ColdFusion using?
"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Michael Nguyen To: CF-Talk Sent: Tue Nov 28 04:57:30 2006 Subject: RE: Web service error, pls help When I go to the log exception log, I see the following exceptions: 1) This is when I restart ColdFusion and try it the very first time: "Error","jrpp-0","11/28/06","15:13:42",," The specific sequence of files included or processed is: C:\Inetpub\wwwroot\transtar2\cfm\Test.cfm " java.lang.ExceptionInInitializerError at org.apache.axis.client.Service.getAxisClient(Service.java:143) at org.apache.axis.client.Service.<init>(Service.java:152) at au.com.edi.www.EnterpriseService.ShipmentServiceLocator.<init>(ShipmentServi ceLocator.java:12) at transtar2.Tester.hello(Tester.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:74) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1627) at cfTest2ecfm1049533779.runPage(C:\Inetpub\wwwroot\transtar2\cfm\Test.cfm:5) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence Filter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java: 349) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457 ) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29 5) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76) at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:81) ... 34 more Caused by: java.lang.ClassCastException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:554) ... 38 more 2) And this is what I get any time there after: "Error","jrpp-0","11/28/06","15:16:22",," The specific sequence of files included or processed is: C:\Inetpub\wwwroot\transtar2\cfm\Test.cfm " java.lang.NoClassDefFoundError at org.apache.axis.client.Service.getAxisClient(Service.java:143) at org.apache.axis.client.Service.<init>(Service.java:152) at au.com.edi.www.EnterpriseService.ShipmentServiceLocator.<init>(ShipmentServi ceLocator.java:12) at transtar2.Tester.hello(Tester.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:74) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1627) at cfTest2ecfm1049533779.runPage(C:\Inetpub\wwwroot\transtar2\cfm\Test.cfm:5) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence Filter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:105) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java: 349) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457 ) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29 5) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Has anyone had this kind of error? Any help would be greatly appreciated! -----Original Message----- From: Michael Nguyen [mailto:[EMAIL PROTECTED] Sent: Monday, 27 November 2006 4:06 PM To: CF-Talk Subject: RE: Web service error, pls help I have done some test using WSDL2Java (as Scott and Rob said) and it works fine in java. However, when I called java wrapper class from coldfusion I've got error 500 Null with page title: "JRun Servlet Error". I haven't worked it out so far. Does anyone know what problem was? Thanks, Michael Nguyen -----Original Message----- From: Scott Krebs [mailto:[EMAIL PROTECTED] Sent: Saturday, 25 November 2006 7:32 AM To: CF-Talk Subject: Re: Web service error, pls help Hi Michael, I recently ran into what I believe is the same problem that you are. The problem is that CF is weakly-typed, and the WSDL is describing complex data types that CF cannot figure out what to do with. The bottom line is that CF *can't* consume that web service using CFML, you must do it using Java (or ....NET if on BD.NET). Rob Munn (giving credit where it's very much due) answered the same question for me as so (check out the CFDJ link, the article shows how to get around the problem): CF isn't good at invoking complex web services. The best way to deal with this problem is to use WSDL2Java to create the Java libraries to invoke the web service, then write a wrapper class in Java to use them. You can then call the Java wrapper class from CF. There is a learning curve the first time you tackle it, but after that it gets easier. I wrote an article on it that you can find here: http://cfdj.sys-con.com/read/86131.htm The key is making sure you build the libraries and your wrapper class with the same versions of the Java Axis classes that CFMX uses. Rob So there you go, probably not the news you were looking for though. Hope that helps! -Scott > I've got the following error: > > Attempt to instantiate an abstract class "AutoTelephoneNumber". . > > It means to me that CF tried to create an object from this class, > however there is a C# utility demonstrates how to consume the ws works > fine. > I have also downloaded WTP (Web tool platform for eclipse) and it > works well enough. > > Can oneone give me an advice what the problem would be and how to get > arround of it? > > My codes: > > <cfscript> > ws = CreateObject("webservice", "http://www.tracking.edi.com. > au/webservice/shipmentservice.asmx?wsdl"); > addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/", > "CompanyCode", "CARCASMEL"); addSOAPRequestHeader(ws, "http://www.edi. > com.au/EnterpriseService/", "UserName", "[EMAIL PROTECTED] > au"); addSOAPRequestHeader(ws, "http://www.edi.com. > au/EnterpriseService/", "Password", "mike"); > </cfscript> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261822 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

