java.lang.RuntimeException: Unable to parse sunset time

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
    java.lang.RuntimeException: Unable to parse sunset time
  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
    java.lang.RuntimeException: Unable to parse sunset time
  3. 0

    BRMS- resource and change-set

    Stack Overflow | 5 years ago | aps
    java.lang.RuntimeException: Unable to parse ChangeSet
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Dynamic Loading of Rules from BRMS

    Stack Overflow | 6 years ago | JJunior
    java.lang.RuntimeException: Unable to parse ChangeSet
  6. 0

    db:: 6.09::How to get snapshot list using guvnor rest api? jd

    hivmr.com | 8 months ago
    java.lang.RuntimeException: Unable to parse ChangeSet

    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. java.lang.RuntimeException

      Unable to parse sunset time

      at org.jasig.portlet.weather.dao.accuweather.xstream.WeatherConverter.unmarshal()
    2. org.jasig.portlet
      WeatherConverter.unmarshal
      1. org.jasig.portlet.weather.dao.accuweather.xstream.WeatherConverter.unmarshal(WeatherConverter.java:85)
      1 frame
    3. XStream Core
      TreeUnmarshaller.convert
      1. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
      1 frame