Message10992

Author pguermo
Recipients pguermo
Date 2016-11-28.10:57:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480330679.46.0.524210745345.issue2534@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,

I'm migrating from Jython 2.2.1 to 2.7.0 and I face a problem with the method os.getlogin. 

It was working fine in 2.2.1 but using 2.7.0, it returns either an exception, either a wrong login.

    user = os.getlogin()
	at org.python.core.PyString.<init>(PyString.java:62)
	at org.python.core.PyString.<init>(PyString.java:70)
	at org.python.modules.posix.PosixModule.getlogin(PosixModule.java:510)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString from null

Thanks,
Patrick
History
Date User Action Args
2016-11-28 10:57:59pguermosetrecipients: + pguermo
2016-11-28 10:57:59pguermosetmessageid: <1480330679.46.0.524210745345.issue2534@psf.upfronthosting.co.za>
2016-11-28 10:57:59pguermolinkissue2534 messages
2016-11-28 10:57:58pguermocreate