Problem registering to Update Connection
Hi,
I'm having problems with 2 SPARC machines running Solaris 10 6/06. All other
problems with the registration I've been able to fix with the instructions given in
other threads, but not this one. I'm using local patch server and I'm able to install
patches with smpatch update, but I'd really like to get Update Connection working
also, like on other ~40 machines we're running.
I get the following error when trying to register from command line:
/usr/sbin/sconadm register -a -r reg_profile -e softwareUpdate
sconadm is running
Authenticating user ...
Exception in thread"main" java.lang.RuntimeException: javax.management.MalformedObjectNameException: Invalid character `:' in value
at com.sun.scn.client.SCNClientSession.login(SCNClientSession.java:388)
at com.sun.cns.basicreg.cacao.ClientLoginCacaoAdapter.loginAccount(ClientLoginCacaoAdapter.java:209)
at com.sun.cns.basicreg.BasicRegCLI.authenticateUser(BasicRegCLI.java:1079)
at com.sun.cns.basicreg.BasicRegCLI.run(BasicRegCLI.java:669)
at com.sun.cns.basicreg.BasicRegCLI.main(BasicRegCLI.java:562)
Caused by: javax.management.MalformedObjectNameException: Invalid character `:' in value
at javax.management.ObjectName.parseValue(ObjectName.java:870)
at javax.management.ObjectName.checkValue(ObjectName.java:901)
at javax.management.ObjectName.construct(ObjectName.java:636)
at javax.management.ObjectName.<init>(ObjectName.java:1348)
at com.sun.scn.client.SCNClientSession.login(SCNClientSession.java:361)
... 4 more
If I try to use the GUI method, it fails after I give username and password with
"Error in SCN/Cacao Account Login". And it give's following to the terminal:
Exception occurred during event dispatching:
java.lang.RuntimeException: javax.management.MalformedObjectNameException: Invalid character `:' in value
at com.sun.scn.client.SCNClientSession.login(SCNClientSession.java:388)
at com.sun.cns.basicreg.cacao.ClientLoginCacaoAdapter.loginAccount(ClientLoginCacaoAdapter.java:209)
at com.sun.cns.basicreg.wizard.cli.CmdLineWizard.outCall(CmdLineWizard.java:1109)
at com.sun.cns.basicreg.wizard.cli.CmdLineWizard.output(CmdLineWizard.java:771)
at com.sun.cns.basicreg.wizard.swing.WizardPanel.isNavigationAllowed(WizardPanel.java:1264)
at com.sun.cns.basicreg.wizard.swing.WizardDialog.okByNavigationListener(WizardDialog.java:583)
at com.sun.cns.basicreg.wizard.swing.WizardDialog.access$100(WizardDialog.java:64)
at com.sun.cns.basicreg.wizard.swing.WizardDialog$NextButtonActionListener.actionPerformed(WizardDialog.java:404)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:517)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: javax.management.MalformedObjectNameException: Invalid character `:' in value
at javax.management.ObjectName.parseValue(ObjectName.java:870)
at javax.management.ObjectName.checkValue(ObjectName.java:901)
at javax.management.ObjectName.construct(ObjectName.java:636)
at javax.management.ObjectName.<init>(ObjectName.java:1348)
at com.sun.scn.client.SCNClientSession.login(SCNClientSession.java:361)
... 37 more
[5595 byte] By [
ApA_] at [2007-11-26 11:00:02]

# 1
Hi,
Looking at the output the error below is seen.
/usr/sbin/sconadm register -a -r reg_profile -e softwareUpdate
sconadm is running
Authenticating user ...
Exception in thread "main" java.lang.RuntimeException: javax.management.MalformedObjectNameException:
Invalid character `:' in value
Can you verify your reg_profile file and see if there is a ':' before or after your username. Can you also login using the account details in the reg_profile to the web portal.
Regards,
# 2
Yes, that is strange because there is no ':' character anywhere in the reg_profile file, and I can use the same username/password in the web portal and on other hosts.
ApA_ at 2007-7-7 3:13:36 >

# 3
Checking previous cases, this appears to be the first one with this particular error. To dermine the issue, can you first confirm which version of Update Connection is installed and list all the ccr parameters (obfuscating any confidential information).
$ showrev -p | grep 121118
$ /usr/lib/cc-ccr/bin/ccr -k | xargs -t -n 1 /usr/lib/cc-ccr/bin/ccr -g
# 4
# showrev -p | grep 121118
Patch: 121118-06 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWppror, SUNWpprou, SUNWupdatemgru, SUNWupdatemgrr, SUNWppro-plugin-sunos-base
Patch: 121118-08 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWppror, SUNWpprou, SUNWupdatemgru, SUNWupdatemgrr, SUNWppro-plugin-sunos-base
# /usr/lib/cc-ccr/bin/ccr -k | xargs -t -n 1 /usr/lib/cc-ccr/bin/ccr -g
/usr/lib/cc-ccr/bin/ccr -g 25
Property not defined: 25
/usr/lib/cc-ccr/bin/ccr -g cns.assetid
/usr/lib/cc-ccr/bin/ccr -g cns.br.SunUCenabled
true
/usr/lib/cc-ccr/bin/ccr -g cns.ccr.keyGenPath
/usr/lib/cc-ccr/bin/ccrKeyGen
/usr/lib/cc-ccr/bin/ccr -g cns.clientid
/usr/lib/cc-ccr/bin/ccr -g cns.component.ccragent.status
/usr/lib/cc-ccr/bin/ccr -g cns.component.fwagent.status
/usr/lib/cc-ccr/bin/ccr -g cns.component.invagent.status
/usr/lib/cc-ccr/bin/ccr -g cns.component.swupagent.status
/usr/lib/cc-ccr/bin/ccr -g cns.component.transport.status
/usr/lib/cc-ccr/bin/ccr -g cns.httpproxy.auth
/usr/lib/cc-ccr/bin/ccr -g cns.httpproxy.ipaddr
/usr/lib/cc-ccr/bin/ccr -g cns.httpproxy.port
/usr/lib/cc-ccr/bin/ccr -g cns.regtoken
/usr/lib/cc-ccr/bin/ccr -g cns.security.password
/usr/lib/cc-ccr/bin/ccr -g cns.security.privatekey
/usr/lib/cc-ccr/bin/ccr -g cns.security.publickey
/usr/lib/cc-ccr/bin/ccr -g cns.service.platform.status
/usr/lib/cc-ccr/bin/ccr -g cns.service.swupPortalMgmt.status
/usr/lib/cc-ccr/bin/ccr -g cns.swup.UMautolaunch
false
/usr/lib/cc-ccr/bin/ccr -g cns.swup.autoAnalysis.enabled
true
/usr/lib/cc-ccr/bin/ccr -g cns.swup.checkinInterval
2
/usr/lib/cc-ccr/bin/ccr -g cns.swup.lastCheckin
0
/usr/lib/cc-ccr/bin/ccr -g cns.swup.patchbaseline
current
/usr/lib/cc-ccr/bin/ccr -g cns.swup.regRequired
true
/usr/lib/cc-ccr/bin/ccr -g cns.transport.serverurl
tut at 2007-7-7 3:13:37 >

# 5
Hi again.Could I ask what version of Java you are running:# java -version
# 6
$ java -versionjava version "1.5.0_07"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode)$ which java/bin/java
ApA_ at 2007-7-7 3:13:37 >

# 7
Please upgrade to Java 1.5.0 Update 9 as previous versions of Java had a bug which caused problems with Sun UC registrations. http://java.sun.com/javase/downloads/index.jsp
# 8
I get the same error with java version "1.5.0_09".
ApA_ at 2007-7-7 3:13:37 >

# 9
Hi again.A MalformedObjectNameException isn't the sort of thing I would expect to see from a mis-configuration. I suspect that a class file has become corrupted somewhere.Could you re-install SUNWbreg (or SUNWbrg and SUNWbrgr depending on your release of Solaris
# 10
I removed and reinstalled SUNWbrg and SUNWbrgr, but still no luck. :( I also tried with some other packages I think could be involved like SUNWscn-base, but that didn't help either.
ApA_ at 2007-7-7 3:13:37 >

# 11
One last thing I can suggest - could you re-install the SUNWcacao* package(s) - this provides services for Sun Update, and I saw some mention of cacao in the Java backtrace.Mod.
# 12
Could this problem be ipv6 related? Both these hosts have ipv6 addresses. I did some trussing, and got the following:
19549/1:open64("/etc/resolv.conf", O_RDONLY)= 19
19549/1:fstat64(19, 0xFFBFE080) = 0
19549/1:read(19, " d o m a i nx x . y y".., 8192)= 65
19549/1:fstat64(19, 0xFFBFDE40) = 0
19549/1:llseek(19, 0, SEEK_CUR) = 65
19549/1:llseek(19, 0, SEEK_END) = 65
19549/1:llseek(19, 65, SEEK_SET)= 65
19549/1:close(19)= 0
19549/1:sysinfo(SI_HOSTNAME, "xxxxxxxxxx", 256) = 11
19549/1:door_info(4, 0xFFBFBB70)= 0
19549/1:door_call(4, 0xFFBFBB58)= 0
19549/1:door_info(4, 0xFFBFBB70)= 0
19549/1:door_call(4, 0xFFBFBB58)= 0
19549/1:open("/dev/udp6", O_RDONLY) = 19
19549/1:ioctl(19, I_STR, 0xFFBFDC50)= 0
19549/1:close(19)= 0
19549/1:door_info(4, 0xFFBFBCC0)= 0
19549/1:door_call(4, 0xFFBFBCA8)= 0
19549/1:door_info(4, 0xFFBFBE40)= 0
19549/1:door_call(4, 0xFFBFBE28)= 0
19549/1:door_info(4, 0xFFBFBE40)= 0
19549/1:door_call(4, 0xFFBFBE28)= 0
19549/1:open("/dev/udp6", O_RDONLY) = 19
19549/1:ioctl(19, I_STR, 0xFFBFDF20)= 0
19549/1:close(19)= 0
19549/1:door_info(4, 0xFFBFBBA8)= 0
19549/1:door_call(4, 0xFFBFBB90)= 0
19549/1:door_info(4, 0xFFBFBBA8)= 0
19549/1:door_call(4, 0xFFBFBB90)= 0
Exception in thread "main" 19549/1:write(2, " E x c e p t i o ni n".., 27)= 27
java.lang.RuntimeException: javax.management.MalformedObjectNameException: Invalid character `:' in value
19549/1:write(2, " j a v a . l a n g . R u".., 105)= 105
ApA_ at 2007-7-7 3:13:37 >

