beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Schoettger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEEHIVE-1082) Controls ClientIntializer runtime error
Date Thu, 14 Dec 2006 21:00:23 GMT
    [ http://issues.apache.org/jira/browse/BEEHIVE-1082?page=comments#action_12458605 ] 
            
Chad Schoettger commented on BEEHIVE-1082:
------------------------------------------

I took a quick look at why in some cases a compiler error is not generated.  It appears that
the build error may or may not occur based on the layout of the project.

In the netui bvts where the build error occures, the layout is:

webproject/
        src/
            pageflows & controls

I have a sample test case which doesn't cause a build error and runs fine,

webproject/
     pageflow1/
     pageflow2/
     src/controls

In the BVT case all of the pageflows and controls are compiled at the same time, unfortunately
in this case APT cannot resolve all of the types (due to build order) and fails with an error.

For the second case the controls are built first, then the page flows.  


           

> Controls ClientIntializer runtime error
> ---------------------------------------
>
>                 Key: BEEHIVE-1082
>                 URL: http://issues.apache.org/jira/browse/BEEHIVE-1082
>             Project: Beehive
>          Issue Type: Bug
>          Components: Controls
>    Affects Versions: 1.0.1
>            Reporter: Chad Schoettger
>             Fix For: 1.0.2
>
>
> To recreate this issue:
> 1) Create a control foo control
> 2) Create a control bar control
> 3) Create a BaseControler that has a reference to foo control make the identifier for
the control testControl.
> 4) Create a DerivedController that extends BaseController that has a reference to bar
control, also name this identifier testControl.
> 5) Run the page flow.
> When run the following stack trace is generated by Tomcat:
> 5 Mar 2006 14:42:15,990 ERROR JavaControlUtils []: Exception occurred while initializing
controls
> Throwable: org.apache.beehive.controls.api.ControlException: Exception trying to run
client initializer: java.lang.ClassCastException, controls.FooBean[controls.FooBean]
> Stack Trace:
> org.apache.beehive.controls.api.ControlException: Exception trying to run client initializer:
java.lang.ClassCastException, controls.FooBean[controls.FooBean]
> 	at org.apache.beehive.controls.api.bean.Controls.initializeClient(Controls.java:148)
> 	at org.apache.beehive.netui.pageflow.internal.JavaControlUtils.initJavaControls(JavaControlUtils.java:172)
> 	at org.apache.beehive.netui.pageflow.PageFlowManagedObject.create(PageFlowManagedObject.java:83)
> 	at org.apache.beehive.netui.pageflow.FlowController.create(FlowController.java:556)
> 	at org.apache.beehive.netui.pageflow.PageFlowController.create(PageFlowController.java:416)
> 	at org.apache.beehive.netui.pageflow.FlowControllerFactory.createPageFlow(FlowControllerFactory.java:363)
> 	at org.apache.beehive.netui.pageflow.FlowControllerFactory.createPageFlow(FlowControllerFactory.java:182)
> 	at org.apache.beehive.netui.pageflow.FlowControllerFactory.getPageFlowForPath(FlowControllerFactory.java:157)
> 	at org.apache.beehive.netui.pageflow.FlowControllerFactory.getPageFlowForRequest(FlowControllerFactory.java:123)
> 	at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:190)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.ClassCastException: controls.FooBean
> 	at derivedFlow.DerivedFlowControllerClientInitializer.initializeFields(DerivedFlowControllerClientInitializer.java:41)
> 	at derivedFlow.DerivedFlowControllerClientInitializer.initialize(DerivedFlowControllerClientInitializer.java:60)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.beehive.controls.api.bean.Controls.initializeClient(Controls.java:136)
> 	... 33 more

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

        

Mime
View raw message