cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1297
Views
0
Helpful
18
Replies

Campus Manager Error

kanokpan
Level 1
Level 1

Hi,

When I use Campus Manager, Topology Service, Display view and from edit menu, map preference, I got the error message box as in attached.

Please advise how can I resolve this problem.

Thank you,

Regards,

Jan.

1 Accepted Solution

Accepted Solutions

Rename the /opt/CSCOpx/campus/etc/users directory to /opt/CSCOpx/campus/etc/users.bak, then recreate the directory with:

# mkdir /opt/CSCOpx/campus/etc/users

# chown casuser:casusers /opt/CSCOpx/campus/etc/users

# chmod 0750 /opt/CSCOpx/campus/etc/users

Then see if the problem goes away.

View solution in original post

18 Replies 18

Joe Clarke
Cisco Employee
Cisco Employee

What version of Campus Manager are you using? Which version of the Java Plug-in do you have installed?

Campus Manager 4.0.3 and java plugin version 1.4.2_08

What errors do you see in the Java Plug-in console?

[Fri Nov 17 13:31:57 ICT 2006] EDS:CorbaRegistry() cleanup all ORB environment.

2006/11/17 13:31:57 MESSAGE AniEventMgr: Event Manager has been enabled

2006/11/17 13:31:58 MESSAGE AniEventMgr: Event Manager has been enabled

java.lang.NumberFormatException: null

at java.lang.Integer.parseInt(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)

at com.cisco.nm.ani.clients.campus.main.dialogs.ClientMapPropsDialogAdapter.initializeData(ClientMapPropsDialogAdapter.java:90)

at com.cisco.nm.ani.clients.campus.main.dialogs.ClientMapPropsDialogAdapter.init(ClientMapPropsDialogAdapter.java:79)

at com.cisco.nm.ani.clients.lib.ui.components.CWConfigDialog.(CWConfigDialog.java:64)

at com.cisco.nm.ani.clients.lib.ui.components.CWConfigDialog.(CWConfigDialog.java:56)

at com.cisco.nm.ani.clients.campus.main.dialogs.ClientMapPropsDialog.(ClientMapPropsDialog.java:54)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at com.cisco.nm.ani.clients.lib.ui.components.WindowManager.createWindow(WindowManager.java:202)

at com.cisco.nm.ani.clients.lib.ui.components.WindowManager.getWindowWorker(WindowManager.java:343)

at com.cisco.nm.ani.clients.lib.ui.components.WindowManager.getWindow(WindowManager.java:394)

at com.cisco.nm.ani.clients.campus.main.dialogs.ClientMapPropsDialog.display(ClientMapPropsDialog.java:214)

at com.cisco.nm.ani.clients.campus.main.dialogs.ClientMapPropsDialog.action_mapPreferences(ClientMapPropsDialog.java:50)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.cisco.nm.ani.clients.lib.util.MenuAction.execute(MenuAction.java:498)

at com.cisco.nm.ani.clients.lib.util.MenuAction.actionPerformed(MenuAction.java:310)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Looks like you've got a bad bgColor property in your properties file. To fix this, go to NMSROOT/campus/etc/users/USERNAME (where NMSROOT is the path into which CiscoWorks was installed and USERNAME is the user as which you are currently logged in), and check the value of the bgColor property in the user.properties file. This property needs to be a valid integer. Typically it is -1.

You should also check the other properties in this file to make sure they are okay. Here is a sample, working user.properties file:

#Fri Nov 10 14:40:47 EST 2006

isTrimDomainSuffix=false

selectColor=-16776961

layoutStyle=Hierarchical

domainSuffix=cisco.com

bgColor=-1

fgColor=-16777216

highColor=-12566464

There is no user.properties exist, so I should create one using the sample you provide ?

Sorry, I meant user.preferences. The file must exist. This error would not occur otherwise.

Well, to be honest, this problem COULD still occur if the default preferences file was corrupted. I've never seen that happen, but it is possible. That file is NMSROOT/campus/etc/cwsi/user.preferences. The same rules apply to this file as to the per-user files.

user.preferences under MSROOT/campus/etc/cwsi

as follow, I didn't change anything here.

bgColor=-1

fgColor=-16777216

selectColor=-16776961

highColor=-12566464

layoutStyle=Hierarchy

domainSuffix=cisco.com

isTrimDomainSuffix=false

My user.preferences under user is as follow, are there any line need to be correct ?

#Fri Nov 17 13:55:52 ICT 2006^M

fgColor=-16777216^M

24.labelDisplayMode=sysname^M

6524.labelDisplayMode=ip^M

selectColor=-16776961^M

27.labelDisplayMode=sysname^M

24.toolbarStatus=Show^M

94310.labelDisplayMode=sysname^M

bgColor=-1^M

412.labelDisplayMode=dns^M

highColor=-12566464^M

Doesn't appear to be any problems. What does your default preferences file look like?

user.preferences under MSROOT/campus/etc/cwsi

as follow, I didn't change anything here.

bgColor=-1

fgColor=-16777216

selectColor=-16776961

highColor=-12566464

layoutStyle=Hierarchy

domainSuffix=cisco.com

isTrimDomainSuffix=false

I see no problems that could account for this error. Yet the backed is reading a null value for the bgColor property. Check the permissions on both files as well as all of their parent directories, and make sure casuser has access to read the file and read and search the directory.

Also, you might try restarting ANIServer to force the files to be re-read.

I already try to restart all ciscowork service using dmgtd and still get the error. The permission for files as follow

default

-rw-r----- 1 casuser casusers 143 Nov 25 2005 user.preferences

per user

-rw-r----- 1 casuser casusers 271 Nov 17 14:13 user.preferences