# 13
Could be. Do you have an IPv6 link from your data centre to an Internet backbone? Probably you are laying IPv6 over IPv4.Try doing the rego with IPv4 and let us know how you get on.-- Modski
# 14
Yes we have ipv6 link from our university campus in Finland. I can't remove those ipv6 addresses now because they are in use, but I'll try that later after I have notified our users.
ApA_ at 2007-7-7 3:13:37 >

# 15
Seems that removing the ipv6 address solved the problem, I was able to registerwhen I unplumbed all inet6 interfaces. So, is this supposed to happen or is this abug in Update Connection software?Though now I'm seeing "No patches required." on all our machines...
tuta at 2007-7-21 15:30:39 >

# 16
..and somehow managed to use wrong forum account for the last reply...
ApA_a at 2007-7-21 15:30:39 >

# 17
Hi.Three questions:What does the output from 'smpatch get' look like?Do you have patch 118777-06 installed?Do you have patch 121118-08 installed?Mod.
# 18
This problem is on other hosts also, I'm using local patch proxy or
https://getupdates1.sun.com/ as patch.source.
118777-06 and 121118-08 are both installed on our systems.
And I'm having following in logs, I think this was discussed on some other thread.
root: [ID 702911 user.error] => com.sun.patchpro.model.PatchProModel@1c6866d<=java.lang.StringIndexOutOfBoun dsException:
String index out of range: -1
ApA_a at 2007-7-21 15:30:39 >

# 19
Could you back out patch 118777-06 and apply the later version from here: http://sunsolve.sun.com/search/document.do?assetkey=1-21-118777-08-1Then try smpatch again?Mod.
# 20
We don't have any machines using the ce driver, so I think this won't make any difference.
ApA_a at 2007-7-21 15:30:39 >

# 21
Updates were down all yesterday afternoon and early this morning.It seems to be working now...
# 22
Dear AllThere was a problem with the distributed current.zip which contained some bad metadata. This has been corrected now, hence the brief outage. We are sorry for the inconvenience.Mod.
# 23
Yes, it seems to be workin fine now. Thanks!
ApA_a at 2007-7-21 15:30:39 >

# 24
I am a problem with Solaris Developer Edition 05/7's register.
In GUI I have the error (error in SCN/cacao) and I would like to know if you have a solution for this problem. And in the terminal, the
(sconadm register -a -r /usr/lib/breg/data/RegistrationProfile.properties) didnt run.
eikea at 2007-7-21 15:30:39 >

# 25
Did you refer to the sconadm documentation? http://sunsolve.sun.com/search/document.do?assetkey=1-9-82688-1did sconadm give any output? which errors specifically have you seen?
# 26
Why does cacao have problem?
# sconadm register -a -r /usr/lib/breg/data/RegistrationProfile.properties
sconadm is running
/*nothing happen*/
# locale
LANG=C
LC_CTYPE=C
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=C
#
eikea at 2007-7-21 15:30:39 >

# 27
There are a number of issues that can cause problems when registering a system, to start with, please verify that you are running the latest revision of the patches below - note that some may not be required depending on which release and platform you are running:
# 12033[5|6]-04: Sun Update Connection Client Localization
# 12108[1|2]-06: Connected Customer Agents 1.1.0
# 12111[8|9]-12: Sun Update Connection System Client 1.0.8
# 12145[3|4]-02: Sun Update Connection Client Foundation
# 12156[3|4]-02: Sun Update Connection Registration, version 1.0.3 - NOT required for Sol10u1 and higher hosts...only initial Sol 10 release needs this (pre-cacao)
# 12223[1|2]-01: Sun Connection agents, transport certificate update
# 12300[3|4]-03: SAM module patch (superceeds IDR125050-01)
# 12300[5|6]-05: Basic Registration Update
# 124463-02: cacao 2.0 patch 02 (Sparc only - no x86 version)
# 12461[4|5]-01: sconadm proxy: UnknownHostException
The patches that have square brackets indicate a different version for sparc and X86 platforms, i.e. xxxxx[sparc|X86]-yy
If you are attempting to register the system from behind an HTTP firewall then you will also need to verify that you have set the proxy host, port, username and password in your registration file AND verify that you are using a version of Java of 1.5.0_11 or 1.5.0_12
# java -version
and for cacao enabled systems:
# cacaoadm get-param java-home
Note that the full SDK/JDK is recommended rather than just the runtime environment.
