View Issue Details

IDProjectCategoryView StatusLast Update
0003091SymmetricDSBugpublic2017-05-04 13:41
ReportergwilmerAssigned Tochenson 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.8.22 
Target Version3.8.23Fixed in Version3.8.23 
Summary0003091: A corrupt batch being sent to a target results in a NullPointerException by load writing the batch to staging
DescriptionIf a source sends a corrupt batch to a target node, the target not can receive a NPE when trying to write the batch to staging.

2017-05-04 10:54:00,802 ERROR [sqlserver-002] [DataLoaderService] [qtp1182461167-21] Failed while parsing batch
java.lang.NullPointerException
    at org.jumpmind.symmetric.io.data.writer.SimpleStagingDataWriter.writeLine(SimpleStagingDataWriter.java:242)
    at org.jumpmind.symmetric.io.data.writer.SimpleStagingDataWriter.process(SimpleStagingDataWriter.java:202)
    at org.jumpmind.symmetric.service.impl.DataLoaderService.loadDataFromTransport(DataLoaderService.java:510)
    at org.jumpmind.symmetric.service.impl.DataLoaderService.loadDataFromPush(DataLoaderService.java:393)
    at org.jumpmind.symmetric.web.PushUriHandler.push(PushUriHandler.java:83)
    at org.jumpmind.symmetric.web.PushUriHandler.handle(PushUriHandler.java:68)
    at org.jumpmind.symmetric.web.SymmetricServlet.service(SymmetricServlet.java:114)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
    at org.jumpmind.symmetric.web.HttpMethodFilter.doFilter(HttpMethodFilter.java:62)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:499)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Unknown Source)
Additional InformationIn the final else condition of SimpleStagingDataWriter (line 176 on 3.8.22), it doesn't appear that the writer is ever initialized before attempting to write the corrupt batch to the staging file. We probably shouldn't write the corrupt batch to staging anyway.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.8 4cad9340

2017-05-04 12:08:04

chenson42

Details Diff
0003091: A corrupt batch being sent to a target results in a
NullPointerException by load writing the batch to staging

0003091
mod - symmetric-io/src/main/java/org/jumpmind/symmetric/io/data/writer/SimpleStagingDataWriter.java Diff File

Issue History

Date Modified Username Field Change
2017-05-04 09:28 gwilmer New Issue
2017-05-04 10:51 chenson Assigned To => chenson
2017-05-04 10:51 chenson Status new => assigned
2017-05-04 10:51 chenson Product Version => 3.8.22
2017-05-04 10:51 chenson Target Version => 3.8.23
2017-05-04 12:08 chenson Status assigned => resolved
2017-05-04 12:08 chenson Fixed in Version => 3.8.23
2017-05-04 12:08 chenson Resolution open => fixed
2017-05-04 13:00 chenson42 Changeset attached => SymmetricDS 3.8 4cad9340
2017-05-04 13:41 chenson Status resolved => closed