Mantis - Hessian
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3356 | major | always | 02-25-09 02:57 | 06-29-09 09:20 | |
|
|||||
Reporter: | Peter Dettman | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003356: NPE calling no-arg method via HessianProxy (Hessian 2) | ||||
Description: |
To reproduce, just use a HessianProxyFactory to create a proxy for an interface containing at least one no-arg method. e.g. HessianProxyFactory factory = new HessianProxyFactory(); factory.setHessian2Request(true); Runnable runnable = (Runnable)factory.create(Runnable.class, URL); runnable.run(); // NPE This appears to have entered as of r4587. The fix is straight-forward: Hessian2Output.call(String, Object[]) should use the local variable 'length' in the for-loop condition in place of 'args.length' (the same way it's done in HessianOutput.call). |
||||
Steps To Reproduce: | |||||
Additional Information: |
Relevant part of stack trace: java.lang.NullPointerException at com.caucho.hessian.io.Hessian2Output.call(Hessian2Output.java:136) at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:333) at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:166) at $Proxy7.open(Unknown Source) |
||||
Relationships | |||||
Attached Files: | hessian_0003356.patch [^] (375 bytes) 02-27-09 02:28 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|