Solved

Java error: "The class must not be an interface or an abstract class"

Posted on 2009-04-09
2
1,301 Views
Last Modified: 2013-12-24
Hi,

I have a load of Java classes which have been compiled from a Web Service and I'm trying to access them from Coldfusion 8. They can be referenced fine on two of our servers but on the other I get this error:

----
An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. If the class has a constructor that accepts an argument, you must call the constructor explicitly using the init(args) method. Error : ''
----

The Coldfusion code I'm using to call these objects is:

<cfscript>
NSSL = CreateObject("java", "com.netsuite.webservices.platform_2008_2.NetSuiteServiceLocator");
ws = NSSL.getNetSuitePort();
</cfscript>

Any idea why this might be happening? We have the same version of Coldfusion 8 on all 3 servers.

Thanks
0
Comment
Question by:jens-gm
2 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 24106993
Can you post the java code for class NetSuiteServiceLocator, or at least the constructors?
0
 
LVL 1

Accepted Solution

by:
carehart earned 250 total points
ID: 25521100
Check out the solution for this very web service offered here:

http://www.aftergeek.com/2006/11/preventing-coldfusion-from-recompiling.html
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question