Setting License with Coldfusion

Last post 03-04-2010, 11:59 AM by mweisert. 23 replies.
Page 2 of 2 (24 items)   < Previous 1 2
Sort Posts: Previous Next
  •  02-28-2010, 6:59 PM 224526 in reply to 222784

    Re: Setting License with Coldfusion

    Hello,

    I made sure I have the JDK 5.0 and restarted Coldfusion server.  Here is the entire output error:

    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request

    Error when parse license stream.


     
    The error occurred in D:\InetPub\wwwroot\Intranet\testtwg\sales_reports\engr\test.cfm: line 11
    9 : <cfobject action="create" type="java" class="com.aspose.cells.License" name="license">
    10 :
    11 : <cfset license.setLicense(LicfileI)>
    12 :
    13 :

    Resources:

    Browser   Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
    Remote Address   76.121.5.59
    Referrer  
    Date/Time   28-Feb-10 06:59 PM
    Stack Trace
    at cftest2ecfm1277860170.runPage(D:\InetPub\wwwroot\Intranet\testtwg\sales_reports\engr\test.cfm:11)

    com.aspose.cells.AsposeLicenseException: Error when parse license stream.
    at com.aspose.cells.License.setLicense(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:87)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)
    at cftest2ecfm1277860170.runPage(D:\InetPub\wwwroot\Intranet\testtwg\sales_reports\engr\test.cfm:11)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
    at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273)
    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:175)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

     
  •  03-01-2010, 10:25 AM 224673 in reply to 224526

    Re: Setting License with Coldfusion

    Hi Mike,

     

    Thank you for sharing the complete exception stack trace.

     

    We will further look into your issue and will get back to you soon.

     

    Thank You & Best Regards,


    Nausherwan Aslam
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  03-02-2010, 5:37 AM 224848 in reply to 224673

    Re: Setting License with Coldfusion

    Attachment: Present (inaccessible)
    Hi,

    Please try the attached version.

    We have added some more exception messages for setting license. Please try this new fix and give us the output error messages. Or you can just transform the following java code to the script in ColdFusion and see whether it can work fine now:

            javax.xml.parsers.DocumentBuilderFactory builderFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
            javax.xml.parsers.DocumentBuilder builder = builderFactory.newDocumentBuilder();
            builder.parse(new FileInputStream("Aspose.Cells.lic"));

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  03-02-2010, 6:50 PM 224983 in reply to 224848

    Re: Setting License with Coldfusion

    Amjad,

    Here is my revised trace - thanks :

    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request

    Error when parse license stream.


     
    The error occurred in D:\InetPub\wwwroot\Intranet\testtwg\sales_reports\engr\test.cfm: line 11
    9 : <cfobject action="create" type="java" class="com.aspose.cells.License" name="license">
    10 :
    11 : <cfset license.setLicense(LicfileI)>
    12 :
    13 :

    Resources:

    Browser   Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
    Remote Address   76.121.5.59
    Referrer  
    Date/Time   02-Mar-10 06:29 PM
    Stack Trace
    at cftest2ecfm1277860170.runPage(D:\InetPub\wwwroot\Intranet\testtwg\sales_reports\engr\test.cfm:11)

    com.aspose.cells.AsposeLicenseException: Error when parse license stream.
    at com.aspose.cells.License.setLicense(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:87)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)
    at cftest2ecfm1277860170.runPage(D:\InetPub\wwwroot\Intranet\testtwg\sales_reports\engr\test.cfm:11)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
    at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273)
    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:175)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
    ... 36 more

     
  •  03-03-2010, 6:38 AM 225078 in reply to 224983

    Re: Setting License with Coldfusion

    Hi,

    It seems your license file is corrupted and cannot be recognized as a valid xml file. I think you can try the code shown in our previous post, the code does not use Aspose.Cells any more and only try to load the xml file by SAX. I think it should give an exception too. Did you modified the license file manually? To trace this issue, please transform following code to the script in ColdFusion and give us the output file(res.dat) and your original license file(both by mail please):
            FileInputStream fis = new FileInputStream("Aspose.Cells.lic");
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            int c = fis.read();
            while(c > -1)
            {
                baos.write(c);
                c = fis.read();
            }
            FileOutputStream fos = new FileOutputStream("res.dat");
            ObjectOutputStream oos = new ObjectOutputStream(fos);
            oos.writeObject(baos.toByteArray());
            oos.close();
            fos.close();

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  03-03-2010, 10:19 AM 225129 in reply to 225078

    Re: Setting License with Coldfusion

    Amjad,

    I have not open or manipulated the license file in any way.  I don't know how to transform the code to Coldfusion, either. 

    What other tech support options are available here?  This isn't working.

    Mike
     
  •  03-03-2010, 10:36 AM 225137 in reply to 225129

    Re: Setting License with Coldfusion

    Amjad,

    As an idea, if you think my license file is corrupt, then let's issue a new license file.  You could send me your code and the new file (tested and confirmed to work), and I'll install.  Then we can isolate the issue to the server (or hopefully resolve the problem altogether).

    I have the invoice and any other information you may need to confirm our license.  You should have the original license I sent to you in a previous email.

    Let me know your thoughts.
     
  •  03-03-2010, 11:49 PM 225290 in reply to 225137

    Re: Setting License with Coldfusion

    Attachment: Present (inaccessible)

    Hi,

     

    I have sent your license file to you via email. It works absolutely fine. Please try the attached code in your environment. Following are the details for how I run the code:

     

    I placed the license file in the ColdFusion9\runtime\bin folder.

     

    The location of my test page is ColdFusion9\wwwroot\CFIDE\aspose\aspose2.cfm.

     

    Please try your license file again and see if it works fine with the attached file.

     

    Thank You & Best Regards,


    Nausherwan Aslam
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  03-04-2010, 11:59 AM 225460 in reply to 225290

    Re: Setting License with Coldfusion

    That did it!  Thanks!
     
Page 2 of 2 (24 items)   < Previous 1 2
View as RSS news feed in XML