Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Integrating BIRT and fileupload in GWT
Integrating BIRT and fileupload in GWT [message #793688] Wed, 08 February 2012 12:48 Go to next message
Chris K is currently offline Chris KFriend
Messages: 18
Registered: February 2012
Junior Member
hi all!

I am currently working on a GWT-application which runs BIRT-reports. Now I encountered a problem as I tried to integrate a fileupload into my project.

If I have a sample GWT-App with BIRT there is no problem.
If I have a sample GWT-App with fileupload there is no problem.

But If combine BIRT and fileupload wo my GWT-App I will fetch an error when trying to upload a file: An error occured while creating the file : class "org.apache.commons.io.output.ByteArrayOutputStream"'s signer information does not match signer information of other classes in the same package.

I really googled a lot, but I dunno how to solve the error.

I only have all BIRT 3.7.1 runtime libs in my classpath and the commons-fileupload-1.2.2.jar for my fileupload.

Thanks in advance! Smile



Problem solved: see below or directly use http://www.eclipse.org/forums/index.php/mv/msg/287588/794392/#msg_794392

[Updated on: Thu, 09 February 2012 08:27]

Report message to a moderator

Re: Integrating BIRT and fileupload in GWT [message #793901 is a reply to message #793688] Wed, 08 February 2012 18:24 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Besides the birt runtime jars, what other jars do you have in the
classpath? Do you have commons-io.jar in the classpath?
What version of Java are you using?

Jason

On 2/8/2012 7:48 AM, Chris K wrote:
> hi all!
>
> I am currently working on a GWT-application which runs BIRT-reports. Now
> I encountered a problem as I tried to integrate a fileupload into my
> project.
>
> If I have a sample GWT-App with BIRT there is no problem.
> If I have a sample GWT-App with fileupload there is no problem.
>
> But If combine BIRT and fileupload wo my GWT-App I will fetch an error
> when trying to upload a file: An error occured while creating the file :
> class "org.apache.commons.io.output.ByteArrayOutputStream"'s signer
> information does not match signer information of other classes in the
> same package.
>
> I really googled a lot, but I dunno how to solve the error.
>
> I only have all BIRT 3.7.1 runtime libs in my classpath and the
> commons-fileupload-1.2.2.jar for my fileupload.
>
> Thanks in advance! :)
Re: Integrating BIRT and fileupload in GWT [message #793905 is a reply to message #793901] Wed, 08 February 2012 18:30 Go to previous messageGo to next message
Chris K is currently offline Chris KFriend
Messages: 18
Registered: February 2012
Junior Member
Hi!

Besides the BIRT runtime jars I only use commons-fileupload-1.2.2.jar and the gwt-servlet.jar in my classpath.

commons-io.jar is NOT in the classpath.

I use java 6.

I think some of the BIRT jars have the same namespace as the commons-fileupload-1.2.2.jar one. Even changing the order in the build path did not change a thing...

- chris
Re: Integrating BIRT and fileupload in GWT [message #793916 is a reply to message #793905] Wed, 08 February 2012 18:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Chris,

I did not see this package:
org.apache.commons.io.output referenced anywhere in the birt source.

Jason

On 2/8/2012 1:30 PM, Chris K wrote:
> Hi!
>
> Besides the BIRT runtime jars I only use commons-fileupload-1.2.2.jar
> and the gwt-servlet.jar in my classpath.
>
> commons-io.jar is NOT in the classpath.
>
> I use java 6.
>
> I think some of the BIRT jars have the same namespace as the
> commons-fileupload-1.2.2.jar one. Even changing the order in the build
> path did not change a thing...
>
> - chris
Re: Integrating BIRT and fileupload in GWT [message #793934 is a reply to message #793916] Wed, 08 February 2012 19:04 Go to previous messageGo to next message
Chris K is currently offline Chris KFriend
Messages: 18
Registered: February 2012
Junior Member
yeah, you are right, I checked it myself before...

I think the org.apache.* namespaces are also signed within the birt runtime jars, but are not signed in commons-fileupload-1.2.2.jar.

I appreciate any hint or information concerning this, because i f***ing really don't know what to do here Very Happy

Thank you!
Re: Integrating BIRT and fileupload in GWT [message #793980 is a reply to message #793934] Wed, 08 February 2012 19:51 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What version of BIRT are you using? Are you writting api code or just
using the viewer?

Jason

On 2/8/2012 2:04 PM, Chris K wrote:
> yeah, you are right, I checked it myself before...
>
> I think the org.apache.* namespaces are also signed within the birt
> runtime jars, but are not signed in commons-fileupload-1.2.2.jar.
>
> I appreciate any hint or information concerning this, because i f***ing
> really don't know what to do here :d
>
> Thank you!
Re: Integrating BIRT and fileupload in GWT [message #793993 is a reply to message #793980] Wed, 08 February 2012 20:14 Go to previous messageGo to next message
Chris K is currently offline Chris KFriend
Messages: 18
Registered: February 2012
Junior Member
Hi,

I am using BIRT 3.7.1 and I am writing API-code. Basically, I point to a design-file and transform it into a pdf. But when I add commons-fileupload-1.2.2.jar to buildpath (because at some other point I need a fileupload), I get the following exception at runtime (yes, it compiles):

An error occured while creating the file : class "org.apache.commons.io.output.ByteArrayOutputStream"'s signer information does not match signer information of other classes in the same package.
Re: Integrating BIRT and fileupload in GWT [message #794009 is a reply to message #793993] Wed, 08 February 2012 20:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Chris,

I am trying to reproduce this issue. I created a simple command line
app that I run through Eclipse. I run and render to pdf and have all
the birt runtime jars in my cp. I added the file uploader jar as well.
It ran for me with no issues. Do you know what else I could do to
reproduce?

Jason

On 2/8/2012 3:14 PM, Chris K wrote:
> Hi,
>
> I am using BIRT 3.7.1 and I am writing API-code. Basically, I point to a
> design-file and transform it into a pdf. But when I add
> commons-fileupload-1.2.2.jar to buildpath (because at some other point I
> need a fileupload), I get the following exception at runtime (yes, it
> compiles):
>
> An error occured while creating the file : class
> "org.apache.commons.io.output.ByteArrayOutputStream"'s signer
> information does not match signer information of other classes in the
> same package.
Re: Integrating BIRT and fileupload in GWT [message #794391 is a reply to message #794009] Thu, 09 February 2012 08:25 Go to previous messageGo to next message
Chris K is currently offline Chris KFriend
Messages: 18
Registered: February 2012
Junior Member
I have found the answer, see below.
(had to have 5 posts in order to be able to post links... I think the answer is more valueable with the links)
Re: Integrating BIRT and fileupload in GWT [message #794392 is a reply to message #794391] Thu, 09 February 2012 08:25 Go to previous message
Chris K is currently offline Chris KFriend
Messages: 18
Registered: February 2012
Junior Member
Jason,

I got the error when uploading medium-sized files, using a basic upload-servlet. Without BIRT there were no such problems. With BIRT there are. But only with files around 700kbytes - small files around 5kbytes were successfully uploaded.

Finally I stumble upon the solution myself, after hours of google-ing:
I need to have the commons-io-2.1.jar in my classpath!

I found a hint in the book: http://www.scribd.com/doc/59180898/111/GWT%E2%80%99s-File-Upload-Widget at book-page 301:
Quote:
Don't Forget to Add the Commons IO JAR File to Your Build Path
Apache Commons projectsoften have dependencies on one another; for example, thefileUpload project uses Commons IO. Therefore, you must include both CommonsfileUpload and Commons IO JAR files on your build path for Commons fileUpload to workproperly. A "class not found" exception when you are using Commons fileUpload most likely meansthat you've forgotten to add the Commons IO JAR to your build path.


So basically the fileupload uses different approaches, each for different file sizes (e.g. small, large, very large --> memory, temporary file on disk, should not be permitted) as described in http://commons.apache.org/fileupload/using.html. When having BIRT and uploading medium-sized files, fileuploader needs another class to procede -- small files are working.

Thank you for your time Jason!

(I will put the answer in my first question, so others can directly see)
Previous Topic:Question about COUNT vs COUNTDISTINCT
Next Topic:org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
Goto Forum:
  


Current Time: Thu Mar 28 13:49:05 GMT 2024

Powered by FUDForum. Page generated in 0.04804 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top