Log analyzer blows up java.lang.Integer cannot be cast to java.lang.String

Issue #1379 resolved
Karel Michek created an issue

When download logs, double click log, it opens a warning dialog “Error, java.lang.Integer cannot be cast to java.lang.String” and does not open the log.

Comments (12)

  1. Scott Wells repo owner

    Karel, it would help to have access to the actual log that causes this. Can you provide that? Feel free to email it to support@illuminatedcloud.com if it contains sensitive info you'd prefer not to post here.

  2. Scott Wells repo owner

    Thanks, Karel. From the log I can see what's blowing up, but it doesn't make sense why it would be happening.

    I've attached a build that should work around the issue for you. You can install it by downloading IlluminatedCloud2.zip--don't extract it--and use Preferences>Plugins>Install plugin from disk (under the gear drop-down).

    If possible I would like to have access to the log that causes this issue so that I can do some root cause analysis. Could you share that via email?

  3. Karel Michek reporter

    Thanks. I’ve restarted IntelliJ and the problem went away. I should have made it as first choice. So I did not use your work around but thank you for that anyway. Maybe the logs list did not refresh properly, not sure.

  4. Scott Wells repo owner

    Hmmm...okay. Well, the change I have would at least handle this more gracefully if it were ever to occur again. I'll include it in the next build just in case.

  5. Karel Michek reporter

    I should have installed the fix yesterday, the same problem happened again. But the download link is not available anymore 😞, it says That link has no power here. After starting IntelliJ today, I was able to download my logs in the “Log analyzer” OK, it opened each log properly. Then after a few Refreshes it rejected to open one of the logs displaying the nasty “Integer cannot be cast” error. Then after letting it relax for a while (30 minutes) I hit Refresh again, and then the same malfunctioning log could be opened normally. So no need to restart IntelliJ. Maybe something wrong on my side or in our sandbox, but that error never happened in previous versions of IntelliJ / Illuminated cloud which I both updated just recently. If you provide the fix I’ll try it immediately, since I depend on the logs so much.

  6. Scott Wells repo owner

    Sure, no problem. This is the build I'm prepping for release right now. It lacks the release notes and version number update, but otherwise it should be the same. Feel free to install it and to take the update later today which should be the official release of the same thing.

  7. Karel Michek reporter

    I have installed the fix, will test similar test opening the logs (same daily routine) tomorrow.

  8. Karel Michek reporter

    I’ve done the same checking logs daily routine today and the issue did not happen, the fix probably helped. Thank you.

  9. Log in to comment