eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1 string webm video/webm]

Sonatype JIRA | Rich Seddon | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    It looks like this exception breaks construction of the mime detector in Nexus. This occurs on CentOS 5.9: {quote}jvm 1 | 2013-06-25 14:24:22 WARN [jetty-main-thread-1] eu.medsea.mimeutil.detector.MagicMimeMimeDetector - eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1 string webm video/webm]: file "/usr/share/file/magic.mime": before or at line 22 jvm 1 | eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1 string webm video/webm] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:84) ~[mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:91) ~[mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:91) ~[mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:67) ~[mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeMimeDetector.addEntry(MagicMimeMimeDetector.java:537) [mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeMimeDetector.parse(MagicMimeMimeDetector.java:517) [mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeMimeDetector.parseMagicMimeFileLocation(MagicMimeMimeDetector.java:413) [mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeMimeDetector.initMagicRules(MagicMimeMimeDetector.java:377) [mime-util-2.1.2.jar:na] jvm 1 | at eu.medsea.mimeutil.detector.MagicMimeMimeDetector.<init>(MagicMimeMimeDetector.java:157) [mime-util-2.1.2.jar:na] jvm 1 | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_21] jvm 1 | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_21] jvm 1 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_21] {quote} Not sure if this is actually a valid entry or not, but we should consider forking this plugin to move the try/catch inside the loop so that the rest of the entries are read in properly. Also, I saw that this does not occur on CentOS 6, but this appears to be because the file moved to /usr/share/file/magic, and the library cannot find it, since the offending line is exactly the same.

    Sonatype JIRA | 4 years ago | Rich Seddon
    eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1 string webm video/webm]
  2. 0

    repo-discuss - Re: 500: Internal server error after upgrading to 2.6.1 - msg#00397 - Recent Discussion OSDir.com

    osdir.com | 1 year ago
    eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1       string    webm    video/webm]
  3. 0

    500: Internal server error after upgrading to 2.6.1

    Google Groups | 4 years ago | Pravin
    eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1 string webm video/webm]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    InvalidMagicMimeEntryException during startup caused by changes in magic.mime file in RHEL 5.9

    https://bugzilla.redhat.com/bugzilla/ | 4 years ago | Dominik Pospisil
    eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1 string webm video/webm]: file "/usr/share/file/magic.mime": before or at line 22: eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [>>&1 string webm video/webm]
  6. 0

    InvalidMagicMimeEntryException while starting 12c(12.1.3.0) SOA server

    Oracle Community | 2 years ago | Arunava Datta
    eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException: Invalid Magic Mime Entry: [MimeMagicType: 0, 0, null, null, null]

    Root Cause Analysis

    1. eu.medsea.mimeutil.detector.InvalidMagicMimeEntryException

      Invalid Magic Mime Entry: [>>&1 string webm video/webm]

      at eu.medsea.mimeutil.detector.MagicMimeEntry.<init>()
    2. Mime Detection Utility
      MagicMimeMimeDetector.<init>
      1. eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:84)[mime-util-2.1.2.jar:na]
      2. eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:91)[mime-util-2.1.2.jar:na]
      3. eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:91)[mime-util-2.1.2.jar:na]
      4. eu.medsea.mimeutil.detector.MagicMimeEntry.<init>(MagicMimeEntry.java:67)[mime-util-2.1.2.jar:na]
      5. eu.medsea.mimeutil.detector.MagicMimeMimeDetector.addEntry(MagicMimeMimeDetector.java:537)[mime-util-2.1.2.jar:na]
      6. eu.medsea.mimeutil.detector.MagicMimeMimeDetector.parse(MagicMimeMimeDetector.java:517)[mime-util-2.1.2.jar:na]
      7. eu.medsea.mimeutil.detector.MagicMimeMimeDetector.parseMagicMimeFileLocation(MagicMimeMimeDetector.java:413)[mime-util-2.1.2.jar:na]
      8. eu.medsea.mimeutil.detector.MagicMimeMimeDetector.initMagicRules(MagicMimeMimeDetector.java:377)[mime-util-2.1.2.jar:na]
      9. eu.medsea.mimeutil.detector.MagicMimeMimeDetector.<init>(MagicMimeMimeDetector.java:157)[mime-util-2.1.2.jar:na]
      9 frames
    3. Java RT
      DelegatingConstructorAccessorImpl.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.6.0_21]
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[na:1.6.0_21]
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[na:1.6.0_21]
      3 frames