You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Robert Zeigler (JIRA)" <de...@tapestry.apache.org> on 2008/01/15 08:05:37 UTC
[jira] Created: (TAPESTRY-2045) NoClassDefFound exception thrown
when injecting DataTypeAnalyzer into a page
NoClassDefFound exception thrown when injecting DataTypeAnalyzer into a page
----------------------------------------------------------------------------
Key: TAPESTRY-2045
URL: https://issues.apache.org/jira/browse/TAPESTRY-2045
Project: Tapestry
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.8
Environment: OS: OSX 10.5
java version: 1.5.0_13
Reporter: Robert Zeigler
While attempting to upgrade my application from 5.0.6 to 5.0.7, I found several tests broken (and the application broken, as well), with a "NoClassDefFound" error, whenever any of the test pages (or application pages) referenced a particular page. The issue appears to be a broken transformation when injecting the DataTypeAnalyzer service (possibly others?).
I will attach a project with a single test case which illustrates the issue.
--
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-2045) NoClassDefFound exception thrown
when injecting DataTypeAnalyzer into a page
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558945#action_12558945 ]
Howard M. Lewis Ship commented on TAPESTRY-2045:
------------------------------------------------
Exception is pretty clear:
"Service interface org.apache.tapestry.services.DataTypeAnalyzer is matched by 2 services: DataTypeAnalyzer, DefaultDataTypeAnalyzer. Automatic dependency resolution requires that exactly one service implement the interface."
Inside TapestryModule:
@Marker(Primary.class)
public DataTypeAnalyzer build(List<DataTypeAnalyzer> configuration)
{
return _chainBuilder.build(DataTypeAnalyzer.class, configuration);
}
Changing Start.java to:
public class Start
{
@Inject @Primary
private DataTypeAnalyzer _analyzer;
}
And all is well.
> NoClassDefFound exception thrown when injecting DataTypeAnalyzer into a page
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-2045
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2045
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.8
> Environment: OS: OSX 10.5
> java version: 1.5.0_13
> Reporter: Robert Zeigler
> Attachments: transformationtest.tgz
>
>
> While attempting to upgrade my application from 5.0.6 to 5.0.7, I found several tests broken (and the application broken, as well), with a "NoClassDefFound" error, whenever any of the test pages (or application pages) referenced a particular page. The issue appears to be a broken transformation when injecting the DataTypeAnalyzer service (possibly others?).
> I will attach a project with a single test case which illustrates the issue.
--
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-2045) NoClassDefFound exception thrown
when injecting DataTypeAnalyzer into a page
Posted by "Robert Zeigler (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler updated TAPESTRY-2045:
-------------------------------------
Attachment: transformationtest.tgz
Uploading a maven project which illustrates the bug. The project uses 5.0.8-SNAPSHOT, but the error is also present in 5.0.7.
> NoClassDefFound exception thrown when injecting DataTypeAnalyzer into a page
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-2045
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2045
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.8
> Environment: OS: OSX 10.5
> java version: 1.5.0_13
> Reporter: Robert Zeigler
> Attachments: transformationtest.tgz
>
>
> While attempting to upgrade my application from 5.0.6 to 5.0.7, I found several tests broken (and the application broken, as well), with a "NoClassDefFound" error, whenever any of the test pages (or application pages) referenced a particular page. The issue appears to be a broken transformation when injecting the DataTypeAnalyzer service (possibly others?).
> I will attach a project with a single test case which illustrates the issue.
--
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-2045) NoClassDefFound exception thrown
when injecting DataTypeAnalyzer into a page
Posted by "Robert Zeigler (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558948#action_12558948 ]
Robert Zeigler commented on TAPESTRY-2045:
------------------------------------------
Very curious as to where you saw that exception. Because digging through my log files, all I see are series of "NoClassDefFound" exceptions.
Same goes for the sample project I submitted. I get the following stack trace:
java.lang.RuntimeException: java.lang.ClassNotFoundException: caught an exception while obtaining a class file for org.apache.tapestry.transformationtest.pages.Start
at org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:240)
at org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl.findInstantiator(ComponentInstantiatorSourceImpl.java:222)
at $ComponentInstantiatorSource_1177c5597da.findInstantiator($ComponentInstantiatorSource_1177c5597da.java)
at org.apache.tapestry.internal.services.PageElementFactoryImpl.newRootComponentElement(PageElementFactoryImpl.java:297)
at $PageElementFactory_1177c5597e8.newRootComponentElement($PageElementFactory_1177c5597e8.java)
at org.apache.tapestry.internal.services.PageLoaderProcessor.loadRootComponent(PageLoaderProcessor.java:387)
at org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:365)
at org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:60)
at $PageLoader_1177c5597e5.loadPage($PageLoader_1177c5597e5.java)
at org.apache.tapestry.internal.services.PagePoolCache.checkout(PagePoolCache.java:188)
at org.apache.tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:108)
at $PagePool_1177c5597e4.checkout($PagePool_1177c5597e4.java)
at org.apache.tapestry.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43)
at $RequestPageCache_1177c5597e3.get($RequestPageCache_1177c5597e3.java)
at $RequestPageCache_1177c5597d7.get($RequestPageCache_1177c5597d7.java)
at org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:55)
at $PageRenderRequestHandler_1177c5597cc.handle($PageRenderRequestHandler_1177c5597cc.java)
at org.apache.tapestry.internal.test.PageLinkInvoker.invoke(PageLinkInvoker.java:59)
at org.apache.tapestry.test.PageTester.invoke(PageTester.java:167)
at org.apache.tapestry.test.PageTester.renderPage(PageTester.java:129)
at org.apache.tapestry.transformationtest.pages.TestStart.render_start(TestStart.java:12)
Even turning on debugging output, I don't see the exception message you posted.
> NoClassDefFound exception thrown when injecting DataTypeAnalyzer into a page
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-2045
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2045
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.8
> Environment: OS: OSX 10.5
> java version: 1.5.0_13
> Reporter: Robert Zeigler
> Assignee: Howard M. Lewis Ship
> Attachments: transformationtest.tgz
>
>
> While attempting to upgrade my application from 5.0.6 to 5.0.7, I found several tests broken (and the application broken, as well), with a "NoClassDefFound" error, whenever any of the test pages (or application pages) referenced a particular page. The issue appears to be a broken transformation when injecting the DataTypeAnalyzer service (possibly others?).
> I will attach a project with a single test case which illustrates the issue.
--
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] Closed: (TAPESTRY-2045) NoClassDefFound exception thrown
when injecting DataTypeAnalyzer into a page
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-2045.
------------------------------------------
Resolution: Invalid
Assignee: Howard M. Lewis Ship
> NoClassDefFound exception thrown when injecting DataTypeAnalyzer into a page
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-2045
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2045
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.8
> Environment: OS: OSX 10.5
> java version: 1.5.0_13
> Reporter: Robert Zeigler
> Assignee: Howard M. Lewis Ship
> Attachments: transformationtest.tgz
>
>
> While attempting to upgrade my application from 5.0.6 to 5.0.7, I found several tests broken (and the application broken, as well), with a "NoClassDefFound" error, whenever any of the test pages (or application pages) referenced a particular page. The issue appears to be a broken transformation when injecting the DataTypeAnalyzer service (possibly others?).
> I will attach a project with a single test case which illustrates the issue.
--
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