Ugly Error Message in RunTime [message #121622] |
Sun, 04 December 2005 18:26 |
Eclipse User |
|
|
|
Originally posted by: rebecca.levy.mail.mcgill.ca
When running code in Eclipse, the console outputs an incredibly
intimidating error message:
Activation.main: warning: sun.rmi.activation.execPolicy system
property unspecified and no ExecPermissions/ExecOptionPermissions
granted; subsequent activation attempts may fail due to unsuccessful
ExecPermission/ExecOptionPermission permission checks. For
documentation on how to configure rmid security, refer to:
http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/rmid.html
http://java.sun.com/j2se/1.4/docs/tooldocs/win32/rmid.html
the first time I run anything and
Activation.main: an exception occurred: Port already in use: 1098; nested
exception is:
java.net.BindException: Address already in use: JVM_Bind
java.rmi.server.ExportException: Port already in use: 1098; nested
exception is:
java.net.BindException: Address already in use: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown
Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
at sun.rmi.registry.RegistryImpl.<init>(Unknown Source)
at java.rmi.registry.LocateRegistry.createRegistry(Unknown Source)
at sun.rmi.server.Activation.main(Unknown Source)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerS ocket(Unknown
Source)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerS ocket(Unknown
Source)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(Unknown Source)
... 9 more
anytime after that. Anyone have a clue what all this means and how to fix
it? Other IDEs (JCreator) run fine.
|
|
|
Re: Ugly Error Message in RunTime [message #121891 is a reply to message #121622] |
Mon, 05 December 2005 19:41 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Becca wrote:
> When running code in Eclipse, the console outputs an incredibly
> intimidating error message:
> Activation.main: warning: sun.rmi.activation.execPolicy system
> property unspecified and no ExecPermissions/ExecOptionPermissions
> granted; subsequent activation attempts may fail due to unsuccessful
> ExecPermission/ExecOptionPermission permission checks. For
> documentation on how to configure rmid security, refer to:
>
> http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/rmid.html
> http://java.sun.com/j2se/1.4/docs/tooldocs/win32/rmid.html
>
> the first time I run anything and
> Activation.main: an exception occurred: Port already in use: 1098;
> nested exception is: java.net.BindException: Address
> already in use: JVM_Bind
> java.rmi.server.ExportException: Port already in use: 1098; nested
> exception is: java.net.BindException: Address already in
> use: JVM_Bind
> at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
> at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown
> Source)
> at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
> at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
> at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
> at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
> at sun.rmi.registry.RegistryImpl.<init>(Unknown Source)
> at java.rmi.registry.LocateRegistry.createRegistry(Unknown Source)
> at sun.rmi.server.Activation.main(Unknown Source)
> Caused by: java.net.BindException: Address already in use: JVM_Bind
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(Unknown Source)
> at java.net.ServerSocket.bind(Unknown Source)
> at java.net.ServerSocket.<init>(Unknown Source)
> at java.net.ServerSocket.<init>(Unknown Source)
> at
> sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerS ocket(Unknown
> Source)
> at
> sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerS ocket(Unknown
> Source)
> at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(Unknown Source)
> ... 9 more
>
> anytime after that. Anyone have a clue what all this means and how to
> fix it? Other IDEs (JCreator) run fine.
>
It seems pretty obvious from the stack trace that your code is using RMI
which is trying to use port 1098, but that port is already in use.
Perhaps your RMI server is already running...
HTH,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.07163 seconds