slarson / wholebrain

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

Problems importing data #377

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import new data to Whole Brain
2.
3.

What is the expected output? What do you see instead?
org.wholebrainproject.wbc.util.exception.WBCException: Broken stream 
getting http://localhost:8182/content/3694_raw_512x512.jpg
    at 
org.wholebrainproject.wbc.util.NetworkingUtil.getStreamViaRestlet(Networkin
gUtil.java:167)
    at 
org.wholebrainproject.wbc.data.loader.Importer.getStream(Importer.java:192)
    at 
org.wholebrainproject.wbc.data.loader.Importer.getDataStream(Importer.java:
182)
    at 
org.wholebrainproject.wbc.data.loader.ImageImporter.getData(ImageImporter.j
ava:37)
    at 
org.wholebrainproject.wbc.tangible.DataTangible.unwrapDataWrapper(DataTangi
ble.java:165)
    at 
org.wholebrainproject.wbc.tangible.DataTangible.getData(DataTangible.java:1
07)
    at org.wholebrainproject.wbc.tangible.Slide.getData(Slide.java:281)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.getWholeImage(SlideView.j
ava:122)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.init(SlideView.java:85)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.<init>(SlideView.java:71)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.<init>(SlideView.java:59)
    at 
org.wholebrainproject.wbc.view.View3D.addSingleTangible(View3D.java:783)
    at 
org.wholebrainproject.wbc.view.gui2d.WBCImportPanel.showNonCCDBImportPrompt
(WBCImportPanel.java:102)
    at 
org.wholebrainproject.wbc.view.gui2d.WBCMenuBar.menuItemPressed(WBCMenuBar.
java:608)
    at 
org.wholebrainproject.wbc.view.gui2d.WBCMenuBar$1.actionPerformed(WBCMenuBa
r.java:184)
    at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169
)
    at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:
420)
    at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at 
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
    at 
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemU
I.java:1092)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j
ava:242)
    at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav
a:163)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Dec 3, 2009 1:15:33 PM java.util.logging.LogManager$RootLogger log
WARNING: Cannot get data that is associated with the following datawrapper: 
http://data.wholebraincatalog.org/datawrappers/generic/wd6by for tangible 
http://data.wholebraincatalog.org/tangibles/slides/edu9e. Removing this 
tangible from the TangibleManager.
org.wholebrainproject.wbc.util.exception.WBCException: Problem reading 
file! http://localhost:8182/content/3694_raw_512x512.jpg
    at 
org.wholebrainproject.wbc.data.loader.ImageImporter.getData(ImageImporter.j
ava:39)
    at 
org.wholebrainproject.wbc.tangible.DataTangible.unwrapDataWrapper(DataTangi
ble.java:165)
    at 
org.wholebrainproject.wbc.tangible.DataTangible.getData(DataTangible.java:1
07)
    at org.wholebrainproject.wbc.tangible.Slide.getData(Slide.java:281)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.getWholeImage(SlideView.j
ava:122)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.init(SlideView.java:85)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.<init>(SlideView.java:71)
    at 
org.wholebrainproject.wbc.view.tangible.SlideView.<init>(SlideView.java:59)
    at 
org.wholebrainproject.wbc.view.View3D.addSingleTangible(View3D.java:783)
    at 
org.wholebrainproject.wbc.view.gui2d.WBCImportPanel.showNonCCDBImportPrompt
(WBCImportPanel.java:102)
    at 
org.wholebrainproject.wbc.view.gui2d.WBCMenuBar.menuItemPressed(WBCMenuBar.
java:608)
    at 
org.wholebrainproject.wbc.view.gui2d.WBCMenuBar$1.actionPerformed(WBCMenuBa
r.java:184)
    at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169
)
    at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:
420)
    at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at 
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
    at 
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemU
I.java:1092)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j
ava:242)
    at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav
a:163)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.IllegalArgumentException: input == null!
    at javax.imageio.ImageIO.read(ImageIO.java:1318)
    at 
org.wholebrainproject.wbc.data.loader.ImageImporter.getData(ImageImporter.j
ava:37)
    ... 36 more

Please use labels and text to provide additional information.
Same result for importing any kind of data. First complains of a broken 
stream, then complains about being unable to get the data associated with 
the tangible.

Original issue reported on code.google.com by piperfl...@gmail.com on 3 Dec 2009 at 9:17

GoogleCodeExporter commented 9 years ago
Does http://localhost:8182/content/3694_raw_512x512.jpg come up in your web 
browser?

Original comment by stephen....@gmail.com on 3 Dec 2009 at 9:22

GoogleCodeExporter commented 9 years ago
Yes it does

Original comment by piperfl...@gmail.com on 3 Dec 2009 at 9:24

GoogleCodeExporter commented 9 years ago
I take it back, it doesn't for this particular one.

Original comment by piperfl...@gmail.com on 3 Dec 2009 at 9:28

GoogleCodeExporter commented 9 years ago
So does that mean we aren't properly uploading the content in the first place?

Original comment by stephen....@gmail.com on 3 Dec 2009 at 9:31

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 4 Jan 2010 at 8:30

GoogleCodeExporter commented 9 years ago
Did we fix this one?

Original comment by stephen....@gmail.com on 4 Jan 2010 at 8:39

GoogleCodeExporter commented 9 years ago
This has been fixed.

Original comment by piperfl...@gmail.com on 5 Jan 2010 at 2:03