You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client is getting a "Ooops, sorry. This has caused a problem" message when trying to see the Dashboard Analytics portlet. The following is a snippet of the stacktrace from the logs:
[12/09/16 10:43:42:516 HKT] ERROR priv.c: getTopAssets failed:java.lang.NumberFormatException: For input string: ""
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_66]
at java.lang.Long.parseLong(Long.java:601) ~[?:1.8.0_66]
at java.lang.Long.parseLong(Long.java:631) ~[?:1.8.0_66]
at com.dotcms.enterprise.priv.c.getTopAssets(SourceFile:1075) [ee-gaf7f4f0.jar:?]
at com.dotmarketing.portlets.dashboard.business.DashboardAPIImpl.getTopAssets(DashboardAPIImpl.java:124) [dotcms_3.5_g14af2ce.jar:?]
Expected Behavior
No exception should be displayed when viewing the Dashboard Analytics portlet.
Current Behavior
The exception is preventing users from viewing the portlet.
Reported via Support: https://my.dotcms.com/tickets/detail.dot?id=f1116e05-a3a4-41ab-9129-53f3ca98f557
The client is getting a "Ooops, sorry. This has caused a problem" message when trying to see the Dashboard Analytics portlet. The following is a snippet of the stacktrace from the logs:
Expected Behavior
No exception should be displayed when viewing the Dashboard Analytics portlet.
Current Behavior
The exception is preventing users from viewing the portlet.
Possible Solution
This line here: https://github.com/dotCMS/enterprise-2.x/blob/master-3.6/src/com/dotcms/enterprise/priv/DashboardFactoryImpl.java#L1075 must return zero when the "count" column of the returned record is an empty String.
Known Workarounds
No available workarounds.
Steps to Reproduce (for bugs)
The issue is not reproducible with the starter data. Only with customer's DB.
Context
This is just a common potential casting error that needs to be fixed.
Your Environment
The text was updated successfully, but these errors were encountered: