Console output when using vm running eclipse

Anonymous
2011-03-21
2013-03-15
  • Anonymous - 2011-03-21

    Hello,

    I am able to enter commands into a console that is using the VM that is running eclipse and it works fine.  However when errors occur there is no output in the console.  Is the output going somewhere else and is there a way for it to appear in the console itself?

    Thanks,
    Brian

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-03-21

    Just to make it clear, you mean the interactive console that uses Jython within the Eclipse VM right?

    Well, can you give an example of what error you're expecting (which is not appearing)?

    I've checked it with some simple examples here and the errors appeared for me, so, it might be something specific.

    Cheers,

    Fabio

     
  • Anonymous - 2011-03-21

    Yes, that's right.  Well, if i type anything wrong it just doesn't show up as an error.  For example, if i type "a" where "a" is not a valid identifier, it is accepted without error.  Perhaps I have something configured wrong? 

    >>> 43
    43
    >>> t
    >>> a+4
    >>>

    Brian

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-03-21

    Yes, there seems to be something strange there, doing the same thing here:

    >>> 43
    43
    >>> t
    NameError: t
    >>> a+4
    NameError: a

    Do you have something appearing in your log (i.e.: in your workspace/.metadata/.log)?

    Also, can you try setting your vm to java.exe (instead of javaw.exe) and see if there's something that appears in the console in this case? (you can do that by editing your eclipse.ini - see: http://wiki.eclipse.org/Eclipse.ini)

    Cheers,

    Fabio

     
  • Anonymous - 2011-03-21

    Well, this is the only thing in the log that relates to Pydev:

    !ENTRY org.python.pydev.core 4 4 2011-03-21 11:23:11.749
    !MESSAGE Connection timed out: connect
    !STACK 0
    java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at org.python.pydev.logging.ping.LogPingSender.sendPing(LogPingSender.java:56)
    at org.python.pydev.logging.ping.SynchedLogPing.send(SynchedLogPing.java:158)
    at org.python.pydev.logging.ping.AsyncLogPing.consumeAllCommands(AsyncLogPing.java:125)
    at org.python.pydev.logging.ping.AsyncLogPing.access$0(AsyncLogPing.java:94)
    at org.python.pydev.logging.ping.AsyncLogPing$1.run(AsyncLogPing.java:41)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    If it makes a difference I am using Pydev 1.6.4 and Eclipse 3.5.2.

    brian

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-03-21

    That error doesn't appear related… it may be something regarding eclipse 3.5 (I'm testing with Eclipse 3.6)… Another thing, which OS are you using?

    Cheers,

    Fabio

     
  • Anonymous - 2011-03-21

    I am using Windows XP.  I think i will reinstall Eclipse and Pydev and see what happens.  Perhaps something is corrupted somewhere.

    brian

     
  • Anonymous - 2011-03-21

    I re-installed Eclipse and Pydev and now it is working as expected.  I don't know what the problem was but something is messed up in my installation.  I would consider this issue closed unless you have some ideas what could be going wrong.  Thanks for your help with this.

    brian

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-03-21

    Unfortunately, I don't have any ideas about it either - so, considering resolved ;-)

    Cheers,

    Fabio

     
  • Anonymous - 2011-03-23

    Hello,

    I figured out the source of this problem but not the solution.  I have updated the version of jython that pydev uses internally (i need a newer version because of limitations of jython 2.1).  I did this by going to the plugins\org.python.pydev.jython_1.6.5.2011020317 directory and replace the jython.jar file and the lib directory with files from jython 2.5.2. 

    This causes the problem indicated in this thread with the missing error messages.  Do you know what else I need to change to be able to use a newer version of jython?

    thanks,
    brian

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-03-23

    Not really… maybe something in your error log indicates an error? Probably some Jython API that Pydev uses has changed, but I wouldn't really be able to check that without actually making that change in Pydev itself.

    Cheers,

    Fabio

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks