RealmeIP / openjpeg

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

opj_viewer / esajpip #216

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Seems like opj_viewer does not work with esajpip:

$ opj_viewer http://localhost:8080 cmu1.jp2

CID request
     end of the connection

TID request
     end of the connection

Requesting: 
http://localhost:8080?target=cmu1.jp2&fsiz=170,170&cnew=http&type=jpp-stream
HTTP/1.1 200 OK
image/jpp-stream
cid: 8, transport: http
tid: var_lib_esajpip_imgs_cmu1_jp2
No new jpipstream
decoding to PNM image
Sending 0Data Bytes to decodingServer
JPIP-stream
Receive Data: 0 Bytes
newjpipstream length: 0
[2]  - 16246 segmentation fault  opj_dec_server
IOException: java.io.EOFException
IOException: java.net.ConnectException: Connection refused
     failed

Requesting: 
http://localhost:8080?fsiz=390,170&roff=390,170&rsiz=390,170&cid=8&type=jpp-stre
am
HTTP/1.1 500 Internal Server Error
null
java.lang.NullPointerException
    at JPIPHttpClient.set_responseheader(JPIPHttpClient.java:219)
    at JPIPHttpClient.GETrequest(JPIPHttpClient.java:172)
    at JPIPHttpClient.requestViewWindow(JPIPHttpClient.java:140)
    at JPIPHttpClient.requestViewWindow(JPIPHttpClient.java:95)
    at JPIPHttpClient.requestViewWindow(JPIPHttpClient.java:80)
    at ImageManager.getImage(ImageManager.java:99)
    at ImageViewer.enlarge(ImageViewer.java:124)
    at ResizeListener.componentResized(ResizeListener.java:54)
    at java.awt.Component.processComponentEvent(Component.java:5962)
    at java.awt.Component.processEvent(Component.java:5916)
    at java.awt.Container.processEvent(Container.java:2105)
    at java.awt.Component.dispatchEventImpl(Component.java:4497)
    at java.awt.Container.dispatchEventImpl(Container.java:2163)
    at java.awt.Component.dispatchEvent(Component.java:4323)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
decoding to PNM image
IOException: java.net.ConnectException: Connection refused
     failed
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at ImageViewer.paint(ImageViewer.java:223)
    at javax.swing.JComponent.paintChildren(JComponent.java:866)
    at javax.swing.JComponent.paint(JComponent.java:1038)
    at javax.swing.JComponent.paintChildren(JComponent.java:866)
    at javax.swing.JComponent.paint(JComponent.java:1038)
    at javax.swing.JLayeredPane.paint(JLayeredPane.java:581)
    at javax.swing.JComponent.paintChildren(JComponent.java:866)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5145)
    at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:302)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1145)
    at javax.swing.JComponent.paint(JComponent.java:1015)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
    at java.awt.Container.paint(Container.java:1844)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:751)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:696)
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:676)
    at javax.swing.RepaintManager.access$700(RepaintManager.java:57)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1550)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at ImageViewer.paint(ImageViewer.java:223)
    at javax.swing.JComponent.paintChildren(JComponent.java:866)
    at javax.swing.JComponent.paint(JComponent.java:1038)
    at javax.swing.JComponent.paintChildren(JComponent.java:866)
    at javax.swing.JComponent.paint(JComponent.java:1038)
    at javax.swing.JLayeredPane.paint(JLayeredPane.java:581)
    at javax.swing.JComponent.paintChildren(JComponent.java:866)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5145)
    at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:302)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1145)
    at javax.swing.JComponent.paint(JComponent.java:1015)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
    at java.awt.Container.paint(Container.java:1844)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:751)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:696)
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:676)
    at javax.swing.RepaintManager.access$700(RepaintManager.java:57)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1550)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Requesting: 
http://localhost:8080?fsiz=392,174&roff=392,174&rsiz=392,174&cid=8&type=jpp-stre
am
HTTP/1.1 500 Internal Server Error
null
java.lang.NullPointerException
    at JPIPHttpClient.set_responseheader(JPIPHttpClient.java:219)
    at JPIPHttpClient.GETrequest(JPIPHttpClient.java:172)
    at JPIPHttpClient.requestViewWindow(JPIPHttpClient.java:140)
    at JPIPHttpClient.requestViewWindow(JPIPHttpClient.java:95)
    at JPIPHttpClient.requestViewWindow(JPIPHttpClient.java:80)
    at ImageManager.getImage(ImageManager.java:99)
    at ImageViewer.enlarge(ImageViewer.java:124)
    at ResizeListener.componentResized(ResizeListener.java:54)
    at java.awt.Component.processComponentEvent(Component.java:5962)
    at java.awt.Component.processEvent(Component.java:5916)
    at java.awt.Container.processEvent(Container.java:2105)
    at java.awt.Component.dispatchEventImpl(Component.java:4497)
    at java.awt.Container.dispatchEventImpl(Container.java:2163)
    at java.awt.Component.dispatchEvent(Component.java:4323)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
    at java.awt.EventQueue$2.run(EventQueue.java:622)
    at java.awt.EventQueue$2.run(EventQueue.java:620)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
decoding to PNM image
IOException: java.net.ConnectException: Connection refused
     failed
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at ImageViewer.paint(ImageViewer.java:223)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5138)
    at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:302)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1145)
    at javax.swing.JComponent._paintImmediately(JComponent.java:5086)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4896)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:740)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:696)
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:676)
    at javax.swing.RepaintManager.access$700(RepaintManager.java:57)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1550)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Original issue reported on code.google.com by mathieu.malaterre on 2 Apr 2013 at 1:10

GoogleCodeExporter commented 8 years ago
esajpip logs reveals:

2013-04-02 15:10:01,924: New connection from 127.0.0.1:46972 [7] 
2013-04-02 15:10:01,924: Creating a client thread for the new connection [14|7] 
2013-04-02 15:10:01,924: Waiting for a request ... 
 013-04-02 15:10:01,925: Request: GET ?target=cmu1.jp2&fsiz=170,170&cnew=http&type=jpp-stream HTTP/1.1
2013-04-02 15:10:01,925: The channel 11 has been opened for the image 
'/var/lib/esajpip/imgs/cmu1.jp2' 
2013-04-02 15:10:01,926: Waiting for a request ... 
 013-04-02 15:10:01,990: Request: GET ?fsiz=390,170&roff=390,170&rsiz=390,170&cid=11&type=jpp-stream HTTP/1.1
2013-04-02 15:10:01,990: Waiting for a request ... 
 013-04-02 15:10:02,106: Request: GET ?fsiz=392,174&roff=392,174&rsiz=392,174&cid=11&type=jpp-stream HTTP/1.1
2013-04-02 15:10:02,106: Waiting for a request ... 
2013-04-02 15:10:11,930: Connection closed by the client 
2013-04-02 15:10:11,930: Closing the connection [7] 
2013-04-02 15:10:11,931: Closing the connection [7] from child 

Original comment by mathieu.malaterre on 2 Apr 2013 at 1:10

GoogleCodeExporter commented 8 years ago
Hi mathieu,

could you please indicate which version you used ?
I think we need a test suite for openjpip because honestly I am not sure this 
lib works correctly.
Mickaël 

Original comment by savmick...@gmail.com on 10 Apr 2013 at 9:29

GoogleCodeExporter commented 8 years ago

Original comment by mathieu.malaterre on 25 Feb 2014 at 3:38