Hi -
I have seen this parse error before. I think it has something to do with
the which XML parser is used and its version.
I just patched Tapestry com.primix.tapestry.parse.SpecificationParser.java.
Here is the method to change...
private boolean getBooleanAttribute(Node node, String attributeName)
{
String attributeValue = getAttribute(node, attributeName);
// attribute value can be null depending on parser
// original code assumed that there is a non-null
attributeValue
return (attributeValue != null &&
attributeValue.equals("yes"));
}
Howard - I don't think that I ever reported this one but I think that it is
a real bug.
I am taking this from memory. Please contact me again if this does not
solve your problem.
Dorothy
-----Original Message-----
From: Colin Sampaleanu
To: [EMAIL PROTECTED]
Sent: 4/26/02 7:03 AM
Subject: Re: [Tapestry-developer] Tapestry and Resin 2.1.0
Thanks for the info. I will search the ML once SourceForge starts
responding. Right now the search function keeps on timing out.
FWIW, this problem happens with the current version of Resin (2.1.0, as
well as a slightly older version (2.0.3). Given that Resin is so
popular, it is worth resolving or documenting, one way or another, but I
will wait until I see the solution you mention before saying anything
more.
Thanks again,
[EMAIL PROTECTED] wrote:
>Dorothy G. did the same thing ... it has something to do
>with your version of Resin. Please search the mailing
>list archives for more details.
>
>--
>[EMAIL PROTECTED]
>
>http://tapestry.sf.net
>
>>Hi,
>>
>>I have been experimenting a little bit with Tapestry, both in WebLogic
>>(e-mail to follow), and in Resin. In Resin 2.1.0. Has anybody
>>successfully run the tutorial app under Resin? I took the tutorial.war
>>file, added all the needed libs inside it in the WEB-INF/lib
directory,
>>and deployed it into Resin 2.1.0. Trying to run any of the samples,
>>such as 'Hello', produces a null pointer exception in
>>SpecificationParser.java), as follows:
>>
>>java.lang.NullPointerException
>> at
>>com.primix.tapestry.parse.SpecificationParser.getBooleanAttribute(Spec
ificationP
>>arser.java:786)
>> at
>>com.primix.tapestry.parse.SpecificationParser.convertComponentSpecific
ation_2(Sp
>>ecificationParser.java:872)
>> at
>>com.primix.tapestry.parse.SpecificationParser.convertComponentSpecific
ation(Spec
>>ificationParser.java:276)
>> at
>>com.primix.tapestry.parse.SpecificationParser.parseComponentSpecificat
ion(Specif
>>icationParser.java:231)
>> at
>>com.primix.tapestry.engine.DefaultSpecificationSource.parseSpecificati
on(Default
>>SpecificationSource.java:188)
>> at
>>com.primix.tapestry.engine.DefaultSpecificationSource.getSpecification
(DefaultSp
>>ecificationSource.java:137)
>> at
com.primix.tapestry.pageload.PageLoader.loadPage(PageLoader.java:429)
>> at
com.primix.tapestry.pageload.PageSource.getPage(PageSource.java:158)
>> at
>>com.primix.tapestry.engine.RequestCycle.getPage(RequestCycle.java:234)
>> at
>>com.primix.tapestry.engine.AbstractEngine.activateExceptionPage(Abstra
ctEngine.j
>>ava:309)
>> at
>>com.primix.tapestry.engine.AbstractEngine.service(AbstractEngine.java:
748)
>> at
>>com.primix.tapestry.ApplicationServlet.doService(ApplicationServlet.ja
va:203)
>> at
>>com.primix.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:1
68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
>> at
>>com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.
java:95)
>> at com.caucho.server.http.Invocation.service(Invocation.java:291)
>> at
>>com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:13
2)
>> at
>>com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:217)
>> at
>>com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:1
59)
>> at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
>> at java.lang.Thread.run(Thread.java:484)
>>
>>I have at this point not spent any time trying to track this down, but
>>am just curious if anybody else has got it to go in Resin?
>>
>>
>>
>>
>>_______________________________________________
>>Tapestry-developer mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>>
>
>_______________________________________________
>Tapestry-developer mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer