Downloading a plugin prevents IDEA from restarting

Hi all,

Ever since the plugin manager was released I haven't been able to
download and work with any plugins. I consistently get errors on
restart of IDEA like this:

$ ./idea
Execute
copy[/home/natkins/.IntelliJIdea/system/plugins/contextviewer_0.7.2.jar,
/usr/local/IntelliJ-IDEA-1080/plugins/contextviewer_0.7.2.jar]
java.io.IOException: Invalid argument
at sun.nio.ch.FileChannelImpl.transferTo0(Native Method)
at
sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:392)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:487)
at com.intellij.util.g.h.b(h.java:151)
at
com.intellij.ide.plugins.PluginInstaller$ActionCommand.execute(PluginInstaller.java:2)
at
com.intellij.ide.plugins.PluginInstaller.executeActionScript(PluginInstaller.java:63)
at com.intellij.ide.plugins.d.a(d.java:181)
at com.intellij.ide.plugins.d.a(d.java:73)
at com.intellij.ide.plugins.d.a(d.java:174)
at com.intellij.idea.Main.main(Main.java:21)
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:324)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
ERROR - root -
ERROR - root -
ERROR - root - JDK: 1.4.2_03
ERROR - root - JDK: 1.4.2_03
ERROR - root - VM: Java HotSpot(TM)
Client VM
ERROR - root - VM: Java HotSpot(TM)
Client VM
ERROR - root - Vendor: Sun
Microsystems Inc.
ERROR - root - Vendor: Sun
Microsystems Inc.
ERROR - root - OS: Linux
ERROR - root - OS: Linux
ERROR - root -
java.io.IOException: Invalid argument
at sun.nio.ch.FileChannelImpl.transferTo0(Native Method)
at
sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:392)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:487)
at com.intellij.util.g.h.b(h.java:151)
at
com.intellij.ide.plugins.PluginInstaller$ActionCommand.execute(PluginInstaller.java:2)
at
com.intellij.ide.plugins.PluginInstaller.executeActionScript(PluginInstaller.java:63)
at com.intellij.ide.plugins.d.a(d.java:181)
at com.intellij.ide.plugins.d.a(d.java:73)
at com.intellij.ide.plugins.d.a(d.java:174)
at com.intellij.idea.Main.main(Main.java:21)
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:324)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
ERROR - root -
java.io.IOException: Invalid argument
at sun.nio.ch.FileChannelImpl.transferTo0(Native Method)
at
sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:392)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:487)
at com.intellij.util.g.h.b(h.java:151)
at
com.intellij.ide.plugins.PluginInstaller$ActionCommand.execute(PluginInstaller.java:2)
at
com.intellij.ide.plugins.PluginInstaller.executeActionScript(PluginInstaller.java:63)
at com.intellij.ide.plugins.d.a(d.java:181)
at com.intellij.ide.plugins.d.a(d.java:73)
at com.intellij.ide.plugins.d.a(d.java:174)
at com.intellij.idea.Main.main(Main.java:21)
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:324)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)



I'm running Linux kernel 2.6.0 on Redhat 9 and IDEA build 1080. I can
recover from this by deleting the directory .IntellijIDEA/system/plugins
but I can never get any of the plugins to load in the IDE, even manually.

I'd be happy to know a manual workaround for now, but when this product
is released, this really needs to work.

Does anyone have any ideas?

Thanks,

Nick.

5 comments
Comment actions Permalink

"Nick Atkins" <natkins@slippytoad.com> wrote in message
news:btknno$kdv$1@is.intellij.net...

copy[/home/natkins/.IntelliJIdea/system/plugins/contextviewer_0.7.2.jar,
/usr/local/IntelliJ-IDEA-1080/plugins/contextviewer_0.7.2.jar]
java.io.IOException: Invalid argument


I haven't tried IDEA on Linux, but one thing that might be the cause of this
is the file/directory permissions and/or owner for the
/usr/local/IntelliJ-IDEA-1080/plugins folder. If IDEA was installed as root,
I assume that root is also the owner of the files that got installed. If
chmod for the plugins folder doesn't allow the group or others to write to
it, you should see some kind of error. If this is the reason for the error,
then the Invalid argument exception is very misleading.

If you chmod the plugins folder and try again, does it work then?

--
mvh Mathias


0
Comment actions Permalink

All the permissions in /usr/local/IntelliJ-IDEA-1080 and of course in my
home directory ~/.IntelliJIdea are correct for me writing to them.
Everything is owned by me.

Thanks though.

Nick.

Mathias Axelsson wrote:

"Nick Atkins" <natkins@slippytoad.com> wrote in message
news:btknno$kdv$1@is.intellij.net...

>>copy[/home/natkins/.IntelliJIdea/system/plugins/contextviewer_0.7.2.jar,
>>/usr/local/IntelliJ-IDEA-1080/plugins/contextviewer_0.7.2.jar]
>>java.io.IOException: Invalid argument


I haven't tried IDEA on Linux, but one thing that might be the cause of this
is the file/directory permissions and/or owner for the
/usr/local/IntelliJ-IDEA-1080/plugins folder. If IDEA was installed as root,
I assume that root is also the owner of the files that got installed. If
chmod for the plugins folder doesn't allow the group or others to write to
it, you should see some kind of error. If this is the reason for the error,
then the Invalid argument exception is very misleading.

If you chmod the plugins folder and try again, does it work then?

0
Comment actions Permalink

Java is throwing an exception after calling a native method. It almost looks like your system libraries may be incompatible with the JDK.

What distribution of Linux and which Linux kernel are you using?

Is your home directory NFS-mounted? If so, are you seeing any errors on the NFS server?

Dave


Nick Atkins wrote:

All the permissions in /usr/local/IntelliJ-IDEA-1080
and of course in my
home directory ~/.IntelliJIdea are correct for me
writing to them.
Everything is owned by me.

Thanks though.

Nick.

0
Comment actions Permalink

I'm using Linux Redhat 9 with the 2.6.0 kernel. No NFS or networks
involved.

Cheers,

Nick.

David Kilzer wrote:

Java is throwing an exception after calling a native method. It almost looks like your system libraries may be incompatible with the JDK.

What distribution of Linux and which Linux kernel are you using?

Is your home directory NFS-mounted? If so, are you seeing any errors on the NFS server?

Dave


Nick Atkins wrote:

>>All the permissions in /usr/local/IntelliJ-IDEA-1080
>>and of course in my
>>home directory ~/.IntelliJIdea are correct for me
>>writing to them.
>>Everything is owned by me.
>>
>>Thanks though.
>>
>>Nick.


0
Comment actions Permalink

On Fri, 09 Jan 2004 11:40:31 -0800, Nick Atkins wrote:

I'm using Linux Redhat 9 with the 2.6.0 kernel. No NFS or networks
involved.


Check the other threads about 2.6.x kernel problems. Seems a common
problem :(

0

Please sign in to leave a comment.