List Info

Thread: ObjectRepositoryAssember and JDK1.5 incompatibility




ObjectRepositoryAssember and JDK1.5 incompatibility
user name
2006-11-10 21:29:06
Quoting Christian Cryder <christian.crydergmail.com>:

> Just a little background - the purpose of block
iteration is to be able
> to handle very large reports - it keeps the dom small
on the server
> side, essentially processing a chunk and then flushing
it immediately,
> rather than building the whole thing in memory and then
flushing it at
> the end. In our experience, that was the only practical
way of scaling
> for large reports (eg. 60-100 page HTML output - it
keeps the impact on
> the server much smaller, and it allows the client to
start seeing
> results immediately, rather than waiting 150-30 minutes
it might take to
> actually generate the entire report.
>
> That help?
>

Yep.  So it probably shouldn't be encouraged for use in any
situation except in
a case where a report is being written?  Most basic pages,
even pretty large
ones, load in a very small amount of time.  Using block
iteration for these
pages ends up being more processor intensive than using
normal serialization. 
It's when the doc size is extreme that it becomes more
efficient/scalable than
basic serialization.  Do I have that right?

BTW, 60 - 100 page HTML output?  Seems like it ought to be
split into separate
pages or just produced as a PDF or something.

In any case, can you address the original question about the
ObjectRepositoryAssembler exception when running under
JDK1.5?...

plankton.data.ObjectRepositoryAssembler - error invoking
method
m:java.lang.IllegalAccessException: Class
org.barracudamvc.plankton.data.ObjectRepositoryAssembler$Ass
emblerXMLReader
can not access a member of class
java.lang.AbstractStringBuilder with
modifiers "public"


Jake

> Jacob Kjome wrote:
> >
> > I found this stacktrace (below) in the Tomcat logs
for Barracuda.
> > Looks like there is an incompatibility with
ObjectRepositoryAssember
> > dealing with the new JDK1.5 StringBuilder class;
specifically
> > AbstractStringBuilder.  Christian, can you take a
look at this?
> >
> > BTW, I'm also looking into XMLC 2.3_beta1
compatibility.  There seems
> > to be some issue with block iteration when using
2.3_beta1.  I'll let
> > you know if I need help on that.  Actually, I'm
not sure I understand
> > the purpose of the block iteration?  It's supposed
to be an
> > optimization of sorts (as far as I understand it),
but it's noticeably
> > slower.  I tested with
> > http://lo
calhost:8080/Barracuda/CompTest10?$usebi .  When I use
> > CompTest10 without block iteration, the response
comes back
> > instantly.  When I use block iteration (with XMLC
2.2.12), there's a
> > pregnant pause before the response come back.  
I'm not sure I see how
> > this optimizes anything?  With XMLC 2.3_beta1 an
odd exception is
> > thrown from within XMLC.  It's probably because of
a change in
> > behavior because of the upgrade to Xerces2.  I'm
sure I can work it
> > out, but let's say I can't?  Is block iteration
support even worth
> > it?  Please explain.
> >
> > There also seems to be some javascript issues
being reported in the
> > Mozilla javascript error console.  I think it has
to do with Mozilla
> > becoming more strict about script execution.  I'll
look into this and
> > see if I can track down the root cause.
> >
> > Jake
> >
> >
> > [/Barracuda] 2343   - [INFO ][Thread-1]:
> > plankton.data.ObjectRepositoryAssembler -
...Invoking
> > java.lang.StringBuffer5976c2.append(my very
elderly mother just sent
> > us nine pizzas)
> > [/Barracuda] 2353   - [WARN ][Thread-1]:
> > plankton.data.ObjectRepositoryAssembler - error
invoking method
> > m:java.lang.IllegalAccessException: Class
> >
org.barracudamvc.plankton.data.ObjectRepositoryAssembler$Ass
emblerXMLReader
> > can not access a member of class
java.lang.AbstractStringBuilder with
> > modifiers "public"
> > java.lang.IllegalAccessException: Class
> >
org.barracudamvc.plankton.data.ObjectRepositoryAssembler$Ass
emblerXMLReader
> > can not access a member of class
java.lang.AbstractStringBuilder with
> > modifiers "public"
> >     at
sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
> >     at java.lang.reflect.Method.invoke(Unknown
Source)
> >     at
> >
>
org.barracudamvc.plankton.data.ObjectRepositoryAssembler$Ass
emblerXMLReader.endElement(ObjectRepositoryAssembler.java:85
5)
> >
> >     at
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
.endElement(Unknown
> > Source)
> >     at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
Impl.scanEndElement(Unknown
> > Source)
> >     at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
cannerImpl$FragmentContentDispatcher.dispatch(Unknown
> > Source)
> >     at
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
cannerImpl.scanDocument(Unknown
> > Source)
> >     at
> >
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
n.parse(Unknown
> > Source)
> >     at
> >
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
n.parse(Unknown
> > Source)
> >     at
> >
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U
nknown
> > Source)
> >     at
> >
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
.parse(Unknown
> > Source)
> >     at
> >
>
org.barracudamvc.plankton.data.ObjectRepositoryAssembler$Ass
emblerXMLReader.processXmlFile(ObjectRepositoryAssembler.jav
a:428)
> >
> >     at
> >
>
org.barracudamvc.plankton.data.ObjectRepositoryAssembler.ass
emble(ObjectRepositoryAssembler.java:333)
> >
> >     at
> >
>
org.barracudamvc.plankton.data.ObjectRepositoryAssembler.ini
t(ObjectRepositoryAssembler.java:1109)
> >
> >     at
javax.servlet.GenericServlet.init(GenericServlet.java:211)
> >     at
> >
>
org.apache.catalina.core.StandardWrapper.loadServlet(Standar
dWrapper.java:1105)
> >
> >     at
> >
org.apache.catalina.core.StandardWrapper.load(StandardWrappe
r.java:932)
> >     at
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(Stand
ardContext.java:3917)
> >
> >     at
> >
org.apache.catalina.core.StandardContext.start(StandardConte
xt.java:4201)
> >     at
> >
>
org.apache.catalina.core.ContainerBase.addChildInternal(Cont
ainerBase.java:759)
> >
> >     at
> >
org.apache.catalina.core.ContainerBase.addChild(ContainerBas
e.java:739)
> >     at
> >
org.apache.catalina.core.StandardHost.addChild(StandardHost.
java:524)
> >     at
> >
>
org.apache.catalina.startup.HostConfig.deployDescriptor(Host
Config.java:608)
> >
> >     at
> >
>
org.apache.catalina.startup.HostConfig.deployDescriptors(Hos
tConfig.java:535)
> >
> >     at
> >
org.apache.catalina.startup.HostConfig.deployApps(HostConfig
.java:470)
> >     at
org.apache.catalina.startup.HostConfig.start(HostConfig.java
:1122)
> >     at
> >
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostCo
nfig.java:310)
> >
> >     at
> >
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
> >
> >     at
> >
org.apache.catalina.core.ContainerBase.start(ContainerBase.j
ava:1021)
> >     at
org.apache.catalina.core.StandardHost.start(StandardHost.jav
a:718)
> >     at
> >
org.apache.catalina.core.ContainerBase.start(ContainerBase.j
ava:1013)
> >     at
> >
org.apache.catalina.core.StandardEngine.start(StandardEngine
.java:442)
> >     at
> >
org.apache.catalina.core.StandardService.start(StandardServi
ce.java:450)
> >     at
> >
org.apache.catalina.core.StandardServer.start(StandardServer
.java:709)
> >     at
org.apache.catalina.startup.Catalina.start(Catalina.java:551
)
> >     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
> >     at java.lang.reflect.Method.invoke(Unknown
Source)
> >     at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2
94)
> >     at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:43
2)
> >
> >
> >
------------------------------------------------------------
------------
> >
> >
> > --
> > Barracuda mailing list
> > Barracudaobjectweb.org
> > http://www.objectweb.org/wws/lists/projects/barracuda
> >
>
>
> --
>
------------------------------------------------------------
------------
> Christian Cryder
> The Missoula Project
> 2307 River Rd, Missoula MT 59801
>
> /Email: christian.crydergmail.com
<mailto:christian.crydergmail.com> ~
> Cell: 406.529.5568
> Blogs: Missoula Project <http://miss
oula-project.blogspot.com>/ ~ /See
> Life Differently <http://see
lifedifferently.blogspot.com> ~ Granitepeaks
> <http://granitepe
aks.blogspot.com> [Photos
> <http://g
ranitepeaks-photos.blogspot.com/>] /
>
>
------------------------------------------------------------
------------
>
> /"Coffee? I could quit anytime, just not
today"/
>
>





--
Barracuda mailing list
Barracudaobjectweb.org
http://www.objectweb.org/wws/lists/projects/barracuda
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )