Mantis Bugtracker
  

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

- Relationships

- Notes
(0006329)
ferg
10-03-13 11:48

hessian/3bbd
 

- Issue History
Date Modified Username Field Change
10-02-13 13:28 alex New Issue
10-03-13 11:48 ferg Note Added: 0006329
10-03-13 11:48 ferg Assigned To  => ferg
10-03-13 11:48 ferg Status new => closed
10-03-13 11:48 ferg Resolution open => fixed
10-03-13 11:48 ferg Fixed in Version  => 4.0.38
01-21-14 02:15 jpmoore40 Issue Monitored: jpmoore40
01-21-14 02:18 jpmoore40 Issue End Monitor: jpmoore40
05-04-14 19:56 pranahata Issue Monitored: pranahata


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker