Message10992
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 |
|
Date |
User |
Action |
Args |
2016-11-28 10:57:59 | pguermo | set | recipients:
+ pguermo |
2016-11-28 10:57:59 | pguermo | set | messageid: <1480330679.46.0.524210745345.issue2534@psf.upfronthosting.co.za> |
2016-11-28 10:57:59 | pguermo | link | issue2534 messages |
2016-11-28 10:57:58 | pguermo | create | |
|