zhuzengpeng / jscep

Automatically exported from code.google.com/p/jscep
MIT License
0 stars 0 forks source link

GetCaCertResponseHandler throws NPE against NDES without profile #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure client with URL for NDES server
2. Invite getCaCertificate operation

What is the expected output? What do you see instead?
Expect ClientException, actual output is a NPE.

Stacktrace: 
java.lang.NullPointerException
    at org.jscep.transport.response.GetCaCertResponseHandler.getResponse(GetCaCertResponseHandler.java:58)
    at org.jscep.transport.response.GetCaCertResponseHandler.getResponse(GetCaCertResponseHandler.java:45)
    at org.jscep.transport.HttpGetTransport.sendRequest(HttpGetTransport.java:90)
    at org.jscep.client.Client.getCaCertificate(Client.java:266)
    at org.jscep.client.Client.enrol(Client.java:565)
    at org.jscep.client.Client.enrol(Client.java:530)
    at EnrollmentForm$EnrollmentTask.run(EnrollmentForm.java:177)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:643)
    at java.awt.EventQueue$1.run(EventQueue.java:641)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:652)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by da...@grant.org.uk on 20 Aug 2012 at 5:26

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1469.

Original comment by da...@grant.org.uk on 20 Aug 2012 at 5:38

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 21 Aug 2012 at 11:55