Skip to content

Instantly share code, notes, and snippets.

@Erotemic
Created July 10, 2015 14:27
Show Gist options
  • Save Erotemic/c823b55b27f29f75008e to your computer and use it in GitHub Desktop.
Save Erotemic/c823b55b27f29f75008e to your computer and use it in GitHub Desktop.
catilina.out after images error
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 '': []
{}
10-Jul-2015 10:17:07.911 INFO [http-nio-8080-exec-5] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "a626c327-3ffd-4dfd-834f-db9c0b5febdf" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:a626c327-3ffd-4dfd-834f-db9c0b5febdf
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
[a626c327-3ffd-4dfd-834f-db9c0b5febdf] New Encounter 5
found=43
IMG ID >>12
.... aid=12
(END IMG ID)<<12
IMG ID >>13
.... aid=13
(END IMG ID)<<13
IMG ID >>14
.... aid=14
(END IMG ID)<<14
IMG ID >>15
.... aid=15
(END IMG ID)<<15
IMG ID >>17
.... aid=17
(END IMG ID)<<17
IMG ID >>16
.... aid=16
(END IMG ID)<<16
IMG ID >>19
.... aid=19
(END IMG ID)<<19
IMG ID >>18
.... aid=18
(END IMG ID)<<18
IMG ID >>21
.... aid=21
(END IMG ID)<<21
IMG ID >>20
.... aid=20
(END IMG ID)<<20
IMG ID >>23
.... aid=23
(END IMG ID)<<23
IMG ID >>22
.... aid=22
(END IMG ID)<<22
IMG ID >>25
.... aid=25
(END IMG ID)<<25
IMG ID >>24
.... aid=24
(END IMG ID)<<24
IMG ID >>27
.... aid=27
(END IMG ID)<<27
IMG ID >>26
.... aid=26
(END IMG ID)<<26
IMG ID >>29
.... aid=29
(END IMG ID)<<29
IMG ID >>28
.... aid=28
(END IMG ID)<<28
IMG ID >>30
.... aid=30
(END IMG ID)<<30
12: value = 07_091
12: value = zebra_plains
13: value = 07_091
13: value = zebra_plains
14: value = 07_091
14: value = zebra_plains
15: value = 07_091
15: value = zebra_plains
17: value = 07_233
17: value = zebra_plains
16: value = 04_110
16: value = zebra_plains
19: value = 07_233
19: value = zebra_plains
18: value = 07_233
18: value = zebra_plains
21: value = 07_233
21: value = zebra_plains
20: value = 07_233
20: value = zebra_plains
23: value = 07_267
23: value = zebra_plains
22: value = 07_267
22: value = zebra_plains
25: value = 07_267
25: value = zebra_plains
24: value = 07_267
24: value = zebra_plains
27: value = 07_272
27: value = zebra_plains
26: value = 07_267
26: value = zebra_plains
29: value = 07_300
29: value = zebra_plains
28: value = 07_272
28: value = zebra_plains
30: value = 07_300
30: value = zebra_plains
------
{imgs={12={image_time_posix=1272463287, id=12, image_gps_lon=-1.0, image_uri=e18221c4-070e-ab25-2698-01abdbc3bf2d.jpg, image_width=2288, image_height=1712, image_gps_lat=-1.0, image_original_name=Nid-07_091--Cid-3.JPG}, 13={image_time_posix=1311181252, id=13, image_gps_lon=-1.0, image_uri=0a4beb29-8e08-9112-f4b7-f2b32e61d23c.jpg, image_width=2288, image_height=1712, image_gps_lat=-1.0, image_original_name=Nid-07_091--Cid-4.JPG}, 14={image_time_posix=1364395206, id=14, image_gps_lon=-1.0, image_uri=fc076532-22b0-f236-dedb-1e8d48a0f5a8.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_091--Cid-5.JPG}, 15={image_time_posix=1177873414, id=15, image_gps_lon=-1.0, image_uri=7d2ce715-74a2-0ec8-8bd0-df0d4931978c.jpg, image_width=400, image_height=219, image_gps_lat=-1.0, image_original_name=Nid-07_091--Cid-foal.JPG}, 17={image_time_posix=1348155496, id=17, image_gps_lon=-1.0, image_uri=bb98e991-de1a-e4ef-019a-76ce40651072.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_233--Cid-1.JPG}, 16={image_time_posix=-1, id=16, image_gps_lon=-1.0, image_uri=3c68c0e4-a33f-2be2-1d45-d759e1231a93.jpg, image_width=280, image_height=153, image_gps_lat=-1.0, image_original_name=Nid-04_110--Cid-mom-04_110.jpg}, 19={image_time_posix=1350584446, id=19, image_gps_lon=-1.0, image_uri=b22cab0d-efee-9a5b-8c13-458d5810cf9f.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_233--Cid-3.JPG}, 18={image_time_posix=1272465646, id=18, image_gps_lon=-1.0, image_uri=1cc0b9a1-8e74-ca07-6838-2b97c6994f56.jpg, image_width=2288, image_height=1712, image_gps_lat=-1.0, image_original_name=Nid-07_233--Cid-2.JPG}, 21={image_time_posix=1187954564, id=21, image_gps_lon=-1.0, image_uri=c3c4c49a-2cbe-6780-d3fa-a445647d7fc5.jpg, image_width=405, image_height=297, image_gps_lat=-1.0, image_original_name=Nid-07_233--Cid-foal.JPG}, 20={image_time_posix=1355928696, id=20, image_gps_lon=-1.0, image_uri=5cbf1532-2847-e371-6017-6b1a3f5cb239.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_233--Cid-4.jpg}, 23={image_time_posix=1272460368, id=23, image_gps_lon=-1.0, image_uri=557091c2-adee-0b9d-c8c2-2f2d03d9edd2.jpg, image_width=2288, image_height=1712, image_gps_lat=-1.0, image_original_name=Nid-07_267--Cid-2.JPG}, 22={image_time_posix=1272459377, id=22, image_gps_lon=-1.0, image_uri=0cf4090b-40e4-168c-3e57-742bd99149f3.jpg, image_width=888, image_height=967, image_gps_lat=-1.0, image_original_name=Nid-07_267--Cid-1.JPG}, 25={image_time_posix=1353508813, id=25, image_gps_lon=-1.0, image_uri=f82fd976-612e-8529-3b75-c62a08de4f0d.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_267--Cid-4.JPG}, 24={image_time_posix=1314204128, id=24, image_gps_lon=-1.0, image_uri=32ce6e69-8f77-2ef3-f623-c7bd83561bf3.jpg, image_width=2288, image_height=1712, image_gps_lat=-1.0, image_original_name=Nid-07_267--Cid-3.JPG}, 27={image_time_posix=1348160161, id=27, image_gps_lon=-1.0, image_uri=5ccadbc6-9fb0-baee-8068-d52892990435.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_272--Cid-1.JPG}, 26={image_time_posix=1353508841, id=26, image_gps_lon=-1.0, image_uri=4c5158fb-8307-cb72-39e7-f0577fee9bbf.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_267--Cid-5.JPG}, 29={image_time_posix=1353509008, id=29, image_gps_lon=-1.0, image_uri=aee0181c-2355-63ff-f22d-46c3ba80ad9d.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_300--Cid-1.JPG}, 28={image_time_posix=1192019835, id=28, image_gps_lon=-1.0, image_uri=bde0f9f6-51a1-33cf-2cfb-f1cb94843a45.jpg, image_width=350, image_height=211, image_gps_lat=-1.0, image_original_name=Nid-07_272--Cid-foal.JPG}, 30={image_time_posix=1353509031, id=30, image_gps_lon=-1.0, image_uri=4a7ffae1-b0ec-0023-2543-ae63b20a626c.jpg, image_width=4288, image_height=3216, image_gps_lat=-1.0, image_original_name=Nid-07_300--Cid-2.JPG}}, anns={12={id=12, annot_uuid=65577818-8ee7-f378-ab96-58b0befdc95d, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=12}, 13={id=13, annot_uuid=b01313cb-56d5-3e0e-d689-a7bf72aeb315, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=13}, 14={id=14, annot_uuid=c7fc724f-b6cb-6b56-6f5e-9683e5a60302, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=14}, 15={id=15, annot_uuid=927cb0b3-3a08-0398-274c-98aaf2237e17, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=15}, 17={id=17, annot_uuid=5a40c814-f5b8-405c-d810-7c54fcc32667, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=17}, 16={id=16, annot_uuid=5deba36a-508a-5352-38af-66efb3fea980, indivID=04_110, label_8=zebra_plains, label_9=04_110, image_id=16}, 19={id=19, annot_uuid=e529cad9-0417-a794-22b0-3c1a01a95bae, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=19}, 18={id=18, annot_uuid=22ca8566-32b7-cd68-fe20-74f1794b3848, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=18}, 21={id=21, annot_uuid=4f971492-560e-e204-9192-e850b0e887cf, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=21}, 20={id=20, annot_uuid=7d824649-b707-c764-4d7f-0e57d70fd2a9, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=20}, 23={id=23, annot_uuid=bb7b6193-a4be-6b5e-389b-5dfca38821eb, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=23}, 22={id=22, annot_uuid=a7de39d7-9790-fe31-2967-f61668db6025, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=22}, 25={id=25, annot_uuid=5f052f15-4174-1f92-7534-ca354c25beed, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=25}, 24={id=24, annot_uuid=87864b53-3783-a578-fa6c-4b49d96cc024, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=24}, 27={id=27, annot_uuid=73633b12-4339-171b-af0c-59c277a3e555, indivID=07_272, label_8=zebra_plains, label_9=07_272, image_id=27}, 26={id=26, annot_uuid=c3bffd49-157c-9624-f914-5cb48f982e52, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=26}, 29={id=29, annot_uuid=35dd758e-96d2-0845-53d1-9f55f69bb865, indivID=07_300, label_8=zebra_plains, label_9=07_300, image_id=29}, 28={id=28, annot_uuid=f88a5683-5605-2c26-9a03-3d38dcc7044e, indivID=07_272, label_8=zebra_plains, label_9=07_272, image_id=28}, 30={id=30, annot_uuid=436f6cce-646f-aa28-2c95-ad6f2339f129, indivID=07_300, label_8=zebra_plains, label_9=07_300, image_id=30}}}
- - - - - -
{id=12, annot_uuid=65577818-8ee7-f378-ab96-58b0befdc95d, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=12}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/e18221c4-070e-ab25-2698-01abdbc3bf2d.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/6/5/65577818-8ee7-f378-ab96-58b0befdc95d/e18221c4-070e-ab25-2698-01abdbc3bf2d.jpg<<<?????????????
Created new Occurrence a626c327-3ffd-4dfd-834f-db9c0b5febdf
existing indiv = 07_091
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 65577818-8ee7-f378-ab96-58b0befdc95d
- - - - - -
{id=13, annot_uuid=b01313cb-56d5-3e0e-d689-a7bf72aeb315, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=13}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/0a4beb29-8e08-9112-f4b7-f2b32e61d23c.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/b/0/b01313cb-56d5-3e0e-d689-a7bf72aeb315/0a4beb29-8e08-9112-f4b7-f2b32e61d23c.jpg<<<?????????????
existing indiv = 07_091
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: b01313cb-56d5-3e0e-d689-a7bf72aeb315
- - - - - -
{id=14, annot_uuid=c7fc724f-b6cb-6b56-6f5e-9683e5a60302, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=14}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/fc076532-22b0-f236-dedb-1e8d48a0f5a8.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/c/7/c7fc724f-b6cb-6b56-6f5e-9683e5a60302/fc076532-22b0-f236-dedb-1e8d48a0f5a8.jpg<<<?????????????
existing indiv = 07_091
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: c7fc724f-b6cb-6b56-6f5e-9683e5a60302
- - - - - -
{id=15, annot_uuid=927cb0b3-3a08-0398-274c-98aaf2237e17, indivID=07_091, label_8=zebra_plains, label_9=07_091, image_id=15}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/7d2ce715-74a2-0ec8-8bd0-df0d4931978c.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/9/2/927cb0b3-3a08-0398-274c-98aaf2237e17/7d2ce715-74a2-0ec8-8bd0-df0d4931978c.jpg<<<?????????????
existing indiv = 07_091
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 927cb0b3-3a08-0398-274c-98aaf2237e17
- - - - - -
{id=17, annot_uuid=5a40c814-f5b8-405c-d810-7c54fcc32667, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=17}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/bb98e991-de1a-e4ef-019a-76ce40651072.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/5/a/5a40c814-f5b8-405c-d810-7c54fcc32667/bb98e991-de1a-e4ef-019a-76ce40651072.jpg<<<?????????????
10-Jul-2015 10:17:08.281 INFO [http-nio-8080-exec-5] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "07_233" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:07_233
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_233
>>>>>>>>>>>>>>>>> stored encounter: 5a40c814-f5b8-405c-d810-7c54fcc32667
- - - - - -
{id=16, annot_uuid=5deba36a-508a-5352-38af-66efb3fea980, indivID=04_110, label_8=zebra_plains, label_9=04_110, image_id=16}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/3c68c0e4-a33f-2be2-1d45-d759e1231a93.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/5/d/5deba36a-508a-5352-38af-66efb3fea980/3c68c0e4-a33f-2be2-1d45-d759e1231a93.jpg<<<?????????????
10-Jul-2015 10:17:08.330 INFO [http-nio-8080-exec-5] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "04_110" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:04_110
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 = 04_110
>>>>>>>>>>>>>>>>> stored encounter: 5deba36a-508a-5352-38af-66efb3fea980
- - - - - -
{id=19, annot_uuid=e529cad9-0417-a794-22b0-3c1a01a95bae, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=19}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/b22cab0d-efee-9a5b-8c13-458d5810cf9f.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/e/5/e529cad9-0417-a794-22b0-3c1a01a95bae/b22cab0d-efee-9a5b-8c13-458d5810cf9f.jpg<<<?????????????
existing indiv = 07_233
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: e529cad9-0417-a794-22b0-3c1a01a95bae
- - - - - -
{id=18, annot_uuid=22ca8566-32b7-cd68-fe20-74f1794b3848, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=18}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/1cc0b9a1-8e74-ca07-6838-2b97c6994f56.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/2/2/22ca8566-32b7-cd68-fe20-74f1794b3848/1cc0b9a1-8e74-ca07-6838-2b97c6994f56.jpg<<<?????????????
existing indiv = 07_233
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 22ca8566-32b7-cd68-fe20-74f1794b3848
- - - - - -
{id=21, annot_uuid=4f971492-560e-e204-9192-e850b0e887cf, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=21}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/c3c4c49a-2cbe-6780-d3fa-a445647d7fc5.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/4/f/4f971492-560e-e204-9192-e850b0e887cf/c3c4c49a-2cbe-6780-d3fa-a445647d7fc5.jpg<<<?????????????
existing indiv = 07_233
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 4f971492-560e-e204-9192-e850b0e887cf
- - - - - -
{id=20, annot_uuid=7d824649-b707-c764-4d7f-0e57d70fd2a9, indivID=07_233, label_8=zebra_plains, label_9=07_233, image_id=20}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/5cbf1532-2847-e371-6017-6b1a3f5cb239.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/7/d/7d824649-b707-c764-4d7f-0e57d70fd2a9/5cbf1532-2847-e371-6017-6b1a3f5cb239.jpg<<<?????????????
existing indiv = 07_233
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 7d824649-b707-c764-4d7f-0e57d70fd2a9
- - - - - -
{id=23, annot_uuid=bb7b6193-a4be-6b5e-389b-5dfca38821eb, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=23}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/557091c2-adee-0b9d-c8c2-2f2d03d9edd2.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/b/b/bb7b6193-a4be-6b5e-389b-5dfca38821eb/557091c2-adee-0b9d-c8c2-2f2d03d9edd2.jpg<<<?????????????
10-Jul-2015 10:17:08.677 INFO [http-nio-8080-exec-5] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "07_267" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:07_267
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_267
>>>>>>>>>>>>>>>>> stored encounter: bb7b6193-a4be-6b5e-389b-5dfca38821eb
- - - - - -
{id=22, annot_uuid=a7de39d7-9790-fe31-2967-f61668db6025, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=22}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/0cf4090b-40e4-168c-3e57-742bd99149f3.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/a/7/a7de39d7-9790-fe31-2967-f61668db6025/0cf4090b-40e4-168c-3e57-742bd99149f3.jpg<<<?????????????
existing indiv = 07_267
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: a7de39d7-9790-fe31-2967-f61668db6025
- - - - - -
{id=25, annot_uuid=5f052f15-4174-1f92-7534-ca354c25beed, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=25}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/f82fd976-612e-8529-3b75-c62a08de4f0d.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/5/f/5f052f15-4174-1f92-7534-ca354c25beed/f82fd976-612e-8529-3b75-c62a08de4f0d.jpg<<<?????????????
existing indiv = 07_267
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 5f052f15-4174-1f92-7534-ca354c25beed
- - - - - -
{id=24, annot_uuid=87864b53-3783-a578-fa6c-4b49d96cc024, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=24}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/32ce6e69-8f77-2ef3-f623-c7bd83561bf3.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/8/7/87864b53-3783-a578-fa6c-4b49d96cc024/32ce6e69-8f77-2ef3-f623-c7bd83561bf3.jpg<<<?????????????
existing indiv = 07_267
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 87864b53-3783-a578-fa6c-4b49d96cc024
- - - - - -
{id=27, annot_uuid=73633b12-4339-171b-af0c-59c277a3e555, indivID=07_272, label_8=zebra_plains, label_9=07_272, image_id=27}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/5ccadbc6-9fb0-baee-8068-d52892990435.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/7/3/73633b12-4339-171b-af0c-59c277a3e555/5ccadbc6-9fb0-baee-8068-d52892990435.jpg<<<?????????????
10-Jul-2015 10:17:08.995 INFO [http-nio-8080-exec-5] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "07_272" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:07_272
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_272
>>>>>>>>>>>>>>>>> stored encounter: 73633b12-4339-171b-af0c-59c277a3e555
- - - - - -
{id=26, annot_uuid=c3bffd49-157c-9624-f914-5cb48f982e52, indivID=07_267, label_8=zebra_plains, label_9=07_267, image_id=26}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/4c5158fb-8307-cb72-39e7-f0577fee9bbf.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/c/3/c3bffd49-157c-9624-f914-5cb48f982e52/4c5158fb-8307-cb72-39e7-f0577fee9bbf.jpg<<<?????????????
existing indiv = 07_267
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: c3bffd49-157c-9624-f914-5cb48f982e52
- - - - - -
{id=29, annot_uuid=35dd758e-96d2-0845-53d1-9f55f69bb865, indivID=07_300, label_8=zebra_plains, label_9=07_300, image_id=29}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/aee0181c-2355-63ff-f22d-46c3ba80ad9d.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/3/5/35dd758e-96d2-0845-53d1-9f55f69bb865/aee0181c-2355-63ff-f22d-46c3ba80ad9d.jpg<<<?????????????
10-Jul-2015 10:17:09.154 INFO [http-nio-8080-exec-5] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "07_300" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:07_300
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_300
>>>>>>>>>>>>>>>>> stored encounter: 35dd758e-96d2-0845-53d1-9f55f69bb865
- - - - - -
{id=28, annot_uuid=f88a5683-5605-2c26-9a03-3d38dcc7044e, indivID=07_272, label_8=zebra_plains, label_9=07_272, image_id=28}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/bde0f9f6-51a1-33cf-2cfb-f1cb94843a45.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/f/8/f88a5683-5605-2c26-9a03-3d38dcc7044e/bde0f9f6-51a1-33cf-2cfb-f1cb94843a45.jpg<<<?????????????
existing indiv = 07_272
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: f88a5683-5605-2c26-9a03-3d38dcc7044e
- - - - - -
{id=30, annot_uuid=436f6cce-646f-aa28-2c95-ad6f2339f129, indivID=07_300, label_8=zebra_plains, label_9=07_300, image_id=30}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/4a7ffae1-b0ec-0023-2543-ae63b20a626c.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/4/3/436f6cce-646f-aa28-2c95-ad6f2339f129/4a7ffae1-b0ec-0023-2543-ae63b20a626c.jpg<<<?????????????
existing indiv = 07_300
You are trying to commit an inactive transaction.
>>>>>>>>>>>>>>>>> stored encounter: 436f6cce-646f-aa28-2c95-ad6f2339f129
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 '': []
{}
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 = '65577818-8ee7-f378-ab96-58b0befdc95d' 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
10-Jul-2015 10:17:22.880 INFO [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "e08671c7-f2ce-426e-aca2-eb77ae58aa1f" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:e08671c7-f2ce-426e-aca2-eb77ae58aa1f
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
[a626c327-3ffd-4dfd-834f-db9c0b5febdf] New Encounter 5
[e08671c7-f2ce-426e-aca2-eb77ae58aa1f] New Encounter 6
found=44
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
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={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={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=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<<<?????????????
Created new Occurrence e08671c7-f2ce-426e-aca2-eb77ae58aa1f
10-Jul-2015 10:17:22.890 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@745ef533" 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@745ef533" 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.
10-Jul-2015 10:17:22.906 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@745ef533" 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:6256beb1-ae7a-e2e9-6b40-672e601c6f02
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@745ef533" 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: 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:17:22.917 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@745ef533" 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@745ef533" 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.
10-Jul-2015 10:17:22.927 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@58ee0ea1" 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:e17cc5e0-b878-ac03-286c-e7903fc52994
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@58ee0ea1" 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: 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:17:22.937 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@745ef533" 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@745ef533" 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.
10-Jul-2015 10:17:22.949 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@2970cbb" 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:040de504-9ffc-2ed4-d2c2-73063140bb85
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@2970cbb" 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: 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:17:22.962 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@745ef533" 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@745ef533" 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 = 02_044
You are trying to commit an inactive transaction.
10-Jul-2015 10:17:22.974 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@727048f9" 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:03a17411-c226-c960-d180-9fafef88c880
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@727048f9" 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: 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:17:22.984 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@745ef533" 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@745ef533" 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_091
You are trying to commit an inactive transaction.
10-Jul-2015 10:17:22.997 WARNING [http-nio-8080-exec-4] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@6726e58f" 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:a8c24041-30ab-3614-5856-f1376fd03cca
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@6726e58f" 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: a8c24041-30ab-3614-5856-f1376fd03cca
10-Jul-2015 10:17:23.090 INFO [http-nio-8080-exec-8] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "e08671c7-f2ce-426e-aca2-eb77ae58aa1f" 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 '': []
{}
10-Jul-2015 10:17:38.747 INFO [http-nio-8080-exec-6] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "631d8325-02a1-43f9-8f7c-723bc0226a78" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:631d8325-02a1-43f9-8f7c-723bc0226a78
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
[a626c327-3ffd-4dfd-834f-db9c0b5febdf] New Encounter 5
[e08671c7-f2ce-426e-aca2-eb77ae58aa1f] New Encounter 6
[631d8325-02a1-43f9-8f7c-723bc0226a78] New Encounter 7
found=45
IMG ID >>9
.... aid=9
(END IMG ID)<<9
9: value = 02_044
9: value = zebra_plains
------
{imgs={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}}, anns={9={id=9, annot_uuid=03a17411-c226-c960-d180-9fafef88c880, indivID=02_044, label_8=zebra_plains, label_9=02_044, image_id=9}}}
- - - - - -
{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<<<?????????????
Created new Occurrence 631d8325-02a1-43f9-8f7c-723bc0226a78
10-Jul-2015 10:17:38.759 WARNING [http-nio-8080-exec-6] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@3153d223" 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@3153d223" 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 = 02_044
You are trying to commit an inactive transaction.
10-Jul-2015 10:17:38.779 WARNING [http-nio-8080-exec-6] org.datanucleus.store.rdbms.request.InsertRequest.execute Insert of object "org.ecocean.Encounter@3153d223" 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:03a17411-c226-c960-d180-9fafef88c880
javax.jdo.JDODataStoreException: Insert of object "org.ecocean.Encounter@3153d223" 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: 03a17411-c226-c960-d180-9fafef88c880
10-Jul-2015 10:17:38.871 INFO [http-nio-8080-exec-2] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "631d8325-02a1-43f9-8f7c-723bc0226a78" 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 '': []
{}
10-Jul-2015 10:17:49.676 INFO [http-nio-8080-exec-9] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "2bf9e863-38ef-40f4-b043-e65f4c4ac59e" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:2bf9e863-38ef-40f4-b043-e65f4c4ac59e
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
[a626c327-3ffd-4dfd-834f-db9c0b5febdf] New Encounter 5
[e08671c7-f2ce-426e-aca2-eb77ae58aa1f] New Encounter 6
[631d8325-02a1-43f9-8f7c-723bc0226a78] New Encounter 7
[2bf9e863-38ef-40f4-b043-e65f4c4ac59e] New Encounter 8
found=46
IMG ID >>42
.... aid=42
(END IMG ID)<<42
IMG ID >>41
.... aid=41
(END IMG ID)<<41
42: value = 02_1110
42: value = zebra_plains
41: value = 08_016
41: value = zebra_plains
------
{imgs={42={image_time_posix=1350572383, id=42, image_gps_lon=-1.0, image_uri=6232e568-428a-cbcf-cb94-58de57105294.jpg, image_width=448, image_height=278, image_gps_lat=-1.0, image_original_name=Nid-02_1110--Cid-mom-02_1110.JPG}, 41={image_time_posix=1202398734, id=41, image_gps_lon=-1.0, image_uri=41dd5c17-54e0-fead-325c-b4be78a11f5d.jpg, image_width=450, image_height=363, image_gps_lat=-1.0, image_original_name=Nid-08_016--Cid-foal.JPG}}, anns={42={id=42, annot_uuid=ebf221d0-4f40-c567-eba9-73fd394e4a76, indivID=02_1110, label_8=zebra_plains, label_9=02_1110, image_id=42}, 41={id=41, annot_uuid=e615a2fe-a1fd-6e1b-7839-bf6be8ca2e2b, indivID=08_016, label_8=zebra_plains, label_9=08_016, image_id=41}}}
- - - - - -
{id=42, annot_uuid=ebf221d0-4f40-c567-eba9-73fd394e4a76, indivID=02_1110, label_8=zebra_plains, label_9=02_1110, image_id=42}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/6232e568-428a-cbcf-cb94-58de57105294.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/e/b/ebf221d0-4f40-c567-eba9-73fd394e4a76/6232e568-428a-cbcf-cb94-58de57105294.jpg<<<?????????????
Created new Occurrence 2bf9e863-38ef-40f4-b043-e65f4c4ac59e
10-Jul-2015 10:17:49.718 INFO [http-nio-8080-exec-9] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "02_1110" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:02_1110
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_1110
>>>>>>>>>>>>>>>>> stored encounter: ebf221d0-4f40-c567-eba9-73fd394e4a76
- - - - - -
{id=41, annot_uuid=e615a2fe-a1fd-6e1b-7839-bf6be8ca2e2b, indivID=08_016, label_8=zebra_plains, label_9=08_016, image_id=41}
FROM /media/raid/work/PZ_MTEST/_ibsdb/images/41dd5c17-54e0-fead-325c-b4be78a11f5d.jpg
/home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/shepherd_data_dir/encounters/e/6/e615a2fe-a1fd-6e1b-7839-bf6be8ca2e2b/41dd5c17-54e0-fead-325c-b4be78a11f5d.jpg<<<?????????????
10-Jul-2015 10:17:49.781 INFO [http-nio-8080-exec-9] org.datanucleus.store.rdbms.request.FetchRequest.execute Object with id "08_016" not found !
javax.jdo.JDOObjectNotFoundException: No such database row
FailedObject:08_016
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 = 08_016
>>>>>>>>>>>>>>>>> stored encounter: e615a2fe-a1fd-6e1b-7839-bf6be8ca2e2b
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
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 = 'ebf221d0-4f40-c567-eba9-73fd394e4a76' 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)
[class org.ecocean.Encounter] roles for user '': [] 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)
{sex=deny, location=deny} 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
[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...
Error encountered when trying to execute getAllEncounters(Query). Returning a null collection.
javax.jdo.JDODataStoreException: Iteration request failed : SELECT 'org.ecocean.SinglePhotoVideo' AS NUCLEUS_TYPE,A2.COLLECTIONCODE,A2.COLLECTIONID,A2.CORRESPONDINGENCOUNTERNUMBER,A1.DATACOLLECTIONEVENTID,A2.DATASETID,A2.DATASETNAME,A2.EVENTENDDATE,A2.EVENTREMARKS,A2.EVENTSTARTDATE,A2.FIELDNOTES,A2.FIELDNUMBER,A2.INSTITUTIONCODE,A2.INSTITUTIONID,A2.SAMPLINGEFFORT,A2.SAMPLINGPROTOCOL,A2."TYPE",A1.COPYRIGHTOWNER,A1.COPYRIGHTSTATEMENT,A1.CORRESPONDINGSTORYID,A1.CORRESPONDINGUSERNAME,A1.FILENAME,A1.FULLFILESYSTEMPATH,A0.CATALOGNUMBER_OID,A0.IDX AS NUCORDER0 FROM ENCOUNTER_IMAGES A0 INNER JOIN SINGLEPHOTOVIDEO A1 ON A0.DATACOLLECTIONEVENTID_EID = A1.DATACOLLECTIONEVENTID INNER JOIN DATACOLLECTIONEVENT A2 ON A1.DATACOLLECTIONEVENTID = A2.DATACOLLECTIONEVENTID WHERE A0.IDX >= 0 AND EXISTS (SELECT 'org.ecocean.Encounter' AS NUCLEUS_TYPE,A0_SUB.CATALOGNUMBER AS DN_APPID FROM ENCOUNTER A0_SUB WHERE A0_SUB."STATE" = 'unapproved' AND A0.CATALOGNUMBER_OID = A0_SUB.CATALOGNUMBER) ORDER BY NUCORDER0
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:353)
at org.ecocean.Shepherd.getAllEncounters(Shepherd.java:1118)
at org.ecocean.EncounterQueryProcessor.processQuery(EncounterQueryProcessor.java:1322)
at org.apache.jsp.encounters.searchResults_jsp._jspService(searchResults_jsp.java:165)
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.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
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.executeWithMap(Query.java:1747)
at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:336)
at org.ecocean.Shepherd.getAllEncounters(Shepherd.java:1118)
at org.ecocean.EncounterQueryProcessor.processQuery(EncounterQueryProcessor.java:1322)
at org.apache.jsp.encounters.searchResults_jsp._jspService(searchResults_jsp.java:165)
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.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
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)
... 71 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)
... 65 more
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
10-Jul-2015 10:18:01.442 INFO [http-nio-8080-exec-1] 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 10:18:01.445 INFO [http-nio-8080-exec-1] 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 10:18:01.447 INFO [http-nio-8080-exec-1] 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 10:18:01.646 INFO [http-nio-8080-exec-8] org.ecocean.servlet.RestServlet.init REST : Creating PMF for factory=ShepherdPMF
Error encountered when trying to execute getAllEncounters(Query). Returning a null collection.
javax.jdo.JDODataStoreException: Iteration request failed : SELECT 'org.ecocean.SinglePhotoVideo' AS NUCLEUS_TYPE,A2.COLLECTIONCODE,A2.COLLECTIONID,A2.CORRESPONDINGENCOUNTERNUMBER,A1.DATACOLLECTIONEVENTID,A2.DATASETID,A2.DATASETNAME,A2.EVENTENDDATE,A2.EVENTREMARKS,A2.EVENTSTARTDATE,A2.FIELDNOTES,A2.FIELDNUMBER,A2.INSTITUTIONCODE,A2.INSTITUTIONID,A2.SAMPLINGEFFORT,A2.SAMPLINGPROTOCOL,A2."TYPE",A1.COPYRIGHTOWNER,A1.COPYRIGHTSTATEMENT,A1.CORRESPONDINGSTORYID,A1.CORRESPONDINGUSERNAME,A1.FILENAME,A1.FULLFILESYSTEMPATH,A0.CATALOGNUMBER_OID,A0.IDX AS NUCORDER0 FROM ENCOUNTER_IMAGES A0 INNER JOIN SINGLEPHOTOVIDEO A1 ON A0.DATACOLLECTIONEVENTID_EID = A1.DATACOLLECTIONEVENTID INNER JOIN DATACOLLECTIONEVENT A2 ON A1.DATACOLLECTIONEVENTID = A2.DATACOLLECTIONEVENTID WHERE A0.IDX >= 0 AND EXISTS (SELECT 'org.ecocean.Encounter' AS NUCLEUS_TYPE,A0_SUB.CATALOGNUMBER AS DN_APPID FROM ENCOUNTER A0_SUB WHERE A0_SUB."STATE" = 'approved' AND A0.CATALOGNUMBER_OID = A0_SUB.CATALOGNUMBER) ORDER BY NUCORDER0
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:353)
at org.ecocean.Shepherd.getAllEncounters(Shepherd.java:1118)
at org.ecocean.EncounterQueryProcessor.processQuery(EncounterQueryProcessor.java:1322)
at org.apache.jsp.encounters.searchResults_jsp._jspService(searchResults_jsp.java:165)
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.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
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.executeWithMap(Query.java:1747)
at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:336)
at org.ecocean.Shepherd.getAllEncounters(Shepherd.java:1118)
at org.ecocean.EncounterQueryProcessor.processQuery(EncounterQueryProcessor.java:1322)
at org.apache.jsp.encounters.searchResults_jsp._jspService(searchResults_jsp.java:165)
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.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
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)
... 71 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)
... 65 more
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
10-Jul-2015 10:18:07.233 INFO [http-nio-8080-exec-1] 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 10:18:07.235 INFO [http-nio-8080-exec-1] 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 10:18:07.236 INFO [http-nio-8080-exec-1] 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]
{}
Error encountered when trying to execute getAllEncounters(Query). Returning a null collection.
javax.jdo.JDODataStoreException: Iteration request failed : SELECT 'org.ecocean.SinglePhotoVideo' AS NUCLEUS_TYPE,A2.COLLECTIONCODE,A2.COLLECTIONID,A2.CORRESPONDINGENCOUNTERNUMBER,A1.DATACOLLECTIONEVENTID,A2.DATASETID,A2.DATASETNAME,A2.EVENTENDDATE,A2.EVENTREMARKS,A2.EVENTSTARTDATE,A2.FIELDNOTES,A2.FIELDNUMBER,A2.INSTITUTIONCODE,A2.INSTITUTIONID,A2.SAMPLINGEFFORT,A2.SAMPLINGPROTOCOL,A2."TYPE",A1.COPYRIGHTOWNER,A1.COPYRIGHTSTATEMENT,A1.CORRESPONDINGSTORYID,A1.CORRESPONDINGUSERNAME,A1.FILENAME,A1.FULLFILESYSTEMPATH,A0.CATALOGNUMBER_OID,A0.IDX AS NUCORDER0 FROM ENCOUNTER_IMAGES A0 INNER JOIN SINGLEPHOTOVIDEO A1 ON A0.DATACOLLECTIONEVENTID_EID = A1.DATACOLLECTIONEVENTID INNER JOIN DATACOLLECTIONEVENT A2 ON A1.DATACOLLECTIONEVENTID = A2.DATACOLLECTIONEVENTID WHERE A0.IDX >= 0 AND EXISTS (SELECT 'org.ecocean.Encounter' AS NUCLEUS_TYPE,A0_SUB.CATALOGNUMBER AS DN_APPID FROM ENCOUNTER A0_SUB WHERE A0_SUB."STATE" = 'unidentifiable' AND A0.CATALOGNUMBER_OID = A0_SUB.CATALOGNUMBER) ORDER BY NUCORDER0
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546)
at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:353)
at org.ecocean.Shepherd.getAllEncounters(Shepherd.java:1118)
at org.ecocean.EncounterQueryProcessor.processQuery(EncounterQueryProcessor.java:1322)
at org.apache.jsp.encounters.searchResults_jsp._jspService(searchResults_jsp.java:165)
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.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
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.executeWithMap(Query.java:1747)
at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:336)
at org.ecocean.Shepherd.getAllEncounters(Shepherd.java:1118)
at org.ecocean.EncounterQueryProcessor.processQuery(EncounterQueryProcessor.java:1322)
at org.apache.jsp.encounters.searchResults_jsp._jspService(searchResults_jsp.java:165)
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.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
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)
... 71 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)
... 65 more
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
10-Jul-2015 10:18:08.921 INFO [http-nio-8080-exec-4] 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 10:18:08.923 INFO [http-nio-8080-exec-4] 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 10:18:08.924 INFO [http-nio-8080-exec-4] 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]
{}
IndividualQueryProcessor filter: SELECT FROM org.ecocean.MarkedIndividual WHERE encounters.contains(enc) VARIABLES org.ecocean.Encounter enc
reading file??? /home/joncrall/code/Wildbook/apache-tomcat-8.0.24/webapps/ibeis/WEB-INF/classes/apiaccess.xml
10-Jul-2015 10:24:20.162 INFO [http-nio-8080-exec-3] 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 10:24:20.163 INFO [http-nio-8080-exec-3] 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 10:24:20.164 INFO [http-nio-8080-exec-3] 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]
{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment