Issue
XBuilder project was upgraded and OGC graphic pages were converted to TGML using the automatic conversion. The same names were used for the graphic pages, but they will not display in the web interface.
Java console reports:
java.io.IOException: Wrong file format feature < 0 or reature > 7 at se.tac.applet.graphics.ogc.OGCStreamHeader.load(Unknown Source) at se.tac.applet.graphics.ogc.OGCPicture.loadPicture(Unknown Source) at se.tac.applet.graphics.GraphicsViewer.go(Unknown Source) at se.tac.applet.graphics.GraphicsViewer.init(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException
Product Line
Satchwell MicroNet, TAC INET, TAC Vista
Environment
- XBuilder 5.x.x
- Xenta Servers
- Xenta 511, 527, 711, 731
Cause
The graphic object was properly converted, but the graphic page is still using the old template (Graphics.html) which is designed for OGC graphics instead of the new graphics page template (TgmlGraphics.html).
This causes the java to interpret a TGML graphic file as an OGC graphic file.
Resolution
This can be resolved two ways
- Manually edit the Template property of the Graphic page objects in XBuilder to be TgmlGraphics.html.
- Delete the graphics page in XBuilder and recreate it. When the graphic object is linked to the graphics page it will properly assign the correct template based on the type of graphics file type.