org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984)

JIRA | João Cunha | 5 months ago
  1. 0

    I'm experiencing strange problems with some of the Portuguese sample cards whenever I try to use LAM features. This is the log after I insert the PIN: {code:java} 2016-07-04 15:26:35,091 [AWT-EventQueue-2] DEBUG o.o.gui.swing.SwingNavigator:241 - Received event: Button.next 2016-07-04 15:26:35,092 [AWT-EventQueue-2] DEBUG org.openecard.gui.swing.StepFrame:248 - Trying to kill background task if it exists. 2016-07-04 15:26:35,093 [AWT-EventQueue-2] DEBUG org.openecard.gui.swing.StepFrame:213 - Exchange result for step 'Enter the PIN'. 2016-07-04 15:26:35,099 [Thread-26] DEBUG o.o.i.s.wrapper.SingleThreadChannel:221 - Send APDU: 0x00 0x20 0x00 0x81 0x08 0x31 0x31 0x31 0x31 0xFF 0xFF 0xFF 0xFF 2016-07-04 15:26:35,109 [Thread-26] DEBUG o.o.i.s.wrapper.SingleThreadChannel:224 - Receive APDU: 0x69 0x84 2016-07-04 15:26:35,110 [Thread-26] ERROR o.o.s.p.p.DIDAuthenticateStep:148 - http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984) org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984) at org.openecard.common.ECardException.makeException(ECardException.java:64) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper$WSException.<init>(WSHelper.java:47) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper.checkResult(WSHelper.java:69) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.sal.protocol.pincompare.DIDAuthenticateStep.perform(DIDAuthenticateStep.java:130) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.sal.protocol.pincompare.DIDAuthenticateStep.perform(DIDAuthenticateStep.java:65) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.sal.SALProtocolBaseImpl.perform(SALProtocolBaseImpl.java:163) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.sal.SALProtocolBaseImpl.didAuthenticate(SALProtocolBaseImpl.java:244) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.sal.SALProtocolProxy.didAuthenticate(SALProtocolProxy.java:147) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.sal.TinySAL.didAuthenticate(TinySAL.java:2052) [richclient-1.1.2-bundle-cifs.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_80] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_80] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_80] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_80] at org.openecard.transport.dispatcher.Service.invoke(Service.java:192) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.transport.dispatcher.MessageDispatcher.deliver(MessageDispatcher.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.performMissingAuthentication(GenericCryptoSigner.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:224) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.CardCommunicator.sign(CardCommunicator.java:296) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.Card.sign(Card.java:60) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:88) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssSigner.sign(DssSigner.java:76) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataVector.sign(DataVector.java:108) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataModel.sign(DataModel.java:54) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.SignAction.execute(SignAction.java:106) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.bind.AppPluginActionProxy.execute(AppPluginActionProxy.java:55) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.handler.HttpAppPluginActionHandler.handle(HttpAppPluginActionHandler.java:112) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.doService(HttpService.java:436) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.handleRequest(HttpService.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.HttpService$1.run(HttpService.java:131) [richclient-1.1.2-bundle-cifs.jar:na] 2016-07-04 15:26:35,110 [Thread-26] ERROR o.o.c.c.sal.GenericCryptoSigner:248 - Signature generation failed. org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984) at org.openecard.common.ECardException.makeException(ECardException.java:64) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper$WSException.<init>(WSHelper.java:47) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper.checkResult(WSHelper.java:69) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.performMissingAuthentication(GenericCryptoSigner.java:342) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:224) ~[richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.CardCommunicator.sign(CardCommunicator.java:296) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.Card.sign(Card.java:60) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:88) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssSigner.sign(DssSigner.java:76) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataVector.sign(DataVector.java:108) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataModel.sign(DataModel.java:54) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.SignAction.execute(SignAction.java:106) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.bind.AppPluginActionProxy.execute(AppPluginActionProxy.java:55) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.handler.HttpAppPluginActionHandler.handle(HttpAppPluginActionHandler.java:112) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.doService(HttpService.java:436) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.handleRequest(HttpService.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.HttpService$1.run(HttpService.java:131) [richclient-1.1.2-bundle-cifs.jar:na] 2016-07-04 15:26:35,111 [Thread-26] ERROR e.e.a.l.larms.card.CardCommunicator:301 - An error occurred while signing the document. java.security.SignatureException: org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984) at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:249) ~[richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.CardCommunicator.sign(CardCommunicator.java:296) ~[richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.Card.sign(Card.java:60) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:88) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssSigner.sign(DssSigner.java:76) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataVector.sign(DataVector.java:108) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataModel.sign(DataModel.java:54) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.SignAction.execute(SignAction.java:106) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.bind.AppPluginActionProxy.execute(AppPluginActionProxy.java:55) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.handler.HttpAppPluginActionHandler.handle(HttpAppPluginActionHandler.java:112) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.doService(HttpService.java:436) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.handleRequest(HttpService.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.HttpService$1.run(HttpService.java:131) [richclient-1.1.2-bundle-cifs.jar:na] Caused by: org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984) at org.openecard.common.ECardException.makeException(ECardException.java:64) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper$WSException.<init>(WSHelper.java:47) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper.checkResult(WSHelper.java:69) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.performMissingAuthentication(GenericCryptoSigner.java:342) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:224) ~[richclient-1.1.2-bundle-cifs.jar:na] ... 13 common frames omitted 2016-07-04 15:26:35,120 [Thread-26] ERROR eu.esens.abb.lap.larms.SignAction:111 - OASIS DSS signature request could not be signed properly: null 2016-07-04 15:26:35,122 [Thread-26] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:169 - Recieved BindingResult with ResultCode OK 2016-07-04 15:26:35,122 [Thread-26] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:134 - BindingResult contains a body. 2016-07-04 15:26:35,122 [Thread-26] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:116 - HTTP response: HTTP/1.1 200 [] [Content-Type: application/xml; charset=UTF-8,Content-Length: 353,Chunked: false] {code} The most strange part is that this same card that I used was working fine until today (Monday). Last Friday I tried to read its information using the official Portuguese software for the Portuguese citizen card, but it failed showing an error "Failure checking internal consistency". Is it possible that this software has corrupted the sample card I have?

    JIRA | 5 months ago | João Cunha
    org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984)
  2. 0

    When using the signing feature of the eID client, it first shows the Attribute Disclosure window (with XSPA Subject and Purpose of use). If we click on Cancel and accept to close it, the window is reopened again. The user may click on Cancel again but the same behaviour occurs 5 more times. Plus, if the user proceeds with the Authorise button to the "Enter the PIN" window, but cancels that action, the same behaviour is experienced. I tried invoking the service from outside the portal with the following URL: http://www.localhost-ecard-client.de:24727/trc/rst?doctorId=11906&patientId=898765392&2.16.17.710.820.1000.990.1&ISO&idaRef=_1f08ed21-0b0b-46b0-801c-af106fb4fa4f&purpose=EMERGENCY This is the log for the first case (pressing Cancel in the Attribute disclosure window): {code:java} 2016-07-04 14:42:18,569 [Thread-75] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:86 - HTTP request: GET /trc/rst?doctorId=11906&patientId=898765392&2.16.17.710.820.1000.990.1&ISO&idaRef=_1f08ed21-0b0b-46b0-801c-af106fb4fa4f&purpose=EMERGENCY [Host: www.localhost-ecard-client.de:24727, User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0, Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8, Accept-Language: en-US,en;q=0.5, Accept-Encoding: gzip, deflate, Connection: keep-alive] 2016-07-04 14:42:18,973 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:86 - HTTP request: POST /larms/sign [content-type: text/plain; charset=utf-8, User-Agent: Java/1.7.0_80, Host: 127.0.0.1:24727, Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, Connection: keep-alive, Content-Length: 22542] 2016-07-04 14:42:18,973 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:109 - Request contains an entity. 2016-07-04 14:42:26,640 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:169 - Recieved BindingResult with ResultCode OK 2016-07-04 14:42:26,640 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:134 - BindingResult contains a body. 2016-07-04 14:42:26,640 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:116 - HTTP response: HTTP/1.1 200 [] [Content-Type: application/xml; charset=UTF-8,Content-Length: 340,Chunked: false] {code} This is the log for the second case (pressing Cancel in the Insert PIN window): {code:java} 2016-07-04 14:43:49,833 [AWT-EventQueue-2] DEBUG org.openecard.gui.swing.StepFrame:248 - Trying to kill background task if it exists. 2016-07-04 14:43:49,833 [AWT-EventQueue-2] DEBUG org.openecard.gui.swing.StepFrame:213 - Exchange result for step 'Enter the PIN'. 2016-07-04 14:43:49,834 [Thread-76] WARN o.o.ifd.scio.AbstractTerminal:222 - PIN entry cancelled by user. 2016-07-04 14:43:49,834 [Thread-76] ERROR o.o.s.p.p.DIDAuthenticateStep:148 - http://www.bsi.bund.de/ecard/api/1.1/resultminor/ifdl#cancellationByUser ==> PIN entry cancelled by user. org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/ifdl#cancellationByUser ==> PIN entry cancelled by user. at org.openecard.common.ECardException.makeException(ECardException.java:64) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper$WSException.<init>(WSHelper.java:47) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper.checkResult(WSHelper.java:69) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.sal.protocol.pincompare.DIDAuthenticateStep.perform(DIDAuthenticateStep.java:130) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.sal.protocol.pincompare.DIDAuthenticateStep.perform(DIDAuthenticateStep.java:65) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.sal.SALProtocolBaseImpl.perform(SALProtocolBaseImpl.java:163) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.sal.SALProtocolBaseImpl.didAuthenticate(SALProtocolBaseImpl.java:244) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.sal.SALProtocolProxy.didAuthenticate(SALProtocolProxy.java:147) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.sal.TinySAL.didAuthenticate(TinySAL.java:2052) [richclient-1.1.2-bundle-cifs.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_80] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_80] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_80] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_80] at org.openecard.transport.dispatcher.Service.invoke(Service.java:192) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.transport.dispatcher.MessageDispatcher.deliver(MessageDispatcher.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.performMissingAuthentication(GenericCryptoSigner.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:224) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.CardCommunicator.sign(CardCommunicator.java:296) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.Card.sign(Card.java:60) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:88) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssSigner.sign(DssSigner.java:76) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataVector.sign(DataVector.java:108) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataModel.sign(DataModel.java:54) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.SignAction.execute(SignAction.java:106) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.bind.AppPluginActionProxy.execute(AppPluginActionProxy.java:55) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.handler.HttpAppPluginActionHandler.handle(HttpAppPluginActionHandler.java:112) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.doService(HttpService.java:436) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.handleRequest(HttpService.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.HttpService$1.run(HttpService.java:131) [richclient-1.1.2-bundle-cifs.jar:na] 2016-07-04 14:43:49,835 [Thread-76] ERROR o.o.c.c.sal.GenericCryptoSigner:248 - Signature generation failed. org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/ifdl#cancellationByUser ==> PIN entry cancelled by user. at org.openecard.common.ECardException.makeException(ECardException.java:64) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper$WSException.<init>(WSHelper.java:47) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper.checkResult(WSHelper.java:69) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.performMissingAuthentication(GenericCryptoSigner.java:342) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:224) ~[richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.CardCommunicator.sign(CardCommunicator.java:296) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.Card.sign(Card.java:60) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:88) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssSigner.sign(DssSigner.java:76) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataVector.sign(DataVector.java:108) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataModel.sign(DataModel.java:54) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.SignAction.execute(SignAction.java:106) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.bind.AppPluginActionProxy.execute(AppPluginActionProxy.java:55) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.handler.HttpAppPluginActionHandler.handle(HttpAppPluginActionHandler.java:112) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.doService(HttpService.java:436) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.handleRequest(HttpService.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.HttpService$1.run(HttpService.java:131) [richclient-1.1.2-bundle-cifs.jar:na] 2016-07-04 14:43:49,835 [Thread-76] ERROR e.e.a.l.larms.card.CardCommunicator:301 - An error occurred while signing the document. java.security.SignatureException: org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/ifdl#cancellationByUser ==> PIN entry cancelled by user. at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:249) ~[richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.CardCommunicator.sign(CardCommunicator.java:296) ~[richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.card.Card.sign(Card.java:60) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:98) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:88) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.dss.DssSigner.sign(DssSigner.java:76) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataVector.sign(DataVector.java:108) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.ui.DataModel.sign(DataModel.java:54) [richclient-1.1.2-bundle-cifs.jar:na] at eu.esens.abb.lap.larms.SignAction.execute(SignAction.java:106) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.addon.bind.AppPluginActionProxy.execute(AppPluginActionProxy.java:55) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.handler.HttpAppPluginActionHandler.handle(HttpAppPluginActionHandler.java:112) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.doService(HttpService.java:436) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.apache.http.protocol.HttpService.handleRequest(HttpService.java:341) [richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.control.binding.http.HttpService$1.run(HttpService.java:131) [richclient-1.1.2-bundle-cifs.jar:na] Caused by: org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/ifdl#cancellationByUser ==> PIN entry cancelled by user. at org.openecard.common.ECardException.makeException(ECardException.java:64) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper$WSException.<init>(WSHelper.java:47) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.common.WSHelper.checkResult(WSHelper.java:69) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.performMissingAuthentication(GenericCryptoSigner.java:342) ~[richclient-1.1.2-bundle-cifs.jar:na] at org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:224) ~[richclient-1.1.2-bundle-cifs.jar:na] ... 13 common frames omitted 2016-07-04 14:43:49,837 [Thread-76] ERROR eu.esens.abb.lap.larms.SignAction:111 - OASIS DSS signature request could not be signed properly: null 2016-07-04 14:43:49,841 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:169 - Recieved BindingResult with ResultCode OK 2016-07-04 14:43:49,841 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:134 - BindingResult contains a body. 2016-07-04 14:43:49,841 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:116 - HTTP response: HTTP/1.1 200 [] [Content-Type: application/xml; charset=UTF-8,Content-Length: 353,Chunked: false] 2016-07-04 14:43:49,846 [Thread-79] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:86 - HTTP request: GET /trc/rst?doctorId=11906&patientId=898765392&2.16.17.710.820.1000.990.1&ISO&idaRef=_1f08ed21-0b0b-46b0-801c-af106fb4fa4f&purpose=EMERGENCY [Host: www.localhost-ecard-client.de:24727, User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0, Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8, Accept-Language: en-US,en;q=0.5, Accept-Encoding: gzip, deflate, Connection: keep-alive] 2016-07-04 14:43:50,171 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:86 - HTTP request: POST /larms/sign [content-type: text/plain; charset=utf-8, User-Agent: Java/1.7.0_80, Host: 127.0.0.1:24727, Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, Connection: keep-alive, Content-Length: 22542] 2016-07-04 14:43:50,171 [Thread-76] DEBUG o.o.c.b.h.h.HttpAppPluginActionHandler:109 - Request contains an entity. {code}

    JIRA | 5 months ago | João Cunha
    org.openecard.common.WSHelper$WSException: http://www.bsi.bund.de/ecard/api/1.1/resultminor/ifdl#cancellationByUser ==> PIN entry cancelled by user.

    Root Cause Analysis

    1. org.openecard.common.WSHelper$WSException

      http://www.bsi.bund.de/ecard/api/1.1/resultminor/al/common#unknownError ==> The returned status code is not in the list of expected status codes. The returned code is: Command not allowed. Reference data not usable. (Code: 6984)

      at org.openecard.common.ECardException.makeException()
    2. org.openecard.common
      WSHelper.checkResult
      1. org.openecard.common.ECardException.makeException(ECardException.java:64)[richclient-1.1.2-bundle-cifs.jar:na]
      2. org.openecard.common.WSHelper$WSException.<init>(WSHelper.java:47)[richclient-1.1.2-bundle-cifs.jar:na]
      3. org.openecard.common.WSHelper.checkResult(WSHelper.java:69)[richclient-1.1.2-bundle-cifs.jar:na]
      3 frames
    3. org.openecard.sal
      DIDAuthenticateStep.perform
      1. org.openecard.sal.protocol.pincompare.DIDAuthenticateStep.perform(DIDAuthenticateStep.java:130)[richclient-1.1.2-bundle-cifs.jar:na]
      2. org.openecard.sal.protocol.pincompare.DIDAuthenticateStep.perform(DIDAuthenticateStep.java:65)[richclient-1.1.2-bundle-cifs.jar:na]
      2 frames
    4. org.openecard.addon
      SALProtocolProxy.didAuthenticate
      1. org.openecard.addon.sal.SALProtocolBaseImpl.perform(SALProtocolBaseImpl.java:163)[richclient-1.1.2-bundle-cifs.jar:na]
      2. org.openecard.addon.sal.SALProtocolBaseImpl.didAuthenticate(SALProtocolBaseImpl.java:244)[richclient-1.1.2-bundle-cifs.jar:na]
      3. org.openecard.addon.sal.SALProtocolProxy.didAuthenticate(SALProtocolProxy.java:147)[richclient-1.1.2-bundle-cifs.jar:na]
      3 frames
    5. org.openecard.sal
      TinySAL.didAuthenticate
      1. org.openecard.sal.TinySAL.didAuthenticate(TinySAL.java:2052)[richclient-1.1.2-bundle-cifs.jar:na]
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_80]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_80]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_80]
      4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_80]
      4 frames
    7. org.openecard.transport
      MessageDispatcher.deliver
      1. org.openecard.transport.dispatcher.Service.invoke(Service.java:192)[richclient-1.1.2-bundle-cifs.jar:na]
      2. org.openecard.transport.dispatcher.MessageDispatcher.deliver(MessageDispatcher.java:98)[richclient-1.1.2-bundle-cifs.jar:na]
      2 frames
    8. org.openecard.crypto
      GenericCryptoSigner.sign
      1. org.openecard.crypto.common.sal.GenericCryptoSigner.performMissingAuthentication(GenericCryptoSigner.java:341)[richclient-1.1.2-bundle-cifs.jar:na]
      2. org.openecard.crypto.common.sal.GenericCryptoSigner.sign(GenericCryptoSigner.java:224)[richclient-1.1.2-bundle-cifs.jar:na]
      2 frames
    9. eu.esens.abb
      SignAction.execute
      1. eu.esens.abb.lap.larms.card.CardCommunicator.sign(CardCommunicator.java:296)[richclient-1.1.2-bundle-cifs.jar:na]
      2. eu.esens.abb.lap.larms.card.Card.sign(Card.java:60)[richclient-1.1.2-bundle-cifs.jar:na]
      3. eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:98)[richclient-1.1.2-bundle-cifs.jar:na]
      4. eu.esens.abb.lap.larms.dss.DssCardSignatureTokenConnection.sign(DssCardSignatureTokenConnection.java:88)[richclient-1.1.2-bundle-cifs.jar:na]
      5. eu.esens.abb.lap.larms.dss.DssSigner.sign(DssSigner.java:76)[richclient-1.1.2-bundle-cifs.jar:na]
      6. eu.esens.abb.lap.larms.ui.DataVector.sign(DataVector.java:108)[richclient-1.1.2-bundle-cifs.jar:na]
      7. eu.esens.abb.lap.larms.ui.DataModel.sign(DataModel.java:54)[richclient-1.1.2-bundle-cifs.jar:na]
      8. eu.esens.abb.lap.larms.SignAction.execute(SignAction.java:106)[richclient-1.1.2-bundle-cifs.jar:na]
      8 frames
    10. org.openecard.addon
      AppPluginActionProxy.execute
      1. org.openecard.addon.bind.AppPluginActionProxy.execute(AppPluginActionProxy.java:55)[richclient-1.1.2-bundle-cifs.jar:na]
      1 frame
    11. org.openecard.control
      HttpAppPluginActionHandler.handle
      1. org.openecard.control.binding.http.handler.HttpAppPluginActionHandler.handle(HttpAppPluginActionHandler.java:112)[richclient-1.1.2-bundle-cifs.jar:na]
      1 frame
    12. org.openecard.apache
      HttpService.handleRequest
      1. org.openecard.apache.http.protocol.HttpService.doService(HttpService.java:436)[richclient-1.1.2-bundle-cifs.jar:na]
      2. org.openecard.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)[richclient-1.1.2-bundle-cifs.jar:na]
      2 frames
    13. org.openecard.control
      HttpService$1.run
      1. org.openecard.control.binding.http.HttpService$1.run(HttpService.java:131)[richclient-1.1.2-bundle-cifs.jar:na]
      1 frame