Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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