You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Luca De Petrillo <lu...@websiteitalia.com> on 2004/04/23 10:41:10 UTC
Tapestry and Oracle XML Parser
Hi!
I've searched on internet for a problem that I get with tapestry and OC4J
server, and I've found a post on an archived mailing list, that report
exactly the problem, but seem that there isn't a solution:
Original:
http://www.caddr.com/macho/archives/tapestry-users/2004-3/5482.html
Replies:
http://www.caddr.com/macho/archives/tapestry-users/2004-3/5487.html
http://www.caddr.com/macho/archives/tapestry-users/2004-3/5491.html
http://www.caddr.com/macho/archives/tapestry-users/2004-3/5492.html
For whose that don't want to check the mailing list, I reassume there the
problem:
When I try to open a page, that contain a "contrib:Table" component, I get
the following error:
---------------------------------------------------------------------------
An exception has occurred.
You may continue by restarting the session.
org.apache.tapestry.ApplicationRuntimeException
Could not parse specification
classpath:/org/apache/tapestry/contrib/table/components/TableValues.jwc.
org.apache.tapestry.util.xml.DocumentParseException
classloader:/org/apache/tapestry/contrib/table/components/TableValues.jwc<Li
ne 52, Column 29>: XML-0139: (Error) ID value 'iterColumns' is not unique.
org.xml.sax.SAXParseException
classloader:/org/apache/tapestry/contrib/table/components/TableValues.jwc<Li
ne 52, Column 29>: XML-0139: (Error) ID value 'iterColumns' is not unique.
columnNumber: 29
lineNumber: 52
systemId:
classloader:/org/apache/tapestry/contrib/table/components/TableValues.jwc
Stack Trace:
oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:226)
oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:162)
oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.j
ava:276)
oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
org.apache.commons.digester.Digester.parse(Digester.java:1547)
org.apache.tapestry.parse.SpecificationParser.parse(SpecificationParser.java
:642)
org.apache.tapestry.parse.SpecificationParser.parseComponentSpecification(Sp
ecificationParser.java:601)
org.apache.tapestry.engine.DefaultSpecificationSource.parseSpecification(Def
aultSpecificationSource.java:163)
org.apache.tapestry.engine.DefaultSpecificationSource.getComponentSpecificat
ion(DefaultSpecificationSource.java:275)
org.apache.tapestry.engine.Namespace.locateComponentSpecification(Namespace.
java:286)
org.apache.tapestry.engine.Namespace.getComponentSpecification(Namespace.jav
a:202)
org.apache.tapestry.resolver.ComponentSpecificationResolver.resolve(Componen
tSpecificationResolver.java:166)
org.apache.tapestry.resolver.ComponentSpecificationResolver.resolve(Componen
tSpecificationResolver.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:4
76)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:5
04)
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:760)
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:153)
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:196)
org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:674)
org.apache.tapestry.workbench.components.Border.selectPage(Border.java:123)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
java.lang.reflect.Method.invoke(Method.java)
org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java
:257)
org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMa
p.java:98)
org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(L
istenerMap.java:102)
org.apache.tapestry.link.DirectLink.trigger(DirectLink.java:119)
org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:872)
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:197
)
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:159)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.ja
va:65)
org.apache.tapestry.RedirectFilter.doFilter(RedirectFilter.java:106)
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
tcher.java:604)
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq
uestDispatcher.java:317)
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle
r.java:790)
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
sourcePooledExecutor.java:192)
java.lang.Thread.run(Thread.java:534)
---------------------------------------------------------------------------
So, I've looked at "TableValues.jwc" to see if there are more "iterColumns"
ids, but in the file there is only one id "iterColumns".
However, I've noticed that the id "iterColumns" is used by other
"sub-component" needed by the "Table" one:
"TableValues.jwc"
"TableColumns.jwc"
This happen also for other component that use "sub-component" with same id
in their descriptors:
A
|->B (<component id="unique" .../>)
+->C (<component id="unique" .../>)
('A' is the container component of 'B' and 'C', that are different
components).
Another thing is that, if the component 'B' is already instantiated and
cached by Tapestry, than all work good.
Indeed, if I hit refresh the page, when I get the error listed above, I get
another "id is not unique", and after some refresh, I finally get the page
working.
However, if I disable the Tapestry cache (using the parameter
"-Dorg.apache.tapestry.disable-caching=true" in VM command line), I always
get the same error every time I refresh the page.
I've read that this problem show up only on oc4j server, for a problem with
the xml parser of oracle's server, so ,probably, a solution could be to make
the XML parser customizable in a property file.
PS: Sorry for my bad English.
Regards,
Luca De Petrillo.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org