#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2011
    Posts
    1
    Rep Power
    0

    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 = "" />
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,263
    Rep Power
    968
    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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2008
    Posts
    131
    Rep Power
    7
    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?

IMN logo majestic logo threadwatch logo seochat tools logo