Could not create the view: 3 while opening Network Map
-
Hi,
We are unable open a Network Map in nxmc console getting error "Could not create the view: 3"
Netxms Version 2.2.17
OS = Centos 7java.lang.ArrayIndexOutOfBoundsException: 3
at org.netxms.client.datacollection.DataFormatter.format(DataFormatter.java:98)
at org.netxms.client.datacollection.DciValue.format(DciValue.java:113)
at org.netxms.ui.eclipse.networkmaps.views.helpers.LinkDciValueProvider.getDciDataAsString(LinkDciValueProvider.java:247)
at org.netxms.ui.eclipse.networkmaps.views.helpers.MapLabelProvider.selfStyleConnection(MapLabelProvider.java:481)
at org.eclipse.gef4.zest.core.viewers.internal.GraphItemStyler.styleItem(GraphItemStyler.java:99)
at org.eclipse.gef4.zest.core.viewers.internal.AbstractStylingModelFactory.styleItem(AbstractStylingModelFactory.java:122)
at org.eclipse.gef4.zest.core.viewers.internal.AbstractStylingModelFactory.createConnection(AbstractStylingModelFactory.java:187)
at org.eclipse.gef4.zest.core.viewers.internal.GraphModelEntityRelationshipFactory.createModelRelationships(GraphModelEntityRelationshipFactory.java:101)
at org.eclipse.gef4.zest.core.viewers.internal.GraphModelEntityRelationshipFactory.doBuildGraph(GraphModelEntityRelationshipFactory.java:66)
at org.eclipse.gef4.zest.core.viewers.internal.GraphModelEntityRelationshipFactory.createGraphModel(GraphModelEntityRelationshipFactory.java:49)
at org.eclipse.gef4.zest.core.viewers.AbstractStructuredGraphViewer.inputChanged(AbstractStructuredGraphViewer.java:513)
at org.eclipse.gef4.zest.core.viewers.GraphViewer.inputChanged(GraphViewer.java:139)
at org.netxms.ui.eclipse.networkmaps.views.helpers.ExtendedGraphViewer.inputChanged(ExtendedGraphViewer.java:267)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
at org.netxms.ui.eclipse.networkmaps.views.AbstractNetworkMapView.refreshMap(AbstractNetworkMapView.java:424)
at org.netxms.ui.eclipse.networkmaps.views.AbstractNetworkMapView.createPartControl(AbstractNetworkMapView.java:395)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:386)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:240)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2245)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1154)
at org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3934)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3931)
at org.netxms.ui.eclipse.networkmaps.NetworkMapOpenHandler.openObject(NetworkMapOpenHandler.java:33)
at org.netxms.ui.eclipse.objectbrowser.api.ObjectOpenHandlerRegistry.callOpenObjectHandler(ObjectOpenHandlerRegistry.java:58)
at org.netxms.ui.eclipse.objectbrowser.views.ObjectBrowser$1.openObject(ObjectBrowser.java:229)
at org.netxms.ui.eclipse.objectbrowser.widgets.ObjectTree.openObject(ObjectTree.java:700)
at org.netxms.ui.eclipse.objectbrowser.widgets.ObjectTree.access$4(ObjectTree.java:697)
at org.netxms.ui.eclipse.objectbrowser.widgets.ObjectTree$4.doubleClick(ObjectTree.java:168)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1477)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.netxms.ui.eclipse.console.Application.start(Application.java:37)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438) -
Hi!
Looks like a bug when formatting texts drawn on links on that map. Could you please check what ID that map has - it's visible in Object Details when you click the map in Object browser and share output of the following SQL query:
select * from network_map_links where map_id = 123;where 123 is the id of your map.
-
I have fixed the bug. The fix will be included in the next build.
A problem occurs if in DCI string format, there is no letter character after the percent sign (%), like: %123 or %.5
As a temporary solution you can change this link configuration in the database. The server should be stopped while database modification. -
-
@zev said in Could not create the view: 3 while opening Network Map:
I have fixed the bug. The fix will be included in the next build.
A problem occurs if in DCI string format, there is no letter character after the percent sign (%), like: %123 or %.5
As a temporary solution you can change this link configuration in the database. The server should be stopped while database modification.Hi Tatjana,
Could you please guide me on how can i change this link configuration in the database.
Thanks in Advance.
Sushant -
In the SQL query output that you sent above you can see lines like this:
<formatString>%*s</formatString>%*s should be replaced to some other format, where letter comes right after % character.
NetXMS server should be stopped when editing the database.
Care should be taken when editing the database, it's recommended to do database backup prior to editing.Alternatively you can wait when NetXMS 3.1 will be out - hopefully this will happen by the end of next week.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login