com.thoughtworks.xstream.converters.ConversionException: Unable to parse sunset time : Unable to parse sunset time ---- Debugging information ---- message : Unable to parse sunset time cause-exception : java.lang.RuntimeException cause-message : Unable to parse sunset time class : org.jasig.portlet.weather.domain.Weather required-type : org.jasig.portlet.weather.domain.Weather path : /adc_database/planets/sun line number : 63 -------------------------------

Apereo Issues | Brad Johnson | 8 years ago
  1. 0

    Sometimes the AccuWeather service has returned the string "No Rise" as the sunset time for a location. This causes the WeatherPortlet to fail and it is not possible to edit the channel to remove the location that has the problem. The code should be changed to gracefully tolerate this value. com.thoughtworks.xstream.converters.ConversionException: Unable to parse sunset time : Unable to parse sunset time ---- Debugging information ---- message : Unable to parse sunset time cause-exception : java.lang.RuntimeException cause-message : Unable to parse sunset time class : org.jasig.portlet.weather.domain.Weather required-type : org.jasig.portlet.weather.domain.Weather path : /adc_database/planets/sun line number : 63 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:869) at org.jasig.portlet.weather.dao.accuweather.xstream.WeatherDaoImpl.getWeather(WeatherDaoImpl.java:171) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springmodules.cache.interceptor.caching.AbstractCachingInterceptor.cachedValueFromSource(AbstractCachingInterceptor.java:126) at org.springmodules.cache.interceptor.caching.AbstractCachingInterceptor.invoke(AbstractCachingInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy8.getWeather(Unknown Source) at org.jasig.portlet.weather.service.WeatherServiceImpl.getWeather(WeatherServiceImpl.java:39) at org.jasig.portlet.weather.portlet.WeatherViewController.handleRenderRequestInternal(WeatherViewController.java:40) at org.springframework.web.portlet.mvc.AbstractController.handleRenderRequest(AbstractController.java:219) at org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter.handleRender(SimpleControllerHandlerAdapter.java:52) at org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:811) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) ... 41 more Caused by: java.lang.RuntimeException: Unable to parse sunset time at org.jasig.portlet.weather.dao.accuweather.xstream.WeatherConverter.unmarshal(WeatherConverter.java:85) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) ... 67 more Caused by: java.text.ParseException: Unparseable date: "No Rise" at java.text.DateFormat.parse(DateFormat.java:335) at org.jasig.portlet.weather.dao.accuweather.xstream.WeatherConverter.unmarshal(WeatherConverter.java:82) ... 68 more

    Apereo Issues | 8 years ago | Brad Johnson
    com.thoughtworks.xstream.converters.ConversionException: Unable to parse sunset time : Unable to parse sunset time ---- Debugging information ---- message : Unable to parse sunset time cause-exception : java.lang.RuntimeException cause-message : Unable to parse sunset time class : org.jasig.portlet.weather.domain.Weather required-type : org.jasig.portlet.weather.domain.Weather path : /adc_database/planets/sun line number : 63 -------------------------------
  2. 0

    Sometimes the AccuWeather service has returned the string "No Rise" as the sunset time for a location. This causes the WeatherPortlet to fail and it is not possible to edit the channel to remove the location that has the problem. The code should be changed to gracefully tolerate this value. com.thoughtworks.xstream.converters.ConversionException: Unable to parse sunset time : Unable to parse sunset time ---- Debugging information ---- message : Unable to parse sunset time cause-exception : java.lang.RuntimeException cause-message : Unable to parse sunset time class : org.jasig.portlet.weather.domain.Weather required-type : org.jasig.portlet.weather.domain.Weather path : /adc_database/planets/sun line number : 63 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:869) at org.jasig.portlet.weather.dao.accuweather.xstream.WeatherDaoImpl.getWeather(WeatherDaoImpl.java:171) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springmodules.cache.interceptor.caching.AbstractCachingInterceptor.cachedValueFromSource(AbstractCachingInterceptor.java:126) at org.springmodules.cache.interceptor.caching.AbstractCachingInterceptor.invoke(AbstractCachingInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy8.getWeather(Unknown Source) at org.jasig.portlet.weather.service.WeatherServiceImpl.getWeather(WeatherServiceImpl.java:39) at org.jasig.portlet.weather.portlet.WeatherViewController.handleRenderRequestInternal(WeatherViewController.java:40) at org.springframework.web.portlet.mvc.AbstractController.handleRenderRequest(AbstractController.java:219) at org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter.handleRender(SimpleControllerHandlerAdapter.java:52) at org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:811) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) ... 41 more Caused by: java.lang.RuntimeException: Unable to parse sunset time at org.jasig.portlet.weather.dao.accuweather.xstream.WeatherConverter.unmarshal(WeatherConverter.java:85) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) ... 67 more Caused by: java.text.ParseException: Unparseable date: "No Rise" at java.text.DateFormat.parse(DateFormat.java:335) at org.jasig.portlet.weather.dao.accuweather.xstream.WeatherConverter.unmarshal(WeatherConverter.java:82) ... 68 more

    Apereo Issues | 8 years ago | Brad Johnson
    com.thoughtworks.xstream.converters.ConversionException: Unable to parse sunset time : Unable to parse sunset time ---- Debugging information ---- message : Unable to parse sunset time cause-exception : java.lang.RuntimeException cause-message : Unable to parse sunset time class : org.jasig.portlet.weather.domain.Weather required-type : org.jasig.portlet.weather.domain.Weather path : /adc_database/planets/sun line number : 63 -------------------------------
  3. 0

    Xstream incorrectly interpreting a list item as part of another list item

    Stack Overflow | 3 years ago | Xynariz
    com.thoughtworks.xstream.converters.ConversionException: Element user of type shared.model.User is not defined as field in type shared.model.User ---- Debugging information ---- class : shared.model.User required-type : shared.model.User converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /data/users/user line number : 19 class[1] : indexer.shared.model.Model version : null -------------------------------
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error loading fresh starter Oracle

    GitHub | 5 years ago | dotjorgeu
    com.thoughtworks.xstream.converters.ConversionException: Cannot parse date 2012-03-01 00:00:00.0 ---- Debugging information ---- class : java.util.ArrayList required-type : java.util.Date path : /list/com.dotmarketing.portlets.contentlet.model.ContentletVersionInfo/lockedOn line number : 5 -------------------------------
  6. 0

    Java Reading XML with XStream

    Stack Overflow | 3 years ago | user2686811
    com.thoughtworks.xstream.converters.ConversionException: Authors : Authors ---- Debugging information ---- message : Authors cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : Authors class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter path : /ListOfDBook/DBook/Authors class[1] : com.test.books.ListOfDBook converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter version : null -------------------------------

  1. Kelly O'Hair 1 times, last 4 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.thoughtworks.xstream.converters.ConversionException

    Unable to parse sunset time : Unable to parse sunset time ---- Debugging information ---- message : Unable to parse sunset time cause-exception : java.lang.RuntimeException cause-message : Unable to parse sunset time class : org.jasig.portlet.weather.domain.Weather required-type : org.jasig.portlet.weather.domain.Weather path : /adc_database/planets/sun line number : 63 -------------------------------

    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert()
  2. XStream Core
    XStream.fromXML
    1. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:88)
    2. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
    3. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75)
    4. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59)
    5. com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142)
    6. com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
    7. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931)
    8. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917)
    9. com.thoughtworks.xstream.XStream.fromXML(XStream.java:869)
    9 frames
  3. org.jasig.portlet
    WeatherDaoImpl.getWeather
    1. org.jasig.portlet.weather.dao.accuweather.xstream.WeatherDaoImpl.getWeather(WeatherDaoImpl.java:171)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  5. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  6. spring-modules-cache
    AbstractCachingInterceptor.invoke
    1. org.springmodules.cache.interceptor.caching.AbstractCachingInterceptor.cachedValueFromSource(AbstractCachingInterceptor.java:126)
    2. org.springmodules.cache.interceptor.caching.AbstractCachingInterceptor.invoke(AbstractCachingInterceptor.java:92)
    2 frames
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  8. Unknown
    $Proxy8.getWeather
    1. $Proxy8.getWeather(Unknown Source)
    1 frame
  9. org.jasig.portlet
    WeatherViewController.handleRenderRequestInternal
    1. org.jasig.portlet.weather.service.WeatherServiceImpl.getWeather(WeatherServiceImpl.java:39)
    2. org.jasig.portlet.weather.portlet.WeatherViewController.handleRenderRequestInternal(WeatherViewController.java:40)
    2 frames
  10. Spring Web Portlet
    FrameworkPortlet.processRequest
    1. org.springframework.web.portlet.mvc.AbstractController.handleRenderRequest(AbstractController.java:219)
    2. org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter.handleRender(SimpleControllerHandlerAdapter.java:52)
    3. org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:811)
    4. org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487)
    4 frames