ragasits Posted May 13, 2010 Share Posted May 13, 2010 Hi,I created a report with ireport, what is running fine. When I fill it to Jasperserver repository, I've this error message, when ireport reopening it: Error:Attachment not present!When I delete first 4 textfield from detail, the fill working fine. I'm using JasperServer 3.7.0, IReport 3.7.2, PostgresqlHave you got any ideas whats wrong thx,Csaba Link to comment Share on other sites More sharing options...
prashant_nz Posted December 19, 2010 Share Posted December 19, 2010 HiI have the same issue. Tried searching a lot about it but didn't find anything. As the guy above told, if I remove some of the text fields, it works fine. If I delete those fields and try adding anyting there, it still gives the same error.It's really urgent. Can some one please help us out.CheersPrashant Link to comment Share on other sites More sharing options...
hozawa Posted December 20, 2010 Share Posted December 20, 2010 iReport version must match JasperServer version.Since you're using JasperServer 3.7.0, you should be using iReport 3.7.0 Link to comment Share on other sites More sharing options...
itsgauravdas Posted December 28, 2010 Share Posted December 28, 2010 Hi Were U able to sort out this issue.I am Facing the Same.Pls Respond if you have any clue...Gaurav Link to comment Share on other sites More sharing options...
prashant_nz Posted December 28, 2010 Share Posted December 28, 2010 HiNo, I still didn't get the solution. I even tried installing the same exact version of iReport and Jasper server but still having the same problem. Link to comment Share on other sites More sharing options...
itsgauravdas Posted January 5, 2011 Share Posted January 5, 2011 I don't Know Why this Error is Comming for Only One or Two of the reports.Is this a limitation/bug in Jasper Reports....Any Idea|||| Link to comment Share on other sites More sharing options...
prashant_nz Posted January 5, 2011 Share Posted January 5, 2011 I am facing the same problem again and this time I just created a simple report (i.e. with no subreports). Can someone please help. Link to comment Share on other sites More sharing options...
mdahlman Posted January 7, 2011 Share Posted January 7, 2011 Prashant,I think you'll need to add some more details about what you are encountering and step by step instructions for reproducing it. There are probably other readers like myself that cannot understand what symptoms you're facing, so it's impossible to begin guessing at what the underlying cause it.Regards,Matt Link to comment Share on other sites More sharing options...
prashant_nz Posted January 9, 2011 Share Posted January 9, 2011 Hi Matt, Thanks for looking into it. Well, I will tell you the latest problem I had with the same error message. I am using JasperServer 3.7.0, IReport 3.7.3. I have set my compatibility option in iReports to JasperReport 3.7.0 . Well I created a report and it worked completely fine in iReports. Now I uploaded in the jasper server repository and it get uploaded without any error. Now when I double click on the .JRXML file from the reporsitory, it gives me error Error:Attachment not present! I have attached a screenshot. Now for the same report in iReport, I tried deleting some text fields or other stuff randomly and it worked after I deleted some of the fields. Please let me know if you need any further details. ThanksPrashant Post Edited by prashant_nz at 01/09/2011 20:32 Link to comment Share on other sites More sharing options...
mdahlman Posted January 11, 2011 Share Posted January 11, 2011 Ahh... I see what's going on now. I just had this problem recently myself.The problem is with how web service attachments are handled. By default they get saved into .../webapps/jasperserver/WEB-INF/attachmentsIt's common enough that the user running the app server, I'll call him "tomcat", cannot create directories there. So tomcat cannot create the folder "attachments" and you cannot upload things. Or the directory could exist but tomcat doesn't have write access to it.But what does it work for some reports and not others? That's because axis has a hard-coded limit of 16Kb that defines what "large" is. If the report being uploaded is smaller than 16Kb then it handles things without writing to the file system. Life is good. But if the report is large then axis needs to write the file to the attachments directory. If tomcat cannot do this, then you get this error.Solutions: The quickest workaround is to upload the file using the web UI instead of using the JasperServer plugin in iReport. This is bad long term... but it's a good quick fix. Modify .../webapps/jasperserver/WEB-INF/server-config.wsdd. Find this line and set the value to somewhere that tomcat does have access to write to: <parameter name="attachments.Directory" value="attachments"/> My favorite: modify the permissions on the attachments directory.Please let me know if that solves things for you.Regards,Matt Link to comment Share on other sites More sharing options...
itsgauravdas Posted January 12, 2011 Share Posted January 12, 2011 Thanks,Matt,Will try this solutions.Regards,Gaurav Link to comment Share on other sites More sharing options...
prashant_nz Posted January 12, 2011 Share Posted January 12, 2011 Thanks a lot Matt. It worked absolutely fine. Link to comment Share on other sites More sharing options...
gdumeou Posted July 1, 2011 Share Posted July 1, 2011 Thanks Matt,We had the same problem and we just added attachment folder in .../webapps/jasperserver/WEB-INF/ and updated permission for tomcat.That work well !--Gilles Link to comment Share on other sites More sharing options...
ovidiu_vasile Posted January 12, 2012 Share Posted January 12, 2012 Hello, I've tried all the possibilities to fix this issue on my iReport, based on what mdahlman responded, but I didnt managed to fix it.I still receive Attachment not present! text, and my settings are:iReport v4.1.3JasperServer v4.2Tomcat6Java 1.6.0 Response from jasperserver is:Attachment not present!java.lang.Exception: Attachment not present! at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:443) at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) at com.jaspersoft.ireport.jasperserver.ReportRunner.run(ReportRunner.java:70) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Please let me know if you need any other details. Thanks! Link to comment Share on other sites More sharing options...
ovidiu_vasile Posted January 13, 2012 Share Posted January 13, 2012 rovidiu82Wrote: Hello, I've tried all the possibilities to fix this issue on my iReport, based on what mdahlman responded, but I didnt managed to fix it. I still receive Attachment not present! text, and my settings are: iReport v4.1.3 JasperServer v4.2 Tomcat6 Java 1.6.0 Response from jasperserver is: Attachment not present! java.lang.Exception: Attachment not present! at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:443) at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) at com.jaspersoft.ireport.jasperserver.ReportRunner.run(ReportRunner.java:70) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Please let me know if you need any other details. Thanks! I managed to fix it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now