Skip to main content

Recent builds: problem with Intellij IDEA

27 replies [Last post]
grantsmith
Offline
Joined: 2005-09-08
Points: 0

Since build 47, we cannot run Intellij IDEA.

Here's the stack trace:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
Caused by: java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
... 6 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
Caused by: java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
... 6 more
[ 488] ERROR - llij.ide.plugins.PluginManager -
[ 488] ERROR - llij.ide.plugins.PluginManager - JDK: 1.6.0-ea
[ 488] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) Client VM
[ 488] ERROR - llij.ide.plugins.PluginManager - Vendor: Sun Microsystems Inc.
[ 488] ERROR - llij.ide.plugins.PluginManager - OS: Linux
[ 490] ERROR - llij.ide.plugins.PluginManager - Original exception:
java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
[ 494] ERROR - llij.ide.plugins.PluginManager -
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
Caused by: java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
... 6 more

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mbrito
Offline
Joined: 2003-06-12
Points: 0

Alex, as of build 56 this problem is still there. Can we expect IDEA to work again on the next build? (considering this is the only thing preventing so)

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Build 57 still fails. It's been two builds since the rollback was planned. Any clue as to when it will be implemented ?

Thanks,
Grant

trembovetski
Offline
Joined: 2003-12-31
Points: 0

I've pinged awt and swing folks, hopefully they'll shed some lite.

But I think the fix went into b58 (not yet promoted).

Thanks,
Dmitri
Java2D Team

alexfromsun
Offline
Joined: 2005-09-05
Points: 0

Hello guys

The fixing is in progress,
we want to be sure that new build will work correct with old code and take advantage of the new AWT modality feature.
Don't want to break anything again :-)

It is almost done, I'll post a message when it is ready.

Be sure Idea, won't be broken wiht Mustang !

Alex

alexfromsun
Offline
Joined: 2005-09-05
Points: 0
alexfromsun
Offline
Joined: 2005-09-05
Points: 0

Hello

I just put the fixes to Mustang b59
(it is not published yet)

We rolled back the problematic fix,
so JOptionPane.getRootFrame() returns shared owner frame
again like it used to

I want to be sure that Idea works ok with this build

Intellij guys, could you give me instructions how can I test Idea agains my JDK ?

something like:
1) download Idea from this link
2) do the following ...
3) check that if works fine

Thanks
Alex

shafirov
Offline
Joined: 2005-09-28
Points: 0

Ok, download from http://www.jetbrains.com/idea/download/
Go to bin, open idea.bat or idea.sh whatever suites your platform better and set up IDEA_JDK to 1.6 JDK installation home. Launch named script. Be sure no launching idea.exe on Windows since it redirects to bundled JRE anyway, which is 1.5.0_xx for now.

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Also, edit bin/idea.properties and add

idea.no.jdk.check=true

You'll need a license too.. check out the licensing options (theres a free one for open source initiatives - not sure if Mustang qualifies)

alexfromsun
Offline
Joined: 2005-09-05
Points: 0

Hello Idea team

I checked the latest Idea with Mustang b59,
it works.
I also managed to reproduce the bug with earlier version of Mustang.

Beta 59 will be published soon

Thank you for your help
Alexander

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Build 59 works. Thanks!

However, I am still having one problem: If you enable line numbers in the editing gutter, and scroll up or down, the gutter becomes corrupt. Any Jetbrainers seeing this ?

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Whoa... also if you scroll up or down in the Project view, all the tree lists get corrupted. It's back to build 47 for me :(

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Looks like you ran into this bug (assuming you're on
linux or solaris):
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6335200

It was fixed in b59.

As a workaround you can set this property:
-Dsun.java2d.pmoffscreen=false

Thanks,
Dmitri
Java2D Team

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Duh! You're already on b59.

Could you please try the property I suggested?

And if possible, could you make a screenshot and send it to me (tdv at sun dot com).

Thanks,
Dmitri

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Unfortunately, setting the property didn't help. The bug you refer to seems to reference *horizontal* scrolling problems. The problem we're experiencing here manifest themselves during *vertical* scrolling.

I will attach screenshots to your email address.

zixle
Offline
Joined: 2004-07-22
Points: 0

grantsmith,

The visual artifacts is filed as 6354265. I've just filed the bug, so it won't be visible on the JDC for a couple of days. I'm in contact with IntelliJ to work out the best fix. Thinks for the testing!

-Scott

kgh
Offline
Joined: 2003-06-10
Points: 0

Alex: Many thanks for looking into this and for making sure that
Intellij will be able to run on Mustang without any changes!

Everyone: We really do want to make sure that Mustang is fully
compatible with Tiger so that all existing applications can run
unchanged. So if people hit situations where they are seeing
problems with an existing application because of some change
in Mustang, then please let us know and we will try to get
things fixed!

regards - Graham

sgb
Offline
Joined: 2005-09-04
Points: 0

This api change might break a lot of existing code. The old contract was that JOptionPane.getFrameForComponent(...) would never return null.

I know it will break some of my code.

shafirov
Offline
Joined: 2005-09-28
Points: 0

The worst thing is it's unclear from the documentation when it returns null. Is that true null value should be expected in all the cases when setRootFrame() haven't been called in prior?
Well, I clearly understand the purpose of the change (frame modality problem fix is also very important to us) but I think JOptionPane documentation should be updated and most of the methods, that assume default frame for a parent component like showInputDialog(Object) should be deprecated as well as notion of default frame itself.
BTW, is that true a multi-frame application that installs a default frame by calling JOptionPane.setRootFrame() will not benefit by modality problem fix in Mustang?

alexfromsun
Offline
Joined: 2005-09-05
Points: 0

Ok guys

We decided to roll back the fix which broken Idea
and implement a better backward compatible way
so please don't worry we will fix it

Thanks
Alex

shafirov
Offline
Joined: 2005-09-28
Points: 0

OK, thanks for looking into.

grantsmith
Offline
Joined: 2005-09-08
Points: 0

I should state that the stack trace was as a result of b51 with IDEA build 3489. OS is Linux, kernel level 2.6.13-1.

kellyohair
Offline
Joined: 2004-09-03
Points: 0

Just to clarify then, it started failing with B47 and it worked fine with B46?

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Wow, I'm glad you asked that. I just discovered that it does in fact work in B46, B47, B48 and B49. It started failing in B50 (and continues to fail in B51).

grantsmith
Offline
Joined: 2005-09-08
Points: 0

The problem persists in Build 52:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
Caused by: java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
... 6 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
Caused by: java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
... 6 more
[ 452] ERROR - llij.ide.plugins.PluginManager -
[ 452] ERROR - llij.ide.plugins.PluginManager - JDK: 1.6.0-ea
[ 453] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) Client VM
[ 453] ERROR - llij.ide.plugins.PluginManager - Vendor: Sun Microsystems Inc.
[ 454] ERROR - llij.ide.plugins.PluginManager - OS: Linux
[ 456] ERROR - llij.ide.plugins.PluginManager - Original exception:
java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
[ 462] ERROR - llij.ide.plugins.PluginManager -
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.ide.plugins.PluginManager$5.run(PluginManager.java:3)
at java.lang.Thread.run(Thread.java:611)
Caused by: java.lang.NullPointerException
at com.intellij.util.ui.UIUtil.updateFrameIcon(UIUtil.java:57)
at com.intellij.idea.Main.mainImpl(Main.java:14)
at com.intellij.idea.Main.start(Main.java:7)
... 6 more

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Also, in builds 48 and 49, if you have line numbers enabled in Idea's gutter, as you scroll up or down, the line numbers are not repainted correctly and after a few scrolls are completely unreadable.

So for now, we really have to revert to build 47 to use Idea with any sense of stability.

alexfromsun
Offline
Joined: 2005-09-05
Points: 0

Hello grantsmith

We identified the problem

This exception happends because JOptionPane.getRootFrame() returns null now when it used to return our shared invisible frame. We changed it to support true parentless modality provided by AWT team.

Currently AWT doesn't provide a way to set an icon for a Dialog, to achive it I can suggest two possible solutions for Intellij team.

Create a hidden shared frame and use it as a parent for their dialogs, in this case dialogs will inherit the icon from the frame like they used to, but it would be difficult to take advantage of the new modality feature

Or they can create a hidden parent frame for each of theirs dialogs using the same techniques for icon settnings.

The doc about new modality is here
http://download.java.net/jdk6/docs/api/index.html

It is very useful feature so they probably want to update theirs dialogs functionality using new modality

Ability to set icon for a dialog is planning for Dolphin

Sorry for inconvenience
hope it wouldn't be very difficult changes for Intellij team

Alex

grantsmith
Offline
Joined: 2005-09-08
Points: 0

Alex, thank you.

I have reported your findings to Jetbrains here:

http://intellij.net/forums/thread.jsp?nav=false&forum=22&thread=164357&s...

Hopefully they'll make the change in the near future.