You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kenneth William (JIRA)" <de...@tapestry.apache.org> on 2008/01/29 18:10:35 UTC

[jira] Created: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

ParseSpecification.java:1625 produces NPE
-----------------------------------------

                 Key: TAPESTRY-2102
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 4.1.3
         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
            Reporter: Kenneth William


All I am doing is extending Image component to animate some live transparent text on it.

The following code does not check for null on resource.

Therefore... for whatever reason my webapp is not parsing... it produces NPE.

There should be a check here.

I am researching the reason why getResource() returns null.


ParseSpecification.java:1625
    private void parseDocument()
    {
        InputStream stream = null;

        Resource resource = getResource();

        boolean success = false;

        try
        {
            if (_parser == null)
                _parser = _parserFactory.newSAXParser();

            URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Kenneth William (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth William updated TAPESTRY-2102:
--------------------------------------

    Affects Version/s: 4.1.4

> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.1.4
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>         Attachments: MimedImage.java, MimedImage.jwc, TranparentTextImage.jwc, TransparentTextImage.java
>
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Kenneth William (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563577#action_12563577 ] 

Kenneth William commented on TAPESTRY-2102:
-------------------------------------------

An exception has occurred. 
You may continue by restarting the session.

[ +/- ] Exception:
 Could not parse specification null. org.apache.hivemind.ApplicationRuntimeException 
Could not parse specification null. 
   

[ +/- ] Exception:
 Unable to read null: java.lang.NullPointerException org.apache.tapestry.util.xml.DocumentParseException 
Unable to read null: java.lang.NullPointerException 
   

[ +/- ] Exception:
 java.lang.NullPointerException 
 
Stack Trace: 
org.apache.tapestry.parse.SpecificationParser.parseDocument(SpecificationParser.java:1625) org.apache.tapestry.parse.SpecificationParser.parseComponentSpecification(SpecificationParser.java:1602) $ISpecificationParser_117c66bf552.parseComponentSpecification($ISpecificationParser_117c66bf552.java) $ISpecificationParser_117c66bf553.parseComponentSpecification($ISpecificationParser_117c66bf553.java) $ISpecificationParser_117c66bf554.parseComponentSpecification($ISpecificationParser_117c66bf554.java) org.apache.tapestry.services.impl.SpecificationSourceImpl.parseSpecification(SpecificationSourceImpl.java:134) org.apache.tapestry.services.impl.SpecificationSourceImpl.getComponentSpecification(SpecificationSourceImpl.java:175) org.apache.tapestry.services.impl.NamespaceResourcesImpl.getComponentSpecification(NamespaceResourcesImpl.java:86) org.apache.tapestry.engine.Namespace.locateComponentSpecification(Namespace.java:275) org.apache.tapestry.engine.Namespace.getComponentSpecification(Namespace.java:198) org.apache.tapestry.resolver.ComponentSpecificationResolverImpl.resolve(ComponentSpecificationResolverImpl.java:155) $ComponentSpecificationResolver_117c66bf622.resolve($ComponentSpecificationResolver_117c66bf622.java) $ComponentSpecificationResolver_117c66bf623.resolve($ComponentSpecificationResolver_117c66bf623.java) org.apache.tapestry.services.impl.DefaultParserDelegate.getAllowBody(DefaultParserDelegate.java:70) org.apache.tapestry.parse.TemplateParser.processComponentStart(TemplateParser.java:995) org.apache.tapestry.parse.TemplateParser.startTag(TemplateParser.java:866) org.apache.tapestry.parse.TemplateParser.parse(TemplateParser.java:515) org.apache.tapestry.parse.TemplateParser.parse(TemplateParser.java:358) $ITemplateParser_117c66bf687.parse($ITemplateParser_117c66bf687.java) $ITemplateParser_117c66bf688.parse($ITemplateParser_117c66bf688.java) org.apache.tapestry.services.impl.TemplateSourceImpl.constructTemplateInstance(TemplateSourceImpl.java:407) org.apache.tapestry.services.impl.TemplateSourceImpl.parseTemplate(TemplateSourceImpl.java:384) org.apache.tapestry.services.impl.TemplateSourceImpl.getOrParseTemplate(TemplateSourceImpl.java:361) org.apache.tapestry.services.impl.TemplateSourceImpl.findStandardTemplate(TemplateSourceImpl.java:341) org.apache.tapestry.services.impl.TemplateSourceImpl.findTemplate(TemplateSourceImpl.java:239) org.apache.tapestry.services.impl.TemplateSourceImpl.getTemplate(TemplateSourceImpl.java:182) $TemplateSource_117c66bf5a1.getTemplate($TemplateSource_117c66bf5a1.java) org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:56) $ComponentTemplateLoader_117c66bf624.loadTemplate($ComponentTemplateLoader_117c66bf624.java) org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673) org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92) org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122) $Gallery_18.finishLoad($Gallery_18.java) org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408) org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:504) $IPageLoader_117c66bf618.createImplicitComponent($IPageLoader_117c66bf618.java) $IPageLoader_117c66bf619.createImplicitComponent($IPageLoader_117c66bf619.java) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:203) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:158) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75) org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60) $ComponentTemplateLoader_117c66bf625.loadTemplate($ComponentTemplateLoader_117c66bf625.java) $ComponentTemplateLoader_117c66bf624.loadTemplate($ComponentTemplateLoader_117c66bf624.java) org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673) org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92) org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122) $Home_0.finishLoad($Home_0.java) org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408) org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:639) $IPageLoader_117c66bf618.loadPage($IPageLoader_117c66bf618.java) $IPageLoader_117c66bf619.loadPage($IPageLoader_117c66bf619.java) org.apache.tapestry.pageload.PageSource.makeObject(PageSource.java:153) org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:797) org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:177) $IPageSource_117c66bf56c.getPage($IPageSource_117c66bf56c.java) $IPageSource_117c66bf56b.getPage($IPageSource_117c66bf56b.java) org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239) org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226) org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:559) org.apache.tapestry.engine.HomeService.service(HomeService.java:66) $IEngineService_117c66bf5fa.service($IEngineService_117c66bf5fa.java) org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(EngineServiceInnerProxy.java:77) org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:72) org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241) org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54) $WebRequestServicer_117c66bf5d3.service($WebRequestServicer_117c66bf5d3.java) org.trails.i18n.LocaleFilter.service(LocaleFilter.java:26) $WebRequestServicerFilter_117c66bf5d1.service($WebRequestServicerFilter_117c66bf5d1.java) $WebRequestServicer_117c66bf5d5.service($WebRequestServicer_117c66bf5d5.java) $WebRequestServicer_117c66bf5cd.service($WebRequestServicer_117c66bf5cd.java) org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:61) $ServletRequestServicer_117c66bf5b3.service($ServletRequestServicer_117c66bf5b3.java) org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55) $ServletRequestServicerFilter_117c66bf5af.service($ServletRequestServicerFilter_117c66bf5af.java) $ServletRequestServicer_117c66bf5b5.service($ServletRequestServicer_117c66bf5b5.java) org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52) $ServletRequestServicerFilter_117c66bf5ad.service($ServletRequestServicerFilter_117c66bf5ad.java) $ServletRequestServicer_117c66bf5b5.service($ServletRequestServicer_117c66bf5b5.java) org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53) $ServletRequestServicerFilter_117c66bf5b1.service($ServletRequestServicerFilter_117c66bf5b1.java) $ServletRequestServicer_117c66bf5b5.service($ServletRequestServicer_117c66bf5b5.java) $ServletRequestServicer_117c66bf5a7.service($ServletRequestServicer_117c66bf5a7.java) org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:126) org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:103) javax.servlet.http.HttpServlet.service(HttpServlet.java:740) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.trails.security.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:145) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:229) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) org.mortbay.jetty.Server.handle(Server.java:285) org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)  


> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Kenneth William (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth William updated TAPESTRY-2102:
--------------------------------------

    Attachment: MimedImage.jwc
                MimedImage.java
                TransparentTextImage.java

> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>         Attachments: MimedImage.java, MimedImage.jwc, TranparentTextImage.jwc, TransparentTextImage.java
>
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Kenneth William (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth William updated TAPESTRY-2102:
--------------------------------------

    Attachment: TransparentTextImage.java
                TranparentTextImage.jwc

> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>         Attachments: TranparentTextImage.jwc, TransparentTextImage.java
>
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Kenneth William (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563623#action_12563623 ] 

Kenneth William commented on TAPESTRY-2102:
-------------------------------------------

Attempts to eliminate the specification using alternative approach below result in the same stack trace...

@Component(id = "imageWidget", 
	type = "TransparentTextImage",
	bindings =
	{ 
		"model=ognl:currentObject",
		"image=ognl:photoAsset",
		"alt=ognl:currentObject.photo.fileName",
		"title=ognl:currentObject.photo.fileName", 
		"width=160",
		"height=110",
		"transparentText=hello world"	
	})
public abstract TransparentTextImage getImageWidget();  

> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>         Attachments: TranparentTextImage.jwc, TransparentTextImage.java
>
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576719#action_12576719 ] 

Andreas Andreou commented on TAPESTRY-2102:
-------------------------------------------

Perhaps the jwc files are in the wrong location then? Can you attach a zip with a maven project to recreate this?

> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.1.5
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>         Attachments: MimedImage.java, MimedImage.jwc, TranparentTextImage.jwc, TransparentTextImage.java
>
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Albert Tumanov (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622184#action_12622184 ] 

Albert Tumanov commented on TAPESTRY-2102:
------------------------------------------

Maybe the cause is the same as in TAPESTRY-2581

> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3, 4.1.5
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>         Attachments: MimedImage.java, MimedImage.jwc, TranparentTextImage.jwc, TransparentTextImage.java
>
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAPESTRY-2102) ParseSpecification.java:1625 produces NPE

Posted by "Kenneth William (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth William updated TAPESTRY-2102:
--------------------------------------

    Attachment:     (was: TransparentTextImage.java)

> ParseSpecification.java:1625 produces NPE
> -----------------------------------------
>
>                 Key: TAPESTRY-2102
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2102
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.3
>         Environment: XP Pro, maven-2.0.8, eclipse-3.3.1.1, ognl-272-snapshot
>            Reporter: Kenneth William
>         Attachments: TranparentTextImage.jwc
>
>
> All I am doing is extending Image component to animate some live transparent text on it.
> The following code does not check for null on resource.
> Therefore... for whatever reason my webapp is not parsing... it produces NPE.
> There should be a check here.
> I am researching the reason why getResource() returns null.
> ParseSpecification.java:1625
>     private void parseDocument()
>     {
>         InputStream stream = null;
>         Resource resource = getResource();
>         boolean success = false;
>         try
>         {
>             if (_parser == null)
>                 _parser = _parserFactory.newSAXParser();
>             URL resourceURL = resource.getResourceURL();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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