[JIRA] Commented: (CC-1049) When running with new JDK/JRE 7, CC can't communicate with dashboard

"Andrei Costescu (JIRA)" <[email protected]> Tue, 21 Aug 2012 07:18:22 -0500 (CDT)
Newsgroups gmane.comp.java.cruise-control.devel
Message-ID <1468907686.1345551502467.JavaMail.jira@chidmzhosting02.thoughtworks.com>
    [ http://jira.public.thoughtworks.org/browse/CC-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_19234 ] 

Andrei Costescu commented on CC-1049:
-------------------------------------

I have the same problem. Thanks for pointing out that it's related to Java 7 cause I kept going in circles. I hope switching to 1.6 will work.
Here is the whole content from the log file, that appears each time the dashboard wants to refresh it's overview page contents:

INFO   | jvm 1    | 2012/08/21 15:07:13 | 2012-08-21 15:07:13.323::WARN:  /dashboard/buildloop/listener
INFO   | jvm 1    | 2012/08/21 15:07:13 | com.thoughtworks.xstream.converters.ConversionException: Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor
INFO   | jvm 1    | 2012/08/21 15:07:13 | ---- Debugging information ----
INFO   | jvm 1    | 2012/08/21 15:07:13 | message             : Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor
INFO   | jvm 1    | 2012/08/21 15:07:13 | cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
INFO   | jvm 1    | 2012/08/21 15:07:13 | cause-message       : Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor
INFO   | jvm 1    | 2012/08/21 15:07:13 | class               : net.sourceforge.cruisecontrol.BuildLoopInformation
INFO   | jvm 1    | 2012/08/21 15:07:13 | required-type       : net.sourceforge.cruisecontrol.BuildLoopInformation
INFO   | jvm 1    | 2012/08/21 15:07:13 | path                : /buildloop
INFO   | jvm 1    | 2012/08/21 15:07:13 | line number         : 1
INFO   | jvm 1    | 2012/08/21 15:07:13 | -------------------------------
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:773)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at net.sourceforge.cruisecontrol.util.BuildInformationHelper.toObject(BuildInformationHelper.java:32)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at net.sourceforge.cruisecontrol.dashboard.web.BuildLoopController.handleRequestInternal(BuildLoopController.java:28)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:858)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
INFO   | jvm 1    | 2012/08/21 15:07:13 | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.Server.handle(Server.java:324)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
INFO   | jvm 1    | 2012/08/21 15:07:14 | Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:59)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:257)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:124)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
INFO   | jvm 1    | 2012/08/21 15:07:14 | 	... 35 more


> When running with new JDK/JRE 7, CC can't communicate with dashboard
> --------------------------------------------------------------------
>
>                 Key: CC-1049
>                 URL: http://jira.public.thoughtworks.org/browse/CC-1049
>             Project: CruiseControl
>          Issue Type: Bug
>    Affects Versions: 2.8.4
>         Environment: Windows Server 2003, JDK 7, CC 2.8.4
>            Reporter: David Richards
>            Priority: Major
>
> Cruise Control service runs fine and builds are OK, but there is no communication with dashboard so build activity is not showm and buttons to force build and configure projects are disabled.  There is an exception thrown over and over:
> com.thoughtworks.xstream.converters.reflection.ObjectAccessException:?Cannot
> construct net.sourceforge.cruisecontrol.BuildLoopInformation as it
> doesnot have a no-args constructor...
> Sorry I didn't grab whole stack.  Changed to JDK 1.6.0_29 and it works fine.

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

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/