Anonymous | Login | Signup for a new account | 12-17-2024 12:01 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005540 | [Resin] | minor | always | 10-02-13 13:28 | 10-03-13 11:48 | ||||
Reporter | alex | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.37 | ||||||
Summary | 0005540: Hessian: NPE deserializing an instance of java.net.InetAddress | ||||||||
Description |
rep by Michael Charnoky, InetAddress addr = InetAddress.getLocalHost(); Object obj = addr; Class<?> clazz = InetAddress.class; String file = "hessian-test.ser"; System.out.println("Serializing: "+obj); FileOutputStream fos = new FileOutputStream(file); Hessian2Output out = new Hessian2Output(fos); out.startMessage(); out.writeObject(obj); out.completeMessage(); out.close(); System.out.println("Deserializing..."); FileInputStream fis = new FileInputStream(file); Hessian2Input his = new Hessian2Input(fis); his.startMessage(); Object deserializedObj = his.readObject(clazz); his.completeMessage(); System.out.println("Done: "+deserializedObj); |
||||||||
Additional Information |
java.net.InetAddress:java.lang.NullPointerException at com.caucho.hessian.io.UnsafeDeserializer.readObject(UnsafeDeserializer.java:251) at com.caucho.hessian.io.UnsafeDeserializer.readObject(UnsafeDeserializer.java:150) at com.caucho.hessian.io.Hessian2Input.readObjectInstance(Hessian2Input.java:2219) at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1731) at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1715) at nextbus.util.HessianSerialUtils.main(HessianSerialUtils.java:125) Caused by: java.lang.NullPointerException at java.net.InetAddress.readResolve(InetAddress.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.caucho.hessian.io.UnsafeDeserializer.resolve(UnsafeDeserializer.java:291) at com.caucho.hessian.io.UnsafeDeserializer.readObject(UnsafeDeserializer.java:242) |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed. 28 unique queries executed. |