Solved

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

Posted on 2009-04-09
2
1,288 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now