Jump to content
JasperReports Library 7.0 is now available ×

Invalid byte 2 of 4-byte UTF-8 sequence: 3.1.1


mirjua

Recommended Posts

When I try to modify several reports with iReports-nb-3.1.1 after saving the changes it's become unusable!

When I try to use it, I receive the following message:

com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequence
Exception: Invalid byte 2 of 4-byte UTF-8 sequence.
net.sf.jasperreports.engine.JRException: com.sun.org.apache.xerces.internal.impl
.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence.

and

net.sf.jasperreports.engine.JRException: com.sun.org.apache.xerces.internal.impl
.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence.
 

and if I try to open it again in iReport, this gave me a BIG error and says "Invalid Report"

 

Whats happenig?

This happens with any change! and with any report!

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hello,

I also got this trouble. If you do a search on this forum you will find some posts about that.

Just to say that one people gave a work-around : load the plugin-module : "XML and schema" from the "Plugin" menu and this will upgrade iReport in the good way. I did it and it was OK for me.

You can also see on this forum (previous pos) that I have encountered the same kind of error when migrating from 3.1.1 to 3.1.2 and the work-around doesn't work !!

Link to comment
Share on other sites

I've read a post with a solution, but with another problem!

There were another folks whom had the same problem, and someone fixed it installing the "XML and Schema" plugin...

But, how can I install such plugin in a machine that's not connected to internet?

I tested it in another machine (wich is connected, and it worked fine, but, how can I do it in the other machine?

Link to comment
Share on other sites

In fact, the modules you download from internet are somewhere (I don't exactly remember where but I saw them) on your machine connected to internet. Perhaps you can copy them on the other and have to "activate" them through the same menu "Plugin" ( list of loaded modules) but without needing to be connected.

Link to comment
Share on other sites

  • 3 weeks later...

iReport: 3.1.2

The same problem was solved adding parameter -Dfile.encoding=UTF-8 to the VM.

To add parameter edit etc/ireport.conf, modify 'default_options' parameter

it should look like this:

default_options="-J-Dfile.encoding=UTF-8 -J-Xms24m -J-Xmx64m"

 

 

 

 

 

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...