Uploaded image for project: 'MyCoRe'
  1. MCR-594

Verletzung des "alles oder gar nicht" Prinzips

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 2015.11
    • Component/s: None
    • Labels:

      Description

      Mycore-Version: 2.1.80-SNAPSHOT

      Ich wollte ein Mcr-Objekt (z.B abc_document_000) anlegen und ein Bild daran hängen. Klappte alles bis zur Workflowansicht. Ein Klick auf
      "Laden dieses Dokumentes in den Server" warf den unten gelisteten Error aus. In diesem konkreten Fall konnte eine im Laufzeit notwendige
      Klasse nicht gefunden werden und demzufolge der Exif-Anteil des Bildes nicht korrekt extrahiert werden. An sich ein eindeutiger Fall, wenn
      folgende Beobachtung nicht da wäre:
      Trotz Ausgabe dieses Errors wird in der Tat das Dokument angelegt, aber das Bild ist nirgend wo wiederzufinden, obwohl es in der DB (in MCRNODES glaube ich) gelistet ist. Auf der anderen Seite ist das Dokument samt Bild immer noch im Workflow vorhanden. Folglich ist die DB inkonsistent und
      im Workflow befindet sich ein 'Klon'. Ich würde sagen, dass hier die Verletzung des "alles oder gar nicht" Prinzips vorliegt.

      -------------------------------------------------------------------------------------------------------------------------------------------------------

      INFO MCREditorServlet ip=0:0:0:0:0:0:0:1 mcr=2837aef3-b9ef-4303-b531-0ac526f1008e user=administrator
      INFO Editor session 1rq8mxb5r submitting form data
      INFO Validating editor input...
      INFO MCRUploadServlet ip=0:0:0:0:0:0:0:1 mcr=2837aef3-b9ef-4303-b531-0ac526f1008e user=administrator
      INFO Opening server socket: ip=127.0.0.1 port=8299
      INFO UploadHandler form based file upload for ID hajdxdft
      INFO UploadHandler uploading 1 file(s)
      INFO UploadServlet uploading SEB_0073.jpg
      INFO Data object stored under SEB_0073.jpg
      INFO UploadServlet redirect to http://localhost:8291/editor_Vismes_imgitem_editor.xml
      INFO MCRStaticXMLFileServlet ip=0:0:0:0:0:0:0:1 mcr=2837aef3-b9ef-4303-b531-0ac526f1008e user=administrator
      INFO MCRStaticXMLFileServlet /editor_Vismes_imgitem_editor.xml
      INFO MCRStartEditorServlet ip=0:0:0:0:0:0:0:1 mcr=2837aef3-b9ef-4303-b531-0ac526f1008e user=administrator
      INFO Reading file /home/pixx/Testumgebung_from_svn/docportal_20121125_trunk/docportal/data/workflow/Vismes_imgitem/Vismes_imgitem_00000004.xml ...
      INFO MCR.Searcher.lucene-metadata.indexDir: /home/pixx/Testumgebung_from_svn/docportal_20121125_trunk/docportal/data/lucene-index4metadata
      INFO MCR.Searcher.lucene-content.indexDir: /home/pixx/Testumgebung_from_svn/docportal_20121125_trunk/docportal/data/lucene-index4content
      INFO SVN commit of create finished, new revision 11
      INFO Using event stored content to index: Vismes_imgitem_00000004
      INFO MCRLuceneSearcher indexing data of Vismes_imgitem_00000004
      INFO Vismes_imgitem_00000004 loaded.
      INFO The metadata objekt was /home/pixx/Testumgebung_from_svn/docportal_20121125_trunk/docportal/data/workflow/Vismes_imgitem/Vismes_imgitem_00000004.xml loaded.
      INFO Reading file /home/pixx/Testumgebung_from_svn/docportal_20121125_trunk/docportal/data/workflow/Vismes_imgitem/Vismes_derivate_00000002.xml ...
      INFO Source path --> /home/pixx/Testumgebung_from_svn/docportal_20121125_trunk/docportal/data/workflow/Vismes_imgitem/Vismes_derivate_00000002
      INFO Label --> Dataobject from Vismes_imgitem_00000004
      INFO SVN commit of create finished, new revision 6
      INFO Using event stored content to index: Vismes_derivate_00000002
      INFO MCRLuceneSearcher indexing data of Vismes_derivate_00000002
      INFO SVN commit of update finished, new revision 12
      INFO Using event stored content to index: Vismes_imgitem_00000004
      INFO MCRLuceneSearcher removing indexed data of Vismes_imgitem_00000004
      INFO MCRLuceneSearcher indexing data of Vismes_imgitem_00000004
      ERROR Error while execution of method wcommit
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.mycore.frontend.servlets.MCRStartEditorServlet.doGetPost(MCRStartEditorServlet.java:287)
      at org.mycore.frontend.servlets.MCRServlet.doGet(MCRServlet.java:182)
      at org.mycore.frontend.servlets.MCRServlet.render(MCRServlet.java:439)
      at org.mycore.frontend.servlets.MCRServlet.processRenderingPhase(MCRServlet.java:401)
      at org.mycore.frontend.servlets.MCRServlet.doGetPost(MCRServlet.java:292)
      at org.mycore.frontend.servlets.MCRServlet.doGet(MCRServlet.java:178)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1361)
      at org.mycore.frontend.filter.MCRWebAppBaseFilter.doFilter(MCRWebAppBaseFilter.java:64)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
      at org.eclipse.jetty.server.Server.handle(Server.java:348)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
      at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884)
      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
      at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.NoClassDefFoundError: com/adobe/xmp/XMPException
      at com.drew.imaging.jpeg.JpegMetadataReader.extractMetadataFromJpegSegmentReader(Unknown Source)
      at com.drew.imaging.jpeg.JpegMetadataReader.readMetadata(Unknown Source)
      at com.drew.imaging.jpeg.JpegMetadataReader.readMetadata(Unknown Source)
      at org.mycore.datamodel.ifs.extractors.MCRDataExtractorJPEG.extractData(MCRDataExtractorJPEG.java:58)
      at org.mycore.datamodel.ifs.extractors.MCRDataExtractor.handleFileCreated(MCRDataExtractor.java:96)
      at org.mycore.common.events.MCREventHandlerBase.doHandleEvent(MCREventHandlerBase.java:99)
      at org.mycore.common.events.MCREventManager.handleEvent(MCREventManager.java:214)
      at org.mycore.common.events.MCREventManager.handleEvent(MCREventManager.java:247)
      at org.mycore.datamodel.ifs.MCRFile.storeContentChange(MCRFile.java:364)
      at org.mycore.datamodel.ifs.MCRFile.setContentFrom(MCRFile.java:347)
      at org.mycore.datamodel.ifs.MCRFile.setContentFrom(MCRFile.java:310)
      at org.mycore.datamodel.ifs.MCRFile.setContentFrom(MCRFile.java:269)
      at org.mycore.datamodel.ifs.MCRFileImportExport.importFiles(MCRFileImportExport.java:159)
      at org.mycore.datamodel.ifs.MCRFileImportExport.importFiles(MCRFileImportExport.java:188)
      at org.mycore.datamodel.ifs.MCRFileImportExport.importFiles(MCRFileImportExport.java:56)
      at org.mycore.datamodel.metadata.MCRMetadataManager.create(MCRMetadataManager.java:119)
      at org.mycore.datamodel.metadata.MCRMetadataManager.update(MCRMetadataManager.java:458)
      at org.mycore.frontend.cli.MCRDerivateCommands.processFromFile(MCRDerivateCommands.java:386)
      at org.mycore.frontend.cli.MCRDerivateCommands.updateFromFile(MCRDerivateCommands.java:330)
      at org.mycore.frontend.workflow.MCRSimpleWorkflowManager.loadDerivate(MCRSimpleWorkflowManager.java:494)
      at org.mycore.frontend.workflow.MCRSimpleWorkflowManager.commitMetadataObject(MCRSimpleWorkflowManager.java:469)
      at org.mycore.frontend.servlets.MCRStartEditorServlet.wcommit(MCRStartEditorServlet.java:923)
      ... 40 more
      Caused by: java.lang.ClassNotFoundException: com.adobe.xmp.XMPException
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
      at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:424)
      at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:377)
      ... 62 more
      INFO MCRStaticXMLFileServlet ip=0:0:0:0:0:0:0:1 mcr=2837aef3-b9ef-4303-b531-0ac526f1008e user=administrator
      INFO MCRStaticXMLFileServlet /content/below/index.xml
      INFO Including file:/home/pixx/Testumgebung_from_svn/docportal_20121125_trunk/docportal/build/webapps/content/below/index.xml#search
      INFO Finished reading editor definition in 1 ms
      INFO Editor reading XML input from buildxml:_rootName_=emptySource

        Attachments

          Activity

            People

            • Assignee:
              mcrjkupf Jens Kupferschmidt
              Reporter:
              mcradmin Jira Admin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: