BUG: TSE Connector
Verfasst: So 20. Sep 2020, 20:10
Hallo,
wir haben soeben im Produktivbetrieb einen Bug festgestellt, der wohl mit dem TSE-Connector in Zusammenhang steht:
- Wenn Artikel mit größer-Zeichen bzw. Klammer im Namen gebucht werden sollen hängt sich der Server auf. Der Artikel hat vorher schon exisitiert, also vermute ich einen Zusamenhang mit TSE.
- Wir verwenden OpenJDK und haben den TSE-Connector als systemd-service eingebunden. Manchmal stürzt die Anwendung nach folgendem Schema ab:
java[195953]: com.secureflashcard.wormapi.WormException: WormException: WORM_ERROR_NO_TIME_SET
java[195953]: #011at com.secureflashcard.wormapi.WormAPIJNI.WormStore_transaction_start(Native Method)
java[195953]: #011at com.secureflashcard.wormapi.WormStore.transaction_start(WormStore.java:706)
java[195953]: #011at tseconnector.commands.TseSignCommand.signvalue(TseSignCommand.java:54)
java[195953]: #011at tseconnector.commands.TseSignCommand.doCmd(TseSignCommand.java:26)
java[195953]: #011at tseconnector.handler.RequestHandler.handle(RequestHandler.java:51)
java[195953]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
java[195953]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692)
java[195953]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:664)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:159)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:442)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:408)
java[195953]: #011at java.base/java.lang.Thread.run(Thread.java:834)
java[195953]: {"msg":"WormException: WORM_ERROR_NO_TIME_SET","status":"ERROR"}
ein anderer Fehler, wenn der Connector über Nacht lief lautet:
java[25434]: com.secureflashcard.wormapi.WormException: WormException: WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST
java[25434]: #011at com.secureflashcard.wormapi.WormAPIJNI.WormStore_transaction_listStartedTransactions__SWIG_0(Native Met$
java[25434]: #011at com.secureflashcard.wormapi.WormStore.transaction_listStartedTransactions(WormStore.java:803)
java[25434]: #011at tseconnector.commands.TseCmdExecutor.completeUnfinishedTransactions(TseCmdExecutor.java:44)
java[25434]: #011at tseconnector.commands.TseSignCommand.signvalue(TseSignCommand.java:52)
java[25434]: #011at tseconnector.commands.TseSignCommand.doCmd(TseSignCommand.java:24)
java[25434]: #011at tseconnector.handler.RequestHandler.handle(RequestHandler.java:51)
java[25434]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
java[25434]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692)
java[25434]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:664)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:159)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:442)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:408)
java[25434]: #011at java.base/java.lang.Thread.run(Thread.java:834)
java[25434]: {"msg":"WormException: WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST","status":"ERROR"}
wir haben soeben im Produktivbetrieb einen Bug festgestellt, der wohl mit dem TSE-Connector in Zusammenhang steht:
- Wenn Artikel mit größer-Zeichen bzw. Klammer im Namen gebucht werden sollen hängt sich der Server auf. Der Artikel hat vorher schon exisitiert, also vermute ich einen Zusamenhang mit TSE.
- Wir verwenden OpenJDK und haben den TSE-Connector als systemd-service eingebunden. Manchmal stürzt die Anwendung nach folgendem Schema ab:
java[195953]: com.secureflashcard.wormapi.WormException: WormException: WORM_ERROR_NO_TIME_SET
java[195953]: #011at com.secureflashcard.wormapi.WormAPIJNI.WormStore_transaction_start(Native Method)
java[195953]: #011at com.secureflashcard.wormapi.WormStore.transaction_start(WormStore.java:706)
java[195953]: #011at tseconnector.commands.TseSignCommand.signvalue(TseSignCommand.java:54)
java[195953]: #011at tseconnector.commands.TseSignCommand.doCmd(TseSignCommand.java:26)
java[195953]: #011at tseconnector.handler.RequestHandler.handle(RequestHandler.java:51)
java[195953]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
java[195953]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692)
java[195953]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:664)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:159)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:442)
java[195953]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:408)
java[195953]: #011at java.base/java.lang.Thread.run(Thread.java:834)
java[195953]: {"msg":"WormException: WORM_ERROR_NO_TIME_SET","status":"ERROR"}
ein anderer Fehler, wenn der Connector über Nacht lief lautet:
java[25434]: com.secureflashcard.wormapi.WormException: WormException: WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST
java[25434]: #011at com.secureflashcard.wormapi.WormAPIJNI.WormStore_transaction_listStartedTransactions__SWIG_0(Native Met$
java[25434]: #011at com.secureflashcard.wormapi.WormStore.transaction_listStartedTransactions(WormStore.java:803)
java[25434]: #011at tseconnector.commands.TseCmdExecutor.completeUnfinishedTransactions(TseCmdExecutor.java:44)
java[25434]: #011at tseconnector.commands.TseSignCommand.signvalue(TseSignCommand.java:52)
java[25434]: #011at tseconnector.commands.TseSignCommand.doCmd(TseSignCommand.java:24)
java[25434]: #011at tseconnector.handler.RequestHandler.handle(RequestHandler.java:51)
java[25434]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
java[25434]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692)
java[25434]: #011at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:664)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:159)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:442)
java[25434]: #011at jdk.httpserver/sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:408)
java[25434]: #011at java.base/java.lang.Thread.run(Thread.java:834)
java[25434]: {"msg":"WormException: WORM_ERROR_WRONG_STATE_NEEDS_SELF_TEST","status":"ERROR"}