Solved

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

Posted on 2009-04-09
2
1,283 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_
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

11 Experts available now in Live!

Get 1:1 Help Now