Results 1 to 5 of 5

Thread: Error while uploading a jrxml file.

  1. #1
    enrikm is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    61

    Default Error while uploading a jrxml file.

    Good morning all,

    I get this error when I try to upload a jrxml file to ZuckerReports created via iReport.

    error compiling report Trial.jrxml - cmdline: javaw -classpath "modules/ZuckerReports/resources/;modules/ZuckerReports/resources/Trial.jasper_files/;modules/ZuckerReports/jasper/antlr-2.7.5H3.jar;modules/ZuckerReports/jasper/asm-attrs.jar;modules/ZuckerReports/jasper/asm.jar;modules/ZuckerReports/jasper/barbecue-1.1.jar;modules/ZuckerReports/jasper/bsh-1.3.0.jar;modules/ZuckerReports/jasper/cglib-2.1.jar;modules/ZuckerReports/jasper/commons-beanutils-1.5.jar;modules/ZuckerReports/jasper/commons-collections-2.1.jar;modules/ZuckerReports/jasper/commons-digester-1.7.jar;modules/ZuckerReports/jasper/commons-javaflow-20060411.jar;modules/ZuckerReports/jasper/commons-logging-1.0.2.jar;modules/ZuckerReports/jasper/commons-logging-api-1.0.2.jar;modules/ZuckerReports/jasper/dom4j-1.6.jar;modules/ZuckerReports/jasper/ehcache-1.1.jar;modules/ZuckerReports/jasper/groovy-all-1.0-beta-10.jar;modules/ZuckerReports/jasper/hibernate3.jar;modules/ZuckerReports/jasper/hsqldb-1.7.1.jar;modules/ZuckerReports/jasper/itext-1.3.1.jar;modules/ZuckerReports/jasper/jasperreports-1.2.2.jar;modules/ZuckerReports/jasper/jcmdline-1.0.2.jar;modules/ZuckerReports/jasper/jcommon-1.0.0.jar;modules/ZuckerReports/jasper/jdt-compiler.jar;modules/ZuckerReports/jasper/jfreechart-1.0.0.jar;modules/ZuckerReports/jasper/jr-bsh-compiler.jar;modules/ZuckerReports/jasper/jsmoothgen-ant-0.9.7.jar;modules/ZuckerReports/jasper/jta.jar;modules/ZuckerReports/jasper/jxl.jar;modules/ZuckerReports/jasper/log4j-1.2.8.jar;modules/ZuckerReports/jasper/looks-2.0-rc.jar;modules/ZuckerReports/jasper/mysql-connector-java-3.1.13-bin.jar;modules/ZuckerReports/jasper/nsisant-1.1.jar;modules/ZuckerReports/jasper/png-encoder-1.5.jar;modules/ZuckerReports/jasper/poi-2.0-final-20040126.jar;modules/ZuckerReports/jasper/tinylaf.jar;modules/ZuckerReports/jasper/toniclf.jar;modules/ZuckerReports/jasper/xalan.jar;modules/ZuckerReports/jasper/xercesImpl.jar;modules/ZuckerReports/jasper/xml-apis.jar;modules/ZuckerReports/jasper/zuckerreports-1.0.jar" at.go_mobile.zuckerreports.JasperCompileMain C:\Program Files\sugarcrm-4.5.1e/php/tmp\php4AF4.tmp modules/ZuckerReports/resources/Trial.jasper 2>&1
    JasperBatchMain :: compiling jasper design C:\Program to Files\sugarcrm-4.5.1e/php/tmp\php4AF4.tmp
    JasperBatchMain :: C:\Program (The system cannot find the file specified)
    java.io.FileNotFoundException: C:\Program (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(Unknown Source)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:166)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:151)
    at net.sf.jasperreports.engine.JasperCompileManager.c ompileReport(JasperCompileManager.java:142)
    at at.go_mobile.zuckerreports.JasperCompileMain.main( JasperCompileMain.java:17)

    NESTED BY :
    java.io.FileNotFoundException: C:\Program (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(Unknown Source)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:166)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:151)
    at net.sf.jasperreports.engine.JasperCompileManager.c ompileReport(JasperCompileManager.java:142)
    at at.go_mobile.zuckerreports.JasperCompileMain.main( JasperCompileMain.java:17)

    NESTED BY :
    net.sf.jasperreports.engine.JRException: C:\Program (The system cannot find the file specified)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:171)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:151)
    at net.sf.jasperreports.engine.JasperCompileManager.c ompileReport(JasperCompileManager.java:142)
    at at.go_mobile.zuckerreports.JasperCompileMain.main( JasperCompileMain.java:17)
    Caused by: java.io.FileNotFoundException: C:\Program (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(Unknown Source)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:166)
    ... 3 more


    I already downloaded the latest JRE and JDK which are supposed to be prerequisites for this. Would really appreaciate your help as this is an integral part in the development of out client's system. (outputing reports to PDF)
    Last edited by enrikm; 2007-08-29 at 05:03 AM.

  2. #2
    Byapti is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default Re: Error while uploading a jrxml file.

    Hi,

    I think the iReport article on http://aspalliance.com/1229_Creating...Report__Part_1 may be helpful in this discussion.

    This popular white paper is written by a software engineer from our organization Mindfire Solutions (http://www.mindfiresolutions.com).

    I hope you find it useful!

    Cheers,
    Byapti

  3. #3
    charitha is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Stafford, United Kingdom
    Posts
    34

    Default Re: Error while uploading a jrxml file.

    I solved it as well, although it involved a couple of things from other forums/topics. Not sure which one solved it though, will be looking into it.

    1. Added a classes.jar file.
    http://www.sugarcrm.com/forums/showthread.php?t=25505&highlight=zuckerreports[/URL]
    File is available from: http://www.javalobby.org/java/forums/t52073.html

    2. Commented the 'upload_tmp_dir ... ' in the PHP.ini file.

  4. #4
    sidh211 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    126

    Default Re: Error while uploading a jrxml file.

    hii all

    can you plss tell me where you got this classes.jar file as the url you have specified does not exsists

    plss help
    thanks & regds
    sid

  5. #5
    tomcdonnell is offline Senior Member
    Join Date
    Mar 2010
    Posts
    23

    Default Re: Error while uploading a jrxml file.

    I had a similar problem and solved it with the following fix.

    In the file 'php.ini' I commented out the line 'upload_tmp_dir = "C:\Program Files\sugarcrm-5.5.1/php/tmp"', then restarted Apache. The edit caused the system default TEMP directory to be used instead of the one previously specified. The system default TEMP directory was 'C:\WINDOWS\TEMP', which does not contain a space, and so the file could be found and the exception was no longer generated. Any other directory without a space would have presumably worked also.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. InboundEmail attachment file problems.
    By jjwdesign in forum Help
    Replies: 3
    Last Post: 2007-09-27, 05:18 AM
  2. Uploading file problems
    By ashley in forum General Discussion
    Replies: 2
    Last Post: 2007-04-18, 03:24 PM
  3. Replies: 2
    Last Post: 2006-04-18, 02:47 PM
  4. Replies: 3
    Last Post: 2006-02-17, 05:12 PM
  5. PATCH: HTML Emails and Templates
    By funkypenguin in forum Downloads
    Replies: 2
    Last Post: 2005-05-31, 10:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •