Skip to content

Instantly share code, notes, and snippets.

@Erotemic
Created July 10, 2015 14:15
Show Gist options
  • Save Erotemic/8fc56c91a48b16b2f2fa to your computer and use it in GitHub Desktop.
Save Erotemic/8fc56c91a48b16b2f2fa to your computer and use it in GitHub Desktop.
Failed on push encounter catalina.out
10-Jul-2015 09:45:32.024 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.24
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2015 20:19:55 UTC
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.24.0
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.13.0-55-generic
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.7.0_79-b14
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/joncrall/code/Wildbook/apache-tomcat-8.0.24
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /home/joncrall/code/Wildbook/apache-tomcat-8.0.24
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/conf/logging.properties
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/endorsed
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/joncrall/code/Wildbook/apache-tomcat-8.0.24
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/joncrall/code/Wildbook/apache-tomcat-8.0.24
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/temp
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/cuda-6.0/lib64::/usr/local/cuda/lib64:/usr/local/lib:/usr/local/cuda/lib64:/usr/local/lib:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
10-Jul-2015 09:45:32.097 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
10-Jul-2015 09:45:32.108 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
10-Jul-2015 09:45:32.110 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
10-Jul-2015 09:45:32.111 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
10-Jul-2015 09:45:32.112 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 383 ms
10-Jul-2015 09:45:32.127 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
10-Jul-2015 09:45:32.127 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.24
10-Jul-2015 09:45:32.143 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis.war
10-Jul-2015 09:45:34.816 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09:45:34,859 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
09:45:34,859 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
09:45:34,859 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/logback.xml]
09:45:34,924 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
09:45:34,925 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
09:45:34,926 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SUBMISSIONFILE]
09:45:34,954 |-WARN in ch.qos.logback.core.FileAppender[SUBMISSIONFILE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
09:45:34,954 |-WARN in ch.qos.logback.core.FileAppender[SUBMISSIONFILE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
09:45:34,954 |-WARN in ch.qos.logback.core.FileAppender[SUBMISSIONFILE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
09:45:34,954 |-INFO in ch.qos.logback.core.FileAppender[SUBMISSIONFILE] - File property is set to [./webapps/ROOT/logs/encounter-submission.htm]
09:45:34,957 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
09:45:34,957 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ENCOUNTERDELETEFILE]
09:45:34,957 |-WARN in ch.qos.logback.core.FileAppender[ENCOUNTERDELETEFILE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
09:45:34,957 |-WARN in ch.qos.logback.core.FileAppender[ENCOUNTERDELETEFILE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
09:45:34,957 |-WARN in ch.qos.logback.core.FileAppender[ENCOUNTERDELETEFILE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
09:45:34,957 |-INFO in ch.qos.logback.core.FileAppender[ENCOUNTERDELETEFILE] - File property is set to [./webapps/ROOT/logs/encounter-delete.htm]
09:45:34,957 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
09:45:34,957 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [USERFILE]
09:45:34,958 |-WARN in ch.qos.logback.core.FileAppender[USERFILE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
09:45:34,958 |-WARN in ch.qos.logback.core.FileAppender[USERFILE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
09:45:34,958 |-WARN in ch.qos.logback.core.FileAppender[USERFILE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
09:45:34,958 |-INFO in ch.qos.logback.core.FileAppender[USERFILE] - File property is set to [./webapps/ROOT/logs/user-access.htm]
09:45:34,958 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
09:45:34,958 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
09:45:34,958 |-WARN in ch.qos.logback.core.FileAppender[FILE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
09:45:34,958 |-WARN in ch.qos.logback.core.FileAppender[FILE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
09:45:34,958 |-WARN in ch.qos.logback.core.FileAppender[FILE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
09:45:34,958 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [./webapps/ROOT/logs/logback-debug.htm]
09:45:34,958 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.ecocean.servlet.SubmitAction] to INFO
09:45:34,958 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SUBMISSIONFILE] to Logger[org.ecocean.servlet.SubmitAction]
09:45:34,959 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.ecocean.servlet.EncounterDelete] to INFO
09:45:34,959 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ENCOUNTERDELETEFILE] to Logger[org.ecocean.servlet.EncounterDelete]
09:45:34,959 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.jsp.welcome_jsp] to INFO
09:45:34,959 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [USERFILE] to Logger[org.apache.jsp.welcome_jsp]
09:45:34,959 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.jsp.logout_jsp] to INFO
09:45:34,959 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [USERFILE] to Logger[org.apache.jsp.logout_jsp]
09:45:34,959 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
09:45:34,959 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
09:45:34,959 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@fbf7b8f - Registering current configuration as safe fallback point
10-Jul-2015 09:45:35.075 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis.war has finished in 2,931 ms
10-Jul-2015 09:45:35.076 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/docs
10-Jul-2015 09:45:35.088 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/docs has finished in 12 ms
10-Jul-2015 09:45:35.088 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ROOT
10-Jul-2015 09:45:35.101 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ROOT has finished in 13 ms
10-Jul-2015 09:45:35.101 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/manager
10-Jul-2015 09:45:35.123 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/manager has finished in 22 ms
10-Jul-2015 09:45:35.123 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/host-manager
10-Jul-2015 09:45:35.138 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/host-manager has finished in 15 ms
10-Jul-2015 09:45:35.138 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/examples
10-Jul-2015 09:45:35.259 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/examples has finished in 121 ms
10-Jul-2015 09:45:35.262 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
10-Jul-2015 09:45:35.266 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
10-Jul-2015 09:45:35.266 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 3154 ms
Creating tomcat user account...
Creating tomcat roles...
Creating tomcat user account...
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
10-Jul-2015 09:45:45.262 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/webapps
10-Jul-2015 09:45:45.288 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/webapps has finished in 26 ms
10-Jul-2015 09:45:45.288 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_derby_database
10-Jul-2015 09:45:45.309 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_derby_database has finished in 20 ms
Starting LoginUser servlet...
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
Starting LoginUser servlet...
Trying to set acceptance for UserAgreement!
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
10-Jul-2015 09:45:55.034 INFO [http-nio-8080-exec-7] org.datanucleus.store.rdbms.query.ForwardQueryResult.closingConnection Reading in results for query "SELECT FROM org.ecocean.Role WHERE this.username == 'tomcat' && this.context == 'context0'" since the connection used is closing/committing
[class org.ecocean.Encounter] roles for user 'tomcat': [admin, destroyer, rest]
{sex=deny}
10-Jul-2015 09:45:55.037 INFO [http-nio-8080-exec-7] org.datanucleus.store.rdbms.query.ForwardQueryResult.closingConnection Reading in results for query "SELECT FROM org.ecocean.Role WHERE this.username == 'tomcat' && this.context == 'context0'" since the connection used is closing/committing
[class org.ecocean.MarkedIndividual] roles for user 'tomcat': [admin, destroyer, rest]
{}
10-Jul-2015 09:45:55.039 INFO [http-nio-8080-exec-7] org.datanucleus.store.rdbms.query.ForwardQueryResult.closingConnection Reading in results for query "SELECT FROM org.ecocean.Role WHERE this.username == 'tomcat' && this.context == 'context0'" since the connection used is closing/committing
[class org.ecocean.SinglePhotoVideo] roles for user 'tomcat': [admin, destroyer, rest]
{}
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
Starting LoginUser servlet...
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
10-Jul-2015 09:47:05.268 INFO [http-nio-8080-exec-6] org.datanucleus.store.rdbms.query.ForwardQueryResult.closingConnection Reading in results for query "SELECT FROM org.ecocean.Role WHERE this.username == 'tomcat' && this.context == 'context0'" since the connection used is closing/committing
[class org.ecocean.Encounter] roles for user 'tomcat': [admin, destroyer, rest]
{sex=deny}
10-Jul-2015 09:47:05.269 INFO [http-nio-8080-exec-6] org.datanucleus.store.rdbms.query.ForwardQueryResult.closingConnection Reading in results for query "SELECT FROM org.ecocean.Role WHERE this.username == 'tomcat' && this.context == 'context0'" since the connection used is closing/committing
[class org.ecocean.MarkedIndividual] roles for user 'tomcat': [admin, destroyer, rest]
{}
10-Jul-2015 09:47:05.271 INFO [http-nio-8080-exec-6] org.datanucleus.store.rdbms.query.ForwardQueryResult.closingConnection Reading in results for query "SELECT FROM org.ecocean.Role WHERE this.username == 'tomcat' && this.context == 'context0'" since the connection used is closing/committing
[class org.ecocean.SinglePhotoVideo] roles for user 'tomcat': [admin, destroyer, rest]
{}
10-Jul-2015 09:54:45.455 INFO [localhost-startStop-3] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir
10-Jul-2015 09:54:45.474 INFO [localhost-startStop-3] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir has finished in 19 ms
10-Jul-2015 09:54:47.083 INFO [http-nio-8080-exec-3] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "350a3341-5d1f-416f-93f9-ad1159932c3e" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:350a3341-5d1f-416f-93f9-ad1159932c3e
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:567)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1728)
at org.ecocean.Shepherd.getOccurrence(Shepherd.java:1669)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:97)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
No such database row
org.datanucleus.exceptions.NucleusObjectNotFoundException: No such database row
at org.datanucleus.store.rdbms.request.FetchRequest.execute(FetchRequest.java:358)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.fetchObject(RDBMSPersistenceHandler.java:319)
at org.datanucleus.state.AbstractStateManager.loadFieldsFromDatastore(AbstractStateManager.java:1147)
at org.datanucleus.state.StateManagerImpl.validate(StateManagerImpl.java:4375)
at org.datanucleus.ExecutionContextImpl.findObject(ExecutionContextImpl.java:3544)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1723)
at org.ecocean.Shepherd.getOccurrence(Shepherd.java:1669)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:97)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
xmlIn(
null
)END
[b037fed5-66c1-4853-8a63-eefb63ce7c42] Exemplars
[7dc9af9a-b9ac-41fa-8ccd-f8db8f9533a6] Unreviewed Images
[4edb71e6-c017-4aa7-8201-c9f8fe0aacdc] All Images
[7e8f1d33-18bb-40ea-9e4e-cf3cf326e9b0] Reviewed Images
[51ec5593-51b7-4384-b0d6-2cd26b61d474] New Encounter 0
[55555040-2a51-4f1f-9bd6-e2acfc9718cb] New Encounter 1
[ff7ac356-2302-4180-94b7-c748b3cbbbcf] New Encounter 2
[350a3341-5d1f-416f-93f9-ad1159932c3e] New Encounter 3
found=41
IMG ID >>1
.... aid=1
(END IMG ID)<<1
IMG ID >>2
.... aid=2
(END IMG ID)<<2
IMG ID >>3
.... aid=3
(END IMG ID)<<3
IMG ID >>4
.... aid=4
(END IMG ID)<<4
1: value = 06_410
1: value = zebra_plains
2: value = 06_410
2: value = zebra_plains
3: value = 06_410
3: value = zebra_plains
4: value = 06_410
4: value = zebra_plains
------
{imgs={1={image_time_posix=1348154981, id=1, image_gps_lon=-1.0, image_uri=51e10019-968b-5f2e-2287-8432464d7547.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-1.JPG}, 2={image_time_posix=1272463340, id=2, image_gps_lon=-1.0, image_uri=b19fb0f4-05c1-4841-6973-b0b09d9a51b2.jpg, image_width=2288, image_height=1712, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-2.JPG}, 3={image_time_posix=1350569143, id=3, image_gps_lon=-1.0, image_uri=058b4301-8610-f1a1-2fa9-9519854d4930.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-3.JPG}, 4={image_time_posix=1150383253, id=4, image_gps_lon=-1.0, image_uri=911ab486-f541-f40f-8cf4-d03d6415b170.jpg, image_width=350, image_height=285, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-foal.JPG}}, anns={1={id=1, annot_uuid=c544d25f-fd03-5a2d-6611-cd77430ca251, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=1}, 2={id=2, annot_uuid=361cb5a1-9301-9bc6-919c-5d684f1c316b, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=2}, 3={id=3, annot_uuid=72845318-508b-18ce-5410-024bec855749, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=3}, 4={id=4, annot_uuid=e68b39a8-f61d-0057-5b51-bb3d0c6ef10a, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=4}}}
- - - - - -
{id=1, annot_uuid=c544d25f-fd03-5a2d-6611-cd77430ca251, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=1}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/51e10019-968b-5f2e-2287-8432464d7547.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/c/5/c544d25f-fd03-5a2d-6611-cd77430ca251/51e10019-968b-5f2e-2287-8432464d7547.jpg<<<?????????????
Created new Occurrence 350a3341-5d1f-416f-93f9-ad1159932c3e
10-Jul-2015 09:54:47.648 INFO [http-nio-8080-exec-3] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "06_410" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:06_410
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:567)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1728)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
No such database row
org.datanucleus.exceptions.NucleusObjectNotFoundException: No such database row
at org.datanucleus.store.rdbms.request.FetchRequest.execute(FetchRequest.java:358)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.fetchObject(RDBMSPersistenceHandler.java:319)
at org.datanucleus.state.AbstractStateManager.loadFieldsFromDatastore(AbstractStateManager.java:1147)
at org.datanucleus.state.StateManagerImpl.validate(StateManagerImpl.java:4375)
at org.datanucleus.ExecutionContextImpl.findObject(ExecutionContextImpl.java:3544)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1723)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
created new indiv = 06_410
>>>>>>>>>>>>>>>>> stored encounter: c544d25f-fd03-5a2d-6611-cd77430ca251
- - - - - -
{id=2, annot_uuid=361cb5a1-9301-9bc6-919c-5d684f1c316b, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=2}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/b19fb0f4-05c1-4841-6973-b0b09d9a51b2.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/3/6/361cb5a1-9301-9bc6-919c-5d684f1c316b/b19fb0f4-05c1-4841-6973-b0b09d9a51b2.jpg<<<?????????????
existing indiv = 06_410
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 361cb5a1-9301-9bc6-919c-5d684f1c316b
- - - - - -
{id=3, annot_uuid=72845318-508b-18ce-5410-024bec855749, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=3}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/058b4301-8610-f1a1-2fa9-9519854d4930.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/7/2/72845318-508b-18ce-5410-024bec855749/058b4301-8610-f1a1-2fa9-9519854d4930.jpg<<<?????????????
existing indiv = 06_410
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 72845318-508b-18ce-5410-024bec855749
- - - - - -
{id=4, annot_uuid=e68b39a8-f61d-0057-5b51-bb3d0c6ef10a, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=4}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/911ab486-f541-f40f-8cf4-d03d6415b170.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/e/6/e68b39a8-f61d-0057-5b51-bb3d0c6ef10a/911ab486-f541-f40f-8cf4-d03d6415b170.jpg<<<?????????????
existing indiv = 06_410
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: e68b39a8-f61d-0057-5b51-bb3d0c6ef10a
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
10-Jul-2015 09:54:48.976 WARNING [http-nio-8080-exec-7] org.datanucleus.metadata.ColumnMetaData.setJdbcType Metadata has jdbc-type of null yet this is not valid. Ignored
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
javax.jdo.JDODataStoreException: Iteration request failed : SELECT 'org.ecocean.Keyword' AS NUCLEUS_TYPE,A1.INDEXNAME,A1.READABLENAME,A0.DATACOLLECTIONEVENTID_OID,A0.IDX AS NUCORDER0 FROM SINGLEPHOTOVIDEO_KEYWORDS A0 INNER JOIN KEYWORD A1 ON A0.INDEXNAME_EID = A1.INDEXNAME WHERE A0.IDX >= 0 AND EXISTS (SELECT 'org.ecocean.SinglePhotoVideo' AS NUCLEUS_TYPE,A0_SUB.DATACOLLECTIONEVENTID AS DN_APPID FROM SINGLEPHOTOVIDEO A0_SUB INNER JOIN DATACOLLECTIONEVENT A1_SUB ON A0_SUB.DATACOLLECTIONEVENTID = A1_SUB.DATACOLLECTIONEVENTID WHERE A1_SUB.CORRESPONDINGENCOUNTERNUMBER = 'c544d25f-fd03-5a2d-6611-cd77430ca251' AND A0.DATACOLLECTIONEVENTID_OID = A0_SUB.DATACOLLECTIONEVENTID) ORDER BY NUCORDER0
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:232)
at org.ecocean.Shepherd.getAllSinglePhotoVideosForEncounter(Shepherd.java:1555)
at org.ecocean.Shepherd.getThumbnails(Shepherd.java:2308)
at org.apache.jsp.occurrence_jsp._jspService(occurrence_jsp.java:1032)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLSyntaxErrorException: Subquery is only allowed to return a single column.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)
at org.datanucleus.store.rdbms.SQLController.getStatementForQuery(SQLController.java:350)
at org.datanucleus.store.rdbms.SQLController.getStatementForQuery(SQLController.java:295)
at org.datanucleus.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:687)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1840)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:1729)
at org.datanucleus.store.query.Query.execute(Query.java:1711)
at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:223)
at org.ecocean.Shepherd.getAllSinglePhotoVideosForEncounter(Shepherd.java:1555)
at org.ecocean.Shepherd.getThumbnails(Shepherd.java:2308)
at org.apache.jsp.occurrence_jsp._jspService(occurrence_jsp.java:1032)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: Subquery is only allowed to return a single column.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 63 more
Caused by: ERROR 42X39: Subquery is only allowed to return a single column.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.compile.SubqueryNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.BinaryLogicalOperatorNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.AndNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
... 57 more
could not parse integer from , using null
could not parse integer from , using null
could not parse integer from , using null
could not parse integer from , using null
could not parse integer from , using null
could not parse double from , using null
could not parse double from , using null
could not parse double from , using null
could not parse double from , using null
javax.jdo.JDODataStoreException: Iteration request failed : SELECT 'org.ecocean.Keyword' AS NUCLEUS_TYPE,A1.INDEXNAME,A1.READABLENAME,A0.DATACOLLECTIONEVENTID_OID,A0.IDX AS NUCORDER0 FROM SINGLEPHOTOVIDEO_KEYWORDS A0 INNER JOIN KEYWORD A1 ON A0.INDEXNAME_EID = A1.INDEXNAME WHERE A0.IDX >= 0 AND EXISTS (SELECT 'org.ecocean.SinglePhotoVideo' AS NUCLEUS_TYPE,A0_SUB.DATACOLLECTIONEVENTID AS DN_APPID FROM SINGLEPHOTOVIDEO A0_SUB INNER JOIN DATACOLLECTIONEVENT A1_SUB ON A0_SUB.DATACOLLECTIONEVENTID = A1_SUB.DATACOLLECTIONEVENTID WHERE A1_SUB.CORRESPONDINGENCOUNTERNUMBER = 'c544d25f-fd03-5a2d-6611-cd77430ca251' AND A0.DATACOLLECTIONEVENTID_OID = A0_SUB.DATACOLLECTIONEVENTID) ORDER BY NUCORDER0
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:232)
at org.ecocean.Shepherd.getAllSinglePhotoVideosForEncounter(Shepherd.java:1555)
at org.ecocean.Shepherd.getThumbnails(Shepherd.java:2308)
at org.apache.jsp.occurrence_jsp._jspService(occurrence_jsp.java:1032)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLSyntaxErrorException: Subquery is only allowed to return a single column.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)
at org.datanucleus.store.rdbms.SQLController.getStatementForQuery(SQLController.java:350)
at org.datanucleus.store.rdbms.SQLController.getStatementForQuery(SQLController.java:295)
at org.datanucleus.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:687)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1840)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:1729)
at org.datanucleus.store.query.Query.execute(Query.java:1711)
at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:223)
at org.ecocean.Shepherd.getAllSinglePhotoVideosForEncounter(Shepherd.java:1555)
at org.ecocean.Shepherd.getThumbnails(Shepherd.java:2308)
at org.apache.jsp.occurrence_jsp._jspService(occurrence_jsp.java:1032)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: Subquery is only allowed to return a single column.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 63 more
Caused by: ERROR 42X39: Subquery is only allowed to return a single column.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.compile.SubqueryNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.BinaryOperatorNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.BinaryLogicalOperatorNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.AndNode.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
... 57 more
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
10-Jul-2015 10:12:16.645 INFO [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "02b856d5-9c00-492b-9df1-ca1530650cfd" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:02b856d5-9c00-492b-9df1-ca1530650cfd
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:567)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1728)
at org.ecocean.Shepherd.getOccurrence(Shepherd.java:1669)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:97)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
No such database row
org.datanucleus.exceptions.NucleusObjectNotFoundException: No such database row
at org.datanucleus.store.rdbms.request.FetchRequest.execute(FetchRequest.java:358)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.fetchObject(RDBMSPersistenceHandler.java:319)
at org.datanucleus.state.AbstractStateManager.loadFieldsFromDatastore(AbstractStateManager.java:1147)
at org.datanucleus.state.StateManagerImpl.validate(StateManagerImpl.java:4375)
at org.datanucleus.ExecutionContextImpl.findObject(ExecutionContextImpl.java:3544)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1723)
at org.ecocean.Shepherd.getOccurrence(Shepherd.java:1669)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:97)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
xmlIn(
null
)END
[b037fed5-66c1-4853-8a63-eefb63ce7c42] Exemplars
[7dc9af9a-b9ac-41fa-8ccd-f8db8f9533a6] Unreviewed Images
[4edb71e6-c017-4aa7-8201-c9f8fe0aacdc] All Images
[7e8f1d33-18bb-40ea-9e4e-cf3cf326e9b0] Reviewed Images
[51ec5593-51b7-4384-b0d6-2cd26b61d474] New Encounter 0
[55555040-2a51-4f1f-9bd6-e2acfc9718cb] New Encounter 1
[ff7ac356-2302-4180-94b7-c748b3cbbbcf] New Encounter 2
[350a3341-5d1f-416f-93f9-ad1159932c3e] New Encounter 3
[02b856d5-9c00-492b-9df1-ca1530650cfd] New Encounter 4
found=42
IMG ID >>1
.... aid=1
(END IMG ID)<<1
IMG ID >>2
.... aid=2
(END IMG ID)<<2
IMG ID >>3
.... aid=3
(END IMG ID)<<3
IMG ID >>4
.... aid=4
(END IMG ID)<<4
IMG ID >>5
.... aid=5
(END IMG ID)<<5
IMG ID >>6
.... aid=6
(END IMG ID)<<6
IMG ID >>7
.... aid=7
(END IMG ID)<<7
IMG ID >>8
.... aid=8
(END IMG ID)<<8
IMG ID >>9
.... aid=9
(END IMG ID)<<9
IMG ID >>10
.... aid=10
(END IMG ID)<<10
1: value = 06_410
1: value = zebra_plains
2: value = 06_410
2: value = zebra_plains
3: value = 06_410
3: value = zebra_plains
4: value = 06_410
4: value = zebra_plains
5: value = 07_061
5: value = zebra_plains
6: value = 07_061
6: value = zebra_plains
7: value = 07_061
7: value = zebra_plains
8: value = 07_061
8: value = zebra_plains
9: value = 02_044
9: value = zebra_plains
10: value = 07_091
10: value = zebra_plains
------
{imgs={1={image_time_posix=1348154981, id=1, image_gps_lon=-1.0, image_uri=51e10019-968b-5f2e-2287-8432464d7547.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-1.JPG}, 2={image_time_posix=1272463340, id=2, image_gps_lon=-1.0, image_uri=b19fb0f4-05c1-4841-6973-b0b09d9a51b2.jpg, image_width=2288, image_height=1712, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-2.JPG}, 3={image_time_posix=1350569143, id=3, image_gps_lon=-1.0, image_uri=058b4301-8610-f1a1-2fa9-9519854d4930.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-3.JPG}, 4={image_time_posix=1150383253, id=4, image_gps_lon=-1.0, image_uri=911ab486-f541-f40f-8cf4-d03d6415b170.jpg, image_width=350, image_height=285, image_gps_lat=-1.0, image_original_name=Nid-06_410--Cid-foal.JPG}, 5={image_time_posix=1272460752, id=5, image_gps_lon=-1.0, image_uri=7588af1c-9093-74dc-932b-816488dda704.jpg, image_width=1256, image_height=888, image_gps_lat=-1.0, image_original_name=Nid-07_061--Cid-1.JPG}, 6={image_time_posix=1311176759, id=6, image_gps_lon=-1.0, image_uri=535fc429-6724-2653-0bf4-4a45bf7785ad.jpg, image_width=1485, image_height=1005, image_gps_lat=-1.0, image_original_name=Nid-07_061--Cid-2.JPG}, 7={image_time_posix=1349275413, id=7, image_gps_lon=-1.0, image_uri=c3883c8e-d7e4-f06a-5422-07994933a5d4.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_061--Cid-3.JPG}, 8={image_time_posix=1175511982, id=8, image_gps_lon=-1.0, image_uri=41718ea1-57b5-8bc3-bba0-25801150573b.jpg, image_width=331, image_height=228, image_gps_lat=-1.0, image_original_name=Nid-07_061--Cid-foal.JPG}, 9={image_time_posix=-1, id=9, image_gps_lon=-1.0, image_uri=ff486ff3-3e43-8b4f-743f-7070e47b12cc.jpg, image_width=400, image_height=177, image_gps_lat=-1.0, image_original_name=Nid-02_044--Cid-mom-02_044.jpg}, 10={image_time_posix=1348150279, id=10, image_gps_lon=-1.0, image_uri=faefd7b4-b7a3-33d6-d62b-c320bb024dd6.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_091--Cid-1.JPG}}, anns={1={id=1, annot_uuid=c544d25f-fd03-5a2d-6611-cd77430ca251, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=1}, 2={id=2, annot_uuid=361cb5a1-9301-9bc6-919c-5d684f1c316b, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=2}, 3={id=3, annot_uuid=72845318-508b-18ce-5410-024bec855749, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=3}, 4={id=4, annot_uuid=e68b39a8-f61d-0057-5b51-bb3d0c6ef10a, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=4}, 5={id=5, annot_uuid=882848d9-0aba-c041-1e0b-007b7762c50e, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=5}, 6={id=6, annot_uuid=6256beb1-ae7a-e2e9-6b40-672e601c6f02, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=6}, 7={id=7, annot_uuid=e17cc5e0-b878-ac03-286c-e7903fc52994, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=7}, 8={id=8, annot_uuid=040de504-9ffc-2ed4-d2c2-73063140bb85, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=8}, 9={id=9, annot_uuid=03a17411-c226-c960-d180-9fafef88c880, indivID=02_044, label_8=zebra_plains, label_9=02_044, image_id=9}, 10={id=10, annot_uuid=a8c24041-30ab-3614-5856-f1376fd03cca, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=10}}}
- - - - - -
{id=1, annot_uuid=c544d25f-fd03-5a2d-6611-cd77430ca251, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=1}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/51e10019-968b-5f2e-2287-8432464d7547.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/c/5/c544d25f-fd03-5a2d-6611-cd77430ca251/51e10019-968b-5f2e-2287-8432464d7547.jpg<<<?????????????
Created new Occurrence 02b856d5-9c00-492b-9df1-ca1530650cfd
10-Jul-2015 10:12:16.669 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
existing indiv = 06_410
You are trying to commit an inactive transaction.
10-Jul-2015 10:12:16.684 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new encounter in shepherd.storeNewEncounter().
uniqueID:c544d25f-fd03-5a2d-6611-cd77430ca251
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 61 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 55 more
>>>>>>>>>>>>>>>>> stored encounter: c544d25f-fd03-5a2d-6611-cd77430ca251
- - - - - -
{id=2, annot_uuid=361cb5a1-9301-9bc6-919c-5d684f1c316b, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=2}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/b19fb0f4-05c1-4841-6973-b0b09d9a51b2.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/3/6/361cb5a1-9301-9bc6-919c-5d684f1c316b/b19fb0f4-05c1-4841-6973-b0b09d9a51b2.jpg<<<?????????????
10-Jul-2015 10:12:16.699 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
existing indiv = 06_410
You are trying to commit an inactive transaction.
10-Jul-2015 10:12:16.712 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@51f86b77" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new encounter in shepherd.storeNewEncounter().
uniqueID:361cb5a1-9301-9bc6-919c-5d684f1c316b
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@51f86b77" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 61 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 55 more
>>>>>>>>>>>>>>>>> stored encounter: 361cb5a1-9301-9bc6-919c-5d684f1c316b
- - - - - -
{id=3, annot_uuid=72845318-508b-18ce-5410-024bec855749, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=3}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/058b4301-8610-f1a1-2fa9-9519854d4930.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/7/2/72845318-508b-18ce-5410-024bec855749/058b4301-8610-f1a1-2fa9-9519854d4930.jpg<<<?????????????
10-Jul-2015 10:12:16.725 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
existing indiv = 06_410
You are trying to commit an inactive transaction.
10-Jul-2015 10:12:16.735 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@59e905e0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new encounter in shepherd.storeNewEncounter().
uniqueID:72845318-508b-18ce-5410-024bec855749
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@59e905e0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 61 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 55 more
>>>>>>>>>>>>>>>>> stored encounter: 72845318-508b-18ce-5410-024bec855749
- - - - - -
{id=4, annot_uuid=e68b39a8-f61d-0057-5b51-bb3d0c6ef10a, indivID=06_410, label_8=zebra_plains, label_9=06_410, image_id=4}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/911ab486-f541-f40f-8cf4-d03d6415b170.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/e/6/e68b39a8-f61d-0057-5b51-bb3d0c6ef10a/911ab486-f541-f40f-8cf4-d03d6415b170.jpg<<<?????????????
10-Jul-2015 10:12:16.746 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
existing indiv = 06_410
You are trying to commit an inactive transaction.
10-Jul-2015 10:12:16.757 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@21c8e2fd" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new encounter in shepherd.storeNewEncounter().
uniqueID:e68b39a8-f61d-0057-5b51-bb3d0c6ef10a
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@21c8e2fd" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewEncounter(Shepherd.java:113)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:242)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 61 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 55 more
>>>>>>>>>>>>>>>>> stored encounter: e68b39a8-f61d-0057-5b51-bb3d0c6ef10a
- - - - - -
{id=5, annot_uuid=882848d9-0aba-c041-1e0b-007b7762c50e, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=5}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/7588af1c-9093-74dc-932b-816488dda704.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/8/8/882848d9-0aba-c041-1e0b-007b7762c50e/7588af1c-9093-74dc-932b-816488dda704.jpg<<<?????????????
10-Jul-2015 10:12:16.810 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
10-Jul-2015 10:12:16.816 INFO [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "07_061" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:07_061
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:567)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1728)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
No such database row
org.datanucleus.exceptions.NucleusObjectNotFoundException: No such database row
at org.datanucleus.store.rdbms.request.FetchRequest.execute(FetchRequest.java:358)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.fetchObject(RDBMSPersistenceHandler.java:319)
at org.datanucleus.state.AbstractStateManager.loadFieldsFromDatastore(AbstractStateManager.java:1147)
at org.datanucleus.state.StateManagerImpl.validate(StateManagerImpl.java:4375)
at org.datanucleus.ExecutionContextImpl.findObject(ExecutionContextImpl.java:3544)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1723)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
created new indiv = 07_061
>>>>>>>>>>>>>>>>> stored encounter: 882848d9-0aba-c041-1e0b-007b7762c50e
- - - - - -
{id=6, annot_uuid=6256beb1-ae7a-e2e9-6b40-672e601c6f02, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=6}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/535fc429-6724-2653-0bf4-4a45bf7785ad.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/6/2/6256beb1-ae7a-e2e9-6b40-672e601c6f02/535fc429-6724-2653-0bf4-4a45bf7785ad.jpg<<<?????????????
10-Jul-2015 10:12:16.874 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
existing indiv = 07_061
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 6256beb1-ae7a-e2e9-6b40-672e601c6f02
- - - - - -
{id=7, annot_uuid=e17cc5e0-b878-ac03-286c-e7903fc52994, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=7}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/c3883c8e-d7e4-f06a-5422-07994933a5d4.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/e/1/e17cc5e0-b878-ac03-286c-e7903fc52994/c3883c8e-d7e4-f06a-5422-07994933a5d4.jpg<<<?????????????
10-Jul-2015 10:12:16.971 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
existing indiv = 07_061
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: e17cc5e0-b878-ac03-286c-e7903fc52994
- - - - - -
{id=8, annot_uuid=040de504-9ffc-2ed4-d2c2-73063140bb85, indivID=07_061, label_8=zebra_plains, label_9=07_061, image_id=8}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/41718ea1-57b5-8bc3-bba0-25801150573b.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/0/4/040de504-9ffc-2ed4-d2c2-73063140bb85/41718ea1-57b5-8bc3-bba0-25801150573b.jpg<<<?????????????
10-Jul-2015 10:12:17.038 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
existing indiv = 07_061
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 040de504-9ffc-2ed4-d2c2-73063140bb85
- - - - - -
{id=9, annot_uuid=03a17411-c226-c960-d180-9fafef88c880, indivID=02_044, label_8=zebra_plains, label_9=02_044, image_id=9}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/ff486ff3-3e43-8b4f-743f-7070e47b12cc.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/0/3/03a17411-c226-c960-d180-9fafef88c880/ff486ff3-3e43-8b4f-743f-7070e47b12cc.jpg<<<?????????????
10-Jul-2015 10:12:17.104 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
10-Jul-2015 10:12:17.114 INFO [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "02_044" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:02_044
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:567)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1728)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
No such database row
org.datanucleus.exceptions.NucleusObjectNotFoundException: No such database row
at org.datanucleus.store.rdbms.request.FetchRequest.execute(FetchRequest.java:358)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.fetchObject(RDBMSPersistenceHandler.java:319)
at org.datanucleus.state.AbstractStateManager.loadFieldsFromDatastore(AbstractStateManager.java:1147)
at org.datanucleus.state.StateManagerImpl.validate(StateManagerImpl.java:4375)
at org.datanucleus.ExecutionContextImpl.findObject(ExecutionContextImpl.java:3544)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1723)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
created new indiv = 02_044
>>>>>>>>>>>>>>>>> stored encounter: 03a17411-c226-c960-d180-9fafef88c880
- - - - - -
{id=10, annot_uuid=a8c24041-30ab-3614-5856-f1376fd03cca, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=10}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/faefd7b4-b7a3-33d6-d62b-c320bb024dd6.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/a/8/a8c24041-30ab-3614-5856-f1376fd03cca/faefd7b4-b7a3-33d6-d62b-c320bb024dd6.jpg<<<?????????????
10-Jul-2015 10:12:17.178 WARNING [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
I failed to create a new Occurrence in shepherd.storeNewOccurrence().
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@754c35b0" using statement "INSERT INTO ENCOUNTER (ACOUSTICTAG_ID_OID,ADDITIONALIMAGENAMES,APPROVED,BEHAVIOR,COUNTRY,DATEINMILLISECONDS,"DAY",DECIMALLATITUDE,DECIMALLONGITUDE,DISTINGUISHINGSCAR,DWCDATEADDED,DWCDATEADDEDLONG,DWCIMAGEURL,DYNAMICPROPERTIES,EVENTID,GENUS,GPSLATITUDE,GPSLONGITUDE,GUID,HASRIGHTSPOTIMAGE,HASSPOTIMAGE,HASHEDINFORMOTHERS,HASHEDPHOTOGRAPHEREMAIL,HASHEDSUBMITTEREMAIL,"HOUR",IDENTIFICATIONREMARKS,IMAGEORIGINALNAME,INDIVIDUALID,INFORMOTHERS,INTERESTEDRESEARCHERS,LIFESTAGE,LIVINGSTATUS,LOCATIONID,MAXIMUMDEPTHINMETERS,MAXIMUMELEVATIONINMETERS,MEASUREMENTUNIT,MINUTES,MMACOMPATIBLE,MODIFIED,"MONTH",NUMSPOTSLEFT,NUMSPOTSRIGHT,OCCURRENCEID,OCCURRENCEREMARKS,OKEXPOSEVIATAPIRLINK,OTHERCATALOGNUMBERS,PATTERNINGCODE,PHOTOGRAPHERADDRESS,PHOTOGRAPHEREMAIL,PHOTOGRAPHERNAME,PHOTOGRAPHERPHONE,RECORDEDBY,RELEASEDATE,RELEASEDATELONG,RESEARCHERCOMMENTS,RIGHTSPOTIMAGEFILENAME,SATELLITETAG_ID_OID,SEX,"SIZE",SIZE_GUESS,SPECIFICEPITHET,SPOTIMAGEFILENAME,"STATE",SUBMITTERADDRESS,SUBMITTEREMAIL,SUBMITTERID,SUBMITTERORGANIZATION,SUBMITTERPHONE,SUBMITTERPROJECT,UNIDENTIFIABLE,VERBATIMEVENTDATE,VERBATIMLOCALITY,"YEAR",ZEBRACLASS,CATALOGNUMBER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" failed : The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:725)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1297)
at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
at org.datanucleus.store.rdbms.scostore.JoinListStore.internalAdd(JoinListStore.java:196)
at org.datanucleus.store.rdbms.scostore.AbstractListStore.addAll(AbstractListStore.java:137)
at org.datanucleus.store.rdbms.mapping.java.CollectionMapping.postInsert(CollectionMapping.java:140)
at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:521)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
at org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
at org.ecocean.Shepherd.storeNewOccurrence(Shepherd.java:129)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:215)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 73 more
Caused by: ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'ENCOUNTER_PK' defined on 'ENCOUNTER'.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
... 67 more
10-Jul-2015 10:12:17.191 INFO [http-nio-8080-exec-10] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "07_091" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:07_091
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:567)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1728)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
NestedThrowablesStackTrace:
No such database row
org.datanucleus.exceptions.NucleusObjectNotFoundException: No such database row
at org.datanucleus.store.rdbms.request.FetchRequest.execute(FetchRequest.java:358)
at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.fetchObject(RDBMSPersistenceHandler.java:319)
at org.datanucleus.state.AbstractStateManager.loadFieldsFromDatastore(AbstractStateManager.java:1147)
at org.datanucleus.state.StateManagerImpl.validate(StateManagerImpl.java:4375)
at org.datanucleus.ExecutionContextImpl.findObject(ExecutionContextImpl.java:3544)
at org.datanucleus.api.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1723)
at org.ecocean.Shepherd.getMarkedIndividual(Shepherd.java:1658)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doPost(OccurrenceCreateIBEIS.java:223)
at org.ecocean.servlet.OccurrenceCreateIBEIS.doGet(OccurrenceCreateIBEIS.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:33)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
created new indiv = 07_091
>>>>>>>>>>>>>>>>> stored encounter: a8c24041-30ab-3614-5856-f1376fd03cca
10-Jul-2015 10:12:18.482 INFO [http-nio-8080-exec-1] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "02b856d5-9c00-492b-9df1-ca1530650cfd" not found !
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
[class org.ecocean.Encounter] roles for user '': []
{sex=deny, location=deny}
[class org.ecocean.MarkedIndividual] roles for user '': []
{}
[class org.ecocean.SinglePhotoVideo] roles for user '': []
{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment