tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Created: (TAPESTRY-1230) Odd exception when referencing a component type with incorrect case
Date Fri, 12 Jan 2007 20:35:27 GMT
Odd exception when referencing a component type with incorrect case
-------------------------------------------------------------------

                 Key: TAPESTRY-1230
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1230
             Project: Tapestry
          Issue Type: Bug
          Components: Core
    Affects Versions: 5.0
            Reporter: Howard M. Lewis Ship


It's as iff the Mac file system was case insensitive ... but it isn't, is it?  In any case,
not the exception we want.

A runtime exception has occurred.

    * java.lang.RuntimeException
      java.lang.ClassNotFoundException: caught an exception while obtaining a class file for
org.apache.tapestry.integration.app1.components.render
    * java.lang.ClassNotFoundException
      caught an exception while obtaining a class file for org.apache.tapestry.integration.app1.components.render

      exception
          java.lang.RuntimeException: cannot find org.apache.tapestry.integration.app1.components.render:
org.apache.tapestry.integration.app1.components.Render found in org/apache/tapestry/integration/app1/components/render.class


    * java.lang.RuntimeException
      cannot find org.apache.tapestry.integration.app1.components.render: org.apache.tapestry.integration.app1.components.Render
found in org/apache/tapestry/integration/app1/components/render.class

      Stack trace
              o javassist.CtClassType.getClassFile2(CtClassType.java:197)
              o javassist.CtClassType.getSuperclass(CtClassType.java:490)
              o org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl.forceSuperclassTransform(ComponentInstantiatorSourceImpl.java:197)
              o org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl.onLoad(ComponentInstantiatorSourceImpl.java:167)
              o javassist.Loader.findClass(Loader.java:323)
              o org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:79)
              o javassist.Loader.loadClass(Loader.java:294)
              o java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              o org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:227)
              o org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl.findInstantiator(ComponentInstantiatorSourceImpl.java:213)
              o $ComponentInstantiatorSource_1101800e5e4.findInstantiator($ComponentInstantiatorSource_1101800e5e4.java)
              o $ComponentInstantiatorSource_1101800e5dd.findInstantiator($ComponentInstantiatorSource_1101800e5dd.java)
              o org.apache.tapestry.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:143)
              o $PageElementFactory_1101800e60e.newComponentElement($PageElementFactory_1101800e60e.java)
              o $PageElementFactory_1101800e607.newComponentElement($PageElementFactory_1101800e607.java)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:492)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:387)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:573)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:284)
              o org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:62)
              o $PageLoader_1101800e608.loadPage($PageLoader_1101800e608.java)
              o $PageLoader_1101800e606.loadPage($PageLoader_1101800e606.java)
              o org.apache.tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:63)
              o $PagePool_1101800e60d.checkout($PagePool_1101800e60d.java)
              o $PagePool_1101800e605.checkout($PagePool_1101800e605.java)
              o org.apache.tapestry.internal.services.RequestPageCacheImpl.getByClassName(RequestPageCacheImpl.java:60)
              o org.apache.tapestry.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51)
              o $RequestPageCache_1101800e603.get($RequestPageCache_1101800e603.java)
              o $RequestPageCache_1101800e604.get($RequestPageCache_1101800e604.java)
              o $RequestPageCache_1101800e5da.get($RequestPageCache_1101800e5da.java)
              o org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle(PageLinkHandlerImpl.java:38)
              o $PageLinkHandler_1101800e602.handle($PageLinkHandler_1101800e602.java)
              o $PageLinkHandler_1101800e5fe.handle($PageLinkHandler_1101800e5fe.java)
              o org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:87)
              o $Dispatcher_1101800e600.dispatch($Dispatcher_1101800e600.java)
              o $Dispatcher_1101800e601.dispatch($Dispatcher_1101800e601.java)
              o $Dispatcher_1101800e5f5.dispatch($Dispatcher_1101800e5f5.java)
              o org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:395)
              o org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:428)
              o $RequestHandler_1101800e5f6.service($RequestHandler_1101800e5f6.java)
              o org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
              o $RequestHandler_1101800e5f6.service($RequestHandler_1101800e5f6.java)
              o org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
              o $RequestHandler_1101800e5f6.service($RequestHandler_1101800e5f6.java)
              o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
              o org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:1)
              o org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
              o org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
              o $RequestHandler_1101800e5f6.service($RequestHandler_1101800e5f6.java)
              o $RequestHandler_1101800e5f7.service($RequestHandler_1101800e5f7.java)
              o $RequestHandler_1101800e5ee.service($RequestHandler_1101800e5ee.java)
              o org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:318)
              o $HttpServletRequestHandler_1101800e5ef.service($HttpServletRequestHandler_1101800e5ef.java)
              o $HttpServletRequestHandler_1101800e5ed.service($HttpServletRequestHandler_1101800e5ed.java)
              o org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)



A more reasonable error message occurs when there's a more significant typo in the template:

A runtime exception has occurred.

    * org.apache.tapestry.ioc.internal.util.TapestryException
      Unable to resolve component type 'Renderx' to a component class name.

      location
          context:WEB-INF/BlockDemo.html, line 14, column 66

    * java.lang.IllegalArgumentException
      Unable to resolve component type 'Renderx' to a component class name.

      Stack trace
              o org.apache.tapestry.internal.services.ComponentClassResolverImpl.resolveComponentTypeToClassName(ComponentClassResolverImpl.java:120)
              o $ComponentClassResolver_1101800e5e5.resolveComponentTypeToClassName($ComponentClassResolver_1101800e5e5.java)
              o $ComponentClassResolver_1101800e5c5.resolveComponentTypeToClassName($ComponentClassResolver_1101800e5c5.java)
              o org.apache.tapestry.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:135)
              o $PageElementFactory_1101800e60e.newComponentElement($PageElementFactory_1101800e60e.java)
              o $PageElementFactory_1101800e607.newComponentElement($PageElementFactory_1101800e607.java)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:492)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:387)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:573)
              o org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:284)
              o org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:62)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message