Skip to main content
Participating Frequently
December 5, 2011
Question

Object Instantiation Exception

  • December 5, 2011
  • 3 replies
  • 1386 views

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.

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 = "" />

    This topic has been closed for replies.

    3 replies

    Participating Frequently
    December 5, 2011

    Here is the link to the code if it help you out.

    http://cfsilence.com/blog/client/index.cfm/2008/4/5/More-Thoughts-on-HTML-To-Image-Plus-Code

    Thanks for any help

    
    Inspiring
    December 6, 2011

    Regarding the error, you need to post the stack trace.  

    Interesting entry.  I have not tried it, but what made you select this approach over the other ie using cfdocument?

    http://www.coldfusionjedi.com/index.cfm/2007/6/13/ColdFusion-8-URL-Thumbnails

    -Leigh

    Participating Frequently
    December 5, 2011

    Someone must have hacked my account.  I'm not sure who is posting those links under my name.  Sorry for all the confusion.

    Inspiring
    December 5, 2011

    javax.swing.JFrame

    I have to ask, why are you trying to create a JFrame .. on the server?

    Participating Frequently
    December 5, 2011

    The code as a whole creates a web page in the background then displays it as a picture to the user.  The user can then save the image.

    Inspiring
    December 5, 2011

    Maybe if you post the link one more time it will start working.

    Oh boy.  If this link is still repeatedly showing up in my inbox hours from now ... I am going to track you down :P