History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XPR-187
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Brill Pappin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
xplanner

Struts SpringPlugIn throws exception on startup

Created: 01/Dec/05 10:47 PM   Updated: 03/Dec/05 01:25 PM
Component/s: None
Affects Version/s: 0.7
Fix Version/s: 0.7

Time Tracking:
Not Specified

JDK version and platform: jdk 1.5.x on FreeBSD
Database: MySQL 5
Application server: Tomcat 5.5.x


 Description  « Hide
This is from the main trunk I checkout out 2005-12-01 (revision 868).
I haven't dug any deeper yet, but it looks like a spring config issue.



2005-12-01 23:40:25,750 [http-80-Processor25] ERROR strutsspring.SpringPlugIn - org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/start/iteration' defined in /WEB-INF/classes/spring-beans.xml: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.technoetic.xplanner.actions.DataSamplerImpl] to required type [com.technoetic.xplanner.charts.DataSampler] for property 'dataSampler']
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/start/iteration' defined in /WEB-INF/classes/spring-beans.xml: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.technoetic.xplanner.actions.DataSamplerImpl] to required type [com.technoetic.xplanner.charts.DataSampler] for property 'dataSampler']
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.technoetic.xplanner.actions.DataSamplerImpl] to required type [com.technoetic.xplanner.charts.DataSampler] for property 'dataSampler'
        at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1016)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:779)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:685)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:826)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:853)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:842)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:874)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
        at org.strutsspring.SpringPlugIn.createFactory(SpringPlugIn.java:170)
        at org.strutsspring.SpringPlugIn.init(SpringPlugIn.java:158)
        at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:750)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jacques Morel - 03/Dec/05 12:47 AM
Very strange. There isn't a com.technoetic.xplanner.actions.DataSamplerImpl class. DataSampleImpl has been in the chart package for a while now.
Did you start your workspace fresh? I would at least execute a 'clean' ant task (than ide.after.clean) to make sure you are not getting something stale.
Was this on startup? Did you have to do some steps to get that exception?
Thanks

Brill Pappin - 03/Dec/05 11:20 AM
I checked out from head, ran the DB install and built the WAR... deployed it using the tomcat manager and caught the exception on startup.

I'll attempt to debug it with a fresh checkout and see what I can find out.


Brill Pappin - 03/Dec/05 01:24 PM
Interesting, I just replaced my src with the latest in the trunk and did a compleatly clean build and the problem seems to have gone away. I'll close the ticket as it looks like a non-issue.