December 4th, 2011, 08:11 PM
-
Object Instantiation Exception.
Can someone please help me with the following error. I do not get the error on my development PC only when I visit the live site.
Object Instantiation Exception.
An exception occurred when instantiating a Java object. The class must not be an interface or an abstract class. Error: ''.
The error occurred in D:\home\mymobisaver.com\wwwroot\iPod.cfm: line 78
Called from D:\home\mymobisaver.com\wwwroot\iPod.cfm: line 145
Called from D:\home\mymobisaver.com\wwwroot\iPod.cfm: line 78
Called from D:\home\mymobisaver.com\wwwroot\iPod.cfm: line 145
76 : <cfset var loaded = false />
77 : <cfset var stormBase = createObject("java", "ice.storm.StormBase") />
78 : <cfset var frame = createObject("java", "javax.swing.JFrame").init("Web Viewer") />
79 : <cfset var htmlPanel = createObject("java", "javax.swing.JPanel").init() />
80 : <cfset var startTime = "" />
December 5th, 2011, 02:27 PM
-
Looks like you're trying to instantiate a Java class that is actually an interface or an abstract class.
CF tries to show you where the error is happening but it may not always get the location of the error correct. So make sure you're not doing this somewhere else in the call chain, and I'd double check your StormBase class as well.
December 6th, 2011, 12:14 PM
-
It could also just be a boilerplate error message. With java objects, the real error message is often buried in the stack trace. Can you post it?