View Revisions: Issue #863

Summary 0000863: Prevent race condition for read/write of savapage.json
Revision 2017-09-08 20:34 by rijkr
Additional Information 2017-09-07 14:56:23,468 ERROR UserEventService:559 - Error parsing from file [/opt/spool/savapage/safepages/0/1/some-userid/savapage.json] [jetty-threadpool-4604]
org.savapage.core.SpException: Error parsing from file [/opt/spool/savapage/safepages/0/1/some-userid/savapage.json]
        at org.savapage.core.services.impl.InboxServiceImpl.readInboxInfo(InboxServiceImpl.java:191)
        at org.savapage.core.services.impl.InboxServiceImpl.getInboxInfo(InboxServiceImpl.java:244)
        at org.savapage.core.services.helpers.InboxPageImageChunker.<init>(InboxPageImageChunker.java:212)
        at org.savapage.core.services.helpers.InboxPageImageChunker.chunk(InboxPageImageChunker.java:663)
        at org.savapage.core.services.impl.InboxServiceImpl.getPageChunks(InboxServiceImpl.java:754)
        at org.savapage.server.cometd.UserEventService.getChangedJobsEvent(UserEventService.java:1031)
        at org.savapage.server.cometd.UserEventService.watchUserFileEvents(UserEventService.java:897)
        at org.savapage.server.cometd.UserEventService.monitorUserEvent(UserEventService.java:518)
. . .
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input in field name
 at [Source: /opt/spool/savapage/safepages/0/1/some-userid/savapage.json; line: 168, column: 4010]
        at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1378)
. . .
 at org.savapage.core.services.impl.InboxServiceImpl.readInboxInfo(InboxServiceImpl.java:171)
        ... 32 more
2017-09-07 14:56:23,473 ERROR AppLogServiceImpl:121 - UserEventService: SpException: Error parsing from file [/opt/spool/savapage/safepages/0/1/some-userid/savapage.json] (User "some-userid" at WebApp 127.0.0.1) [jetty-threadpool-4604]
Revision 2017-09-08 19:34 by rijkr
Additional Information 2017-09-07 14:56:23,468 ERROR UserEventService:559 - Error parsing from file [/opt/spool/savapage/safepages/0/1/some-userid/savapage.json] [jetty-threadpool-4604]
org.savapage.core.SpException: Error parsing from file [/opt/spool/savapage/safepages/0/1/some-userid/savapage.json]
        at org.savapage.core.services.impl.InboxServiceImpl.readInboxInfo(InboxServiceImpl.java:191)
        at org.savapage.core.services.impl.InboxServiceImpl.getInboxInfo(InboxServiceImpl.java:244)
        at org.savapage.core.services.helpers.InboxPageImageChunker.<init>(InboxPageImageChunker.java:212)
        at org.savapage.core.services.helpers.InboxPageImageChunker.chunk(InboxPageImageChunker.java:663)
        at org.savapage.core.services.impl.InboxServiceImpl.getPageChunks(InboxServiceImpl.java:754)
        at org.savapage.server.cometd.UserEventService.getChangedJobsEvent(UserEventService.java:1031)
        at org.savapage.server.cometd.UserEventService.watchUserFileEvents(UserEventService.java:897)
        at org.savapage.server.cometd.UserEventService.monitorUserEvent(UserEventService.java:518)
...
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input in field name
 at [Source: /opt/spool/savapage/safepages/0/1/some-userid/savapage.json; line: 168, column: 4010]
        at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1378)
....
 at org.savapage.core.services.impl.InboxServiceImpl.readInboxInfo(InboxServiceImpl.java:171)
        ... 32 more
2017-09-07 14:56:23,473 ERROR AppLogServiceImpl:121 - UserEventService: SpException: Error parsing from file [/opt/spool/savapage/safepages/0/1/some-userid/savapage.json] (User "some-userid" at WebApp 127.0.0.1) [jetty-threadpool-4604]