Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Campus Manager Error

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
Cisco Employee

Re: Campus Manager Error

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.

18 REPLIES
Cisco Employee

Re: Campus Manager Error

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

New Member

Re: Campus Manager Error

Campus Manager 4.0.3 and java plugin version 1.4.2_08

Cisco Employee

Re: Campus Manager Error

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

New Member

Re: Campus Manager Error

[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)

Cisco Employee

Re: Campus Manager Error

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

New Member

Re: Campus Manager Error

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

Cisco Employee

Re: Campus Manager Error

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

Cisco Employee

Re: Campus Manager Error

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.

New Member

Re: Campus Manager Error

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

New Member

Re: Campus Manager Error

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

Cisco Employee

Re: Campus Manager Error

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

New Member

Re: Campus Manager Error

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

Cisco Employee

Re: Campus Manager Error

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.

New Member

Re: Campus Manager Error

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

Cisco Employee

Re: Campus Manager Error

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.

Cisco Employee

Re: Campus Manager Error

Also, make sure you restart your web browser after doing this.

New Member

Re: Campus Manager Error

The problem is gone now. So the problem is the user.preferences files under user? I just create directory and change own, permission, there is no files/ folders exist under /opt/CSCOpx/campus/users. Is that OK ?

Many thanks for your kindly help.

Cisco Employee

Re: Campus Manager Error

There was a problem with one of the per-user files. Based on the error, the only thing I can think of was that you were looking at the wrong file, or there was some other issue reading the contents of the file.

You can always recreate the preferences files if you need to. However, if you had any saved map layouts they will be gone. You might try moving files back over from your backup directory one at a time to narrow down exactly which caused the problem.

218
Views
0
Helpful
18
Replies