faizanmahmood / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

Exception when opening a media file containing a user box #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. From isoviewer, try to open a media file that has a user box (type "uuid"). 
In particular, I'm trying to add UITS tags.

What is the expected output? What do you see instead?

PropertyBoxParserImpl prints this stack trace:

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: 
java.lang.NoSuchMethodException: com.coremedia.iso.boxes.UserBox.<init>(null)
    at com.coremedia.iso.PropertyBoxParserImpl.createBox(PropertyBoxParserImpl.java:95)
    at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:62)
    at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:1)
    at com.coremedia.iso.IsoFile.parse(IsoFile.java:92)
    at com.coremedia.iso.gui.IsoViewerFrame.open(IsoViewerFrame.java:174)
    at com.coremedia.iso.gui.IsoViewerFrame$3.actionPerformed(IsoViewerFrame.java:143)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
    at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:137)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
    at java.awt.Component.processMouseEvent(Component.java:6352)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6117)
    at java.awt.Container.processEvent(Container.java:2085)
    at java.awt.Component.dispatchEventImpl(Component.java:4714)
    at java.awt.Container.dispatchEventImpl(Container.java:2143)
    at java.awt.Component.dispatchEvent(Component.java:4544)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
    at java.awt.Container.dispatchEventImpl(Container.java:2129)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4544)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NoSuchMethodException: 
com.coremedia.iso.boxes.UserBox.<init>(null)
    at java.lang.Class.getConstructor0(Class.java:2706)
    at java.lang.Class.getConstructor(Class.java:1657)
    at com.coremedia.iso.PropertyBoxParserImpl.createBox(PropertyBoxParserImpl.java:88)
    ... 33 more

What version of the product are you using? On what operating system?

I expect the file to be open successfully.

Please provide any additional information below.

I have attached a media file that repros this and a patch to fix it. It was 
just a capitalization error in default.properties.

Original issue reported on code.google.com by rrotm...@gmail.com on 3 Feb 2011 at 4:37

Attachments:

GoogleCodeExporter commented 8 years ago
I didn't look into issues for a long time and I fixed it some time ago. Thank 
you for your patch! 

Original comment by Sebastian.Annies on 16 Apr 2011 at 7:31

GoogleCodeExporter commented 8 years ago

Original comment by Sebastian.Annies on 16 Apr 2011 at 7:31

GoogleCodeExporter commented 8 years ago
It's already available on maven central as version 1.0-beta-2

Original comment by Sebastian.Annies on 16 Apr 2011 at 7:37