Pokus o odeslání dokladu e-mailem může vracet chybu typu:
2023-05-02 18:26:50,348 [JettyServer-24128 ] default$spojenet_it_s_r_o_ ERROR AbstractErrorMapper:153 - Server error occurred:
java.io.IOException: Operace zamítnuta
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1023)
at cz.winstrom.util.WSFileUtil.createTempFile(WSFileUtil.java:555)
at cz.winstrom.service.dok.impl.IsDocHelper.generateIsdoc(IsDocHelper.java:2899)
at cz.winstrom.server.EvidenceHelper.generateIsdoc(EvidenceHelper.java:656)
at cz.winstrom.server.EvidenceHelper.listTx(EvidenceHelper.java:1634)
at cz.winstrom.server.EvidenceHelper.access$000(EvidenceHelper.java:205)
at cz.winstrom.server.EvidenceHelper$2.execute(EvidenceHelper.java:1513)
at cz.winstrom.service.impl.WSDataStoreBLImpl.doBusinessTask(WSDataStoreBLImpl.java:911)
at cz.winstrom.service.impl.WSDataStoreBLImpl.doBusinessTask(WSDataStoreBLImpl.java:896)
at cz.winstrom.server.EvidenceHelper.list(EvidenceHelper.java:1509)
at cz.winstrom.net.server.action.ActionList.convertTo(ActionList.java:222)
at cz.winstrom.net.server.action.RestActionHelper.handle(RestActionHelper.java:803)
at sun.reflect.GeneratedMethodAccessor909.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1507)
at cz.winstrom.net.server.services.AuthHandlerFilter.doFilter(AuthHandlerFilter.java:591)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1495)
at cz.winstrom.net.server.FlexiBeeHandlerFilter.doFilter(FlexiBeeHandlerFilter.java:321)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1487)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.GzipHandler.handle(GzipHandler.java:264)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:973)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1035)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:641)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:231)
at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
at cz.winstrom.net.server.monitor.ThreadPoolMonitorProxy.lambda$dispatch$0(ThreadPoolMonitorProxy.java:51)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:750)
2023-05-02 18:26:50,357 [JettyServer-24128 ] INFO RequestLogger:67 - GET https://flexibee.spoje.net:5434/v2/c/spojenet_it_s_r_o_/faktura-vydana/(id=84).isdocx [224 ms] 77.87.240.113 => 500
2023-05-02 18:26:58,510 [JettyServer-24424 ] INFO FlexiBeeHandlerFilter:111 - HEAD https://flexibee.spoje.net:5434/flexi/
2023-05-02 18:26:58,601 [JettyServer-24424 ] INFO RequestLogger:67 - HEAD https://flexibee.spoje.net:5434/flexi/ [91 ms] 77.87.240.70 => 200
2023-05-02 18:26:58,688 [JettyServer-24134 ] ERROR DispatchedSocketAction:61 - Dispatched action cz.winstrom.net.server.http.DispatchedSocketAction@1d6c6a20[actionId=80aafb2f-a59f-47dd-81e7-00f50f824b1e,socket=Socket[addr=/77.87.240.113,port=57169,localport=5434],action=cz.winstrom.net.server.http.JettyConnector$$Lambda$137/2076127601@5e89bb6c] failed!
java.lang.IllegalStateException: Could not handle the incoming data.
at cz.winstrom.net.server.http.JettyConnector.handleWithException(JettyConnector.java:206)
at cz.winstrom.net.server.http.DispatchedSocketAction.run(DispatchedSocketAction.java:59)
at cz.winstrom.net.server.monitor.ThreadPoolMonitorProxy.lambda$dispatch$0(ThreadPoolMonitorProxy.java:51)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:750)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
at sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1575)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1405)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1305)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
at cz.winstrom.net.server.http.JettyConnector.handleSsl(JettyConnector.java:225)
at cz.winstrom.net.server.http.JettyConnector.handleWithException(JettyConnector.java:200)
... 5 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:167)
at sun.security.ssl.SSLTransport.decode(SSLTransport.java:109)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1397)
Pokud obdobná chyba nastane, mohou být příčinou nedostatečná práva (chybí právo zápisu) pro složku s dočasnými soubory (TEMP).
Při odeslání dokladu e-mailem si Flexi vytváří ISDOC dočasný soubor (ve složce TEMP), který je následně přílohou e-mailu. Pokud by neměl práva pro vytvoření souboru v této složce či nebyl ve složce dostatek místa, skončí odeslání chybou.