#212 Using NHaystack as a server

Alaa Abdelfattah Tue 16 Sep 2014

Hi,

I'm having trouble using nhaystack as a server, because I would like to load the ax data onto skyspark through the haystack connector. Whenever I try to open the module.palette, I get " Cannot expand tree" and these are the details. Would anybody be able to help me figure this out, please?

com.tridium.file.types.bog.CannotLoadBogException: local:|file:/C:/1.2.1/nhaystack.jar|zip:/module.palette

at com.tridium.file.types.bog.BBogFile.doOpen(BBogFile.java:109)
at javax.baja.file.BSubSpaceFile.open(BSubSpaceFile.java:117)
at javax.baja.file.BSubSpaceFile.getNavChildren(BSubSpaceFile.java:239)
at javax.baja.workbench.nav.tree.NavTreeNode.buildChildren(NavTreeNode.java:219)
at javax.baja.workbench.nav.tree.NavTreeNode.getChildren(NavTreeNode.java:195)
at javax.baja.workbench.nav.tree.NavTreeNode.getChildCount(NavTreeNode.java:132)
at javax.baja.ui.tree.TreeNode.layout(TreeNode.java:367)
at javax.baja.ui.tree.BTree.doLayout(BTree.java:335)
at javax.baja.ui.tree.BTree.doLayout(BTree.java:307)
at javax.baja.ui.BWidget.layout(BWidget.java:939)
at com.tridium.ui.awt.AwtShellManager.layoutWidgets(AwtShellManager.java:414)
at com.tridium.ui.awt.AwtShellManager.paint(AwtShellManager.java:292)
at com.tridium.ui.awt.AwtShellManager.update(AwtShellManager.java:228)
at sun.awt.RepaintArea.updateComponent(RepaintArea.java:255)
at sun.awt.RepaintArea.paint(RepaintArea.java:232)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347)
at java.awt.Component.dispatchEventImpl(Component.java:4937)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
javax.baja.xml.XException: Cannot instantiate type 'nh:NHaystackService' [5:72]
   at javax.baja.io.ValueDocDecoder$BogDecoderPlugin.err(ValueDocDecoder.java:966)
   at javax.baja.io.ValueDocDecoder$BogTypeResolver.newInstance(ValueDocDecoder.java:1185)
   at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:591)
   at javax.baja.io.ValueDocDecoder.parseSlots(ValueDocDecoder.java:459)
   at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:653)
   at javax.baja.io.ValueDocDecoder.decode(ValueDocDecoder.java:213)
   at javax.baja.io.ValueDocDecoder$BogDecoderPlugin.decodeDocument(ValueDocDecoder.java:926)
   at javax.baja.io.ValueDocDecoder.decodeDocument(ValueDocDecoder.java:196)
   at javax.baja.io.ValueDocDecoder.decodeDocument(ValueDocDecoder.java:185)
   at com.tridium.file.types.bog.BBogFile.doOpen(BBogFile.java:97)
   at javax.baja.file.BSubSpaceFile.open(BSubSpaceFile.java:117)
   at javax.baja.file.BSubSpaceFile.getNavChildren(BSubSpaceFile.java:239)
   at javax.baja.workbench.nav.tree.NavTreeNode.buildChildren(NavTreeNode.java:219)
   at javax.baja.workbench.nav.tree.NavTreeNode.getChildren(NavTreeNode.java:195)
   at javax.baja.workbench.nav.tree.NavTreeNode.getChildCount(NavTreeNode.java:132)
   at javax.baja.ui.tree.TreeNode.layout(TreeNode.java:367)
   at javax.baja.ui.tree.BTree.doLayout(BTree.java:335)
   at javax.baja.ui.tree.BTree.doLayout(BTree.java:307)
   at javax.baja.ui.BWidget.layout(BWidget.java:939)
  javax.baja.sys.TypeException: java.lang.NoClassDefFoundError: javax/baja/web/BWebServlet nhaystack:NHaystackService=nhaystack.server.BNHaystackService
     at com.tridium.sys.module.NModule.getType(NModule.java:168)
     at javax.baja.io.ValueDocDecoder.typeResolverNewInstance(ValueDocDecoder.java:1203)
     at javax.baja.io.ValueDocDecoder$BogTypeResolver.newInstance(ValueDocDecoder.java:1171)
     at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:591)
     at javax.baja.io.ValueDocDecoder.parseSlots(ValueDocDecoder.java:459)
     at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:653)
     at javax.baja.io.ValueDocDecoder.decode(ValueDocDecoder.java:213)
     at javax.baja.io.ValueDocDecoder$BogDecoderPlugin.decodeDocument(ValueDocDecoder.java:926)
     at javax.baja.io.ValueDocDecoder.decodeDocument(ValueDocDecoder.java:196)
     at javax.baja.io.ValueDocDecoder.decodeDocument(ValueDocDecoder.java:185)
     at com.tridium.file.types.bog.BBogFile.doOpen(BBogFile.java:97)
     at javax.baja.file.BSubSpaceFile.open(BSubSpaceFile.java:117)
     at javax.baja.file.BSubSpaceFile.getNavChildren(BSubSpaceFile.java:239)
     at javax.baja.workbench.nav.tree.NavTreeNode.buildChildren(NavTreeNode.java:219)
     at javax.baja.workbench.nav.tree.NavTreeNode.getChildren(NavTreeNode.java:195)
     at javax.baja.workbench.nav.tree.NavTreeNode.getChildCount(NavTreeNode.java:132)
     at javax.baja.ui.tree.TreeNode.layout(TreeNode.java:367)
     at javax.baja.ui.tree.BTree.doLayout(BTree.java:335)
     at javax.baja.ui.tree.BTree.doLayout(BTree.java:307)
    java.lang.NoClassDefFoundError: javax/baja/web/BWebServlet
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:270)
       at com.tridium.sys.module.NModule.loadClass(NModule.java:86)
       at com.tridium.sys.module.NModule.getType(NModule.java:144)
       at javax.baja.io.ValueDocDecoder.typeResolverNewInstance(ValueDocDecoder.java:1203)
       at javax.baja.io.ValueDocDecoder$BogTypeResolver.newInstance(ValueDocDecoder.java:1171)
       at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:591)

Mike Jarmy Tue 16 Sep 2014

This is the problem:

com.tridium.file.types.bog.CannotLoadBogException: local:|file:/C:/1.2.1/nhaystack.jar|zip:/module.palette

You have to actually load the jar into your AX instance so that it's available when the station starts. It looks like you are trying to just use nhaystack.jar from your file system. Work with someone in your group who is an experienced AX user, they can get it working for you.

Alaa Abdelfattah Tue 16 Sep 2014

Thank you for the help.

Login or Signup to reply.