Re: JavaInterface: OutOfProcessEclipse creation: java.lang.NumberFormatException: null

From: Andrew Cheadle <amc4_at_icparc.ic.ac.uk>
Date: Thu 04 Sep 2003 04:02:21 PM GMT
Message-ID: <20030904160221.GA21758@elstree.icparc.ic.ac.uk>
Hi Cormac,
 
This appears to be an internal problem during initialisation when
the port number represented as a string is converted to an integer.
 
Can you please indicate:
 
Which platform you are running on
Which version of ECLiPSe you are using
 
With that information I'll attempt to reproduce the problem
and get back to you.
 
Cheers

Andy

On Thu, Sep 04, 2003 at 11:57:08AM +0100, Cormac J. Gebruers wrote:
> Hi,
> 
> Could someone kindly comment on the code below which throws the
> following exception:
> 
> java.lang.NumberFormatException: null
>         at java.lang.Integer.parseInt(Integer.java:436)
>         at java.lang.Integer.parseInt(Integer.java:518)
>         at com.parctechnologies.eclipse.OutOfProcessEclipse.<init>(OutOf
> ProcessEclipse.java:61)
>         at Eclipse_Test.<init>(Eclipse_Test.java:24)
>         at Eclipse_Test.main(Eclipse_Test.java:37)
> 
> 
> 
> and the java code:
> 
> 
> 
> public class Eclipse_Test
> {
> 
> public Eclipse_Test()
> {
>     try
>     {
>             File dirEclipse = new File("/usr/eclipse");
> 
>             // Create some default Eclipse options
>             EclipseEngineOptions eclipseEngineOptions = new
> EclipseEngineOptions(dirEclipse);
> 
>             // Object representing the Eclipse engine
>             EclipseEngine eclipse;
> 
>             // Connect the Eclipse's standard streams to the JVM's
>             eclipseEngineOptions.setUseQueues(false);
> 
>             // Initialise Eclipse LINE 24: POINT OF FAILURE!
>             eclipse = new OutOfProcessEclipse(eclipseEngineOptions);
> 
>             // Write a message
>             eclipse.rpc("write(output, 'hello world'), flush(output)");
> 
>             // Destroy the Eclipse engine
>             ((OutOfProcessEclipse) eclipse).destroy();
>     }
>     catch(Exception e){ e.printStackTrace();}
> 
> }//constructor
> 
> public static void main(String[] args)
> {       Eclipse_Test et = new Eclipse_Test();
> }//main
> 
> }//class
> 
> Regards
> Cormac
> 
> 
> 
Received on Thu Sep 04 17:02:46 2003

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:25 PM GMT GMT