Jump to content
We've recently updated our Privacy Statement, available here ×

UTFDataFormatException


2004 IR Help

Recommended Posts

By: xpert - jcox00

UTFDataFormatException

2005-03-24 12:26

Has anybody else seen this when running reports on a platform other than the one that they were originally compiled?

 

java.io.UTFDataFormatException

at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java:2963)

at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:2888)

at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2701)

at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:999)

at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:539)

at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:762)

at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)

at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)

at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)

at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)

at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)

at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:314)

at com.XpertImage.XpertBilling.Reports.ReportFiller.fillReport(ReportFiller.java:321)

at com.XpertImage.XpertBilling.Reports.ReportFiller.run(ReportFiller.java:342)

at java.lang.Thread.run(Thread.java:534)

Link to comment
Share on other sites

  • 3 years later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

That file was created on a Mac and now I am testing the application on a windos werver, I have the jrxml of some reports but I wouldn't want to create the templates for all the reports that don't (have only the jaspers not the jrxml) .When I compile them on windows they work, but as I said some reports I have only the .jasper files.

 

Thanks in advance.

 

Benjamin

Link to comment
Share on other sites

The first thing to check is whether the file somehow got corrupt, that's the most likely explanation of the error.  That can happen when trasferring file over the network, saving them in a DB, etc.

Do you still have the originally created file?  If so, take a MD5 (or similar) sum for both the files and see if they match.

Regards,

Lucian

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...