poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51660] New: Missing xbean.jar file causes long pauses when launching with JWS. Old xmlbeans-2.3.0.jar needs replacing with xbeans.jar and jsr173_1.0_api.jar
Date Mon, 15 Aug 2011 15:58:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51660

             Bug #: 51660
           Summary: Missing xbean.jar file causes long pauses when
                    launching with JWS. Old xmlbeans-2.3.0.jar needs
                    replacing with xbeans.jar and jsr173_1.0_api.jar
           Product: POI
           Version: 3.8-dev
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: keithphw@hotmail.com
    Classification: Unclassified


Hi,

I'm deploying a POI program using Java Web Start (JWS, which uses .jnlp files).
It worked, but there was a long (30 second) pause. The pause only occured when
launching using JWS, and it occurred at the moment POI code was called. When
launching my app locally there was no pause. In the java console, i typed '5'
to get the verbose JWS output to see what was happening during the pause. The
console showed that JWS was looking for an 'xbean.jar' file, repeatedly for the
whole 30 seconds. I couldn't figure out why, since the POI binary distribution
had no xbean.jar file, it only included the xmlbeans-2.3.0.jar file. My own
code did not include any reference to xbeans.jar, and in my jnlp file there was
no reference to it.

After hours of debugging, I traced the problem to POI's use of
xmlbeans-2.3.0.jar. When I replaced that jar with xbeans.jar and
jsr173_1.0_api.jar from the latest xmlbeans-2.5.0.zip of binaries then the
webstart app worked fine without any pauses. What led me to try this was the
directions given on this site:
http://systeminetwork.com/article/new-poi-release-brings-excels-xlsx-support-rpg

To fix this problem, the POI downloadable distribution of binaries should drop
xmlbeans-2.3.0.jar and include both xbeans.jar and jsr173_1.0_api.jar from the
latest xmlbeans binaries. I guess that devs will not detect this bug that i
describe unless they try running POI as a JWS app. 

I suspect that the anomally is due to POI devs using the up-to-date xbeans.jar
file in their code which was used to compile the POI jars, but then that
xbeans.jar file was not included in the downloadable binary distribution that
users like me download. We get the old xmlbeans-2.3.0.jar file which is out of
date and causes the problem that I encountered.

By the way, POI is an extremely useful project and I want to thank all of you
devs for your hard work. Much appreciated.

Best wishes,
Keith

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message