sconadm registration problem

Hi there,

I'm having problems using sconadm to register. My registration properties file contains:

userName=XXXXXXX

password=XXXXXXX

hostName=

subscriptionKey=XXXXXXXXXX

portalEnabled=false

proxyHostName=ourcachehost

proxyPort=NNNN

proxyUserName=XXXXXXXXX

proxyPassword=XXXXXXXXXX

This command works Ok:

/usr/sbin/sconadm proxy -r register.txt

But this command gives an error:

# sconadm register -a -r register.txt -e softwareUpdate

sconadm is running

Authenticating user ...

Exception in thread "main" java.lang.reflect.UndeclaredThrowableException

at $Proxy6.getOfferingInstanceName(Unknown Source)

at com.sun.cns.basicreg.cacao.SWUPOMCacaoAdapter.getSWUPOfferingInstanceMBean(SWUP OMCacaoAdapter.java:145)

at com.sun.cns.basicreg.cacao.SWUPOMCacaoAdapter.setSubscriptionKey(SWUPOMCacaoAda pter.java:180)

at com.sun.cns.basicreg.BasicRegCLI.run(BasicRegCLI.java:706)

at com.sun.cns.basicreg.BasicRegCLI.main(BasicRegCLI.java:567)

Caused by: javax.management.InstanceNotFoundException: com.sun.scn:name=SWUPOfferingFactory,assetSubProfile=TODO,host=10.0.11.3,assetP rofile=OperatingSystem,scnType=OfferingFactory,Vendor=Sun Microsystems Inc

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServ erInterceptor.java:1010)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(Default MBeanServerInterceptor.java:1349)

at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanServer.java:13 00)

at com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(Defaul tMBeanServerInterceptor.java:285)

at com.sun.cacao.agent.DispatchInterceptor.getClassLoaderFor(DispatchInterceptor.j ava:474)

at com.sun.cacao.agent.auth.impl.AccessControlInterceptor.getClassLoaderFor(Access ControlInterceptor.java:427)

at com.sun.jdmk.JdmkMBeanServerImpl.getClassLoaderFor(JdmkMBeanServerImpl.java:113 0)

at com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.getClassLoaderFor(Ins trumDefaultForwarder.java:153)

at javax.management.remote.rmi.RMIConnectionImpl$4.run(RMIConnectionImpl.java:1306 )

at java.security.AccessController.doPrivileged(Native Method)

at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderFor(RMIConnectionIm pl.java:1303)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:766 )

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)

at sun.rmi.transport.Transport$1.run(Transport.java:153)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:149)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)

at java.lang.Thread.run(Thread.java:595)

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall .java:247)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)

at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)

at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)

at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMI Connector.java:972)

at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandl er.java:201)

... 5 more

# cat /etc/release

Solaris 10 11/06 s10s_u3wos_10 SPARC

Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.

Use is subject to license terms.

Assembled 14 November 2006

The transport layer seems to be working Ok:

# /usr/lib/cc-cfw/platform/transport/bin/cctrunner -p

...

SUCCESSFUL PING

* Closing connection #0

There is a cacao error:

# tail /var/cacao/instances/default/logs/cacao.0

Jul 18, 2007 12:30:40 PM com.sun.scn.jmx.impl.AbstractComponent log

WARNING: SCNClientConfigImpl.deactivate("com.sun.scn.offering.SoftwareUpdate") -- failed, no such module

Jul 18, 2007 12:30:40 PM com.sun.scn.jmx.impl.AbstractComponent log

WARNING: SCNClientConfigImpl.activate("com.sun.scn.offering.SoftwareUpdate") -- failed, no such module

Jul 18, 2007 12:31:00 PM com.sun.scn.jmx.impl.AbstractComponent log

WARNING: SCNClientConfigImpl.deactivate("com.sun.scn.offering.SoftwareUpdate") -- failed, no such module

Jul 18, 2007 12:35:39 PM com.sun.scn.jmx.impl.AbstractComponent log

WARNING: SCNClientConfigImpl.activate("com.sun.scn.offering.SoftwareUpdate") -- failed, no such module

Jul 18, 2007 1:01:39 PM com.sun.scn.jmx.impl.AbstractComponent log

WARNING: SCNClientConfigImpl.activate("com.sun.scn.offering.SoftwareUpdate") -- failed, no such module

Can you help?

Thanks in advance :-)

David

[5389 byte] By [nzirdosa] at [2007-11-27 10:52:39]
# 1

what is the output of the following commands:

# showrev -p | egrep '^Patch: (11978[8|9]|12033[5|6]|12108[1|2])'

# showrev -p | egrep '^Patch: (12111[8|9]|12145[3|4]|12156[3|4])'

# showrev -p | egrep '^Patch: (12223[1|2]|12300[3|4|5|6]|124463|12461[4|5])'

# java -version

ForumModeratora at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

Hi,

Thanks for the quick reply.

# showrev -p | egrep '^Patch: (11978[8|9]|12033[5|6]|12108[1|2])'

Patch: 121081-06 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWccsign, SUNWccccrr, SUNWccccr, SUNWccccfg, SUNWccfwctrl, SUNWccfw, SUNWcctpx, SUNWccinv

Patch: 120335-04 Obsoletes: Requires: 121453-01 Incompatibles: Packages: SUNWpprou

# showrev -p | egrep '^Patch: (12111[8|9]|12145[3|4]|12156[3|4])'

Patch: 121453-02 Obsoletes: 120776-03, 121086-02, 119107-07 Requires: 119574-02, 119254-06 Incompatibles: Packages: SUNWcsu, SUNWcsr, SUNWcsmauth, SUNWccsign, SUNWswupcl, SUNWccccrr, SUNWccccr, SUNWccccfg, SUNWccfwctrl, SUNWccfw, SUNWcctpx, SUNWccinv, SUNWpprou, SUNWppror, SUNWppro-plugin-sunos-base, SUNWupdatemgru, SUNWupdatemgrr

Patch: 121118-11 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWcsmauth

Patch: 121118-09 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWpprou, SUNWppror, SUNWppro-plugin-sunos-base, SUNWupdatemgru, SUNWupdatemgrr

# showrev -p | egrep '^Patch: (12223[1|2]|12300[3|4|5|6]|124463|12461[4|5])'

Patch: 122231-01 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWcctpx

Patch: 124463-02 Obsoletes: Requires: Incompatibles: Packages: SUNWcacaort

Patch: 124614-01 Obsoletes: Requires: Incompatibles: Packages: SUNWscn-base

Patch: 123003-02 Obsoletes: Requires: Incompatibles: Packages: SUNWsamr, SUNWsam

Patch: 123005-05 Obsoletes: Requires: 123003-02, 123630-01 Incompatibles: Packages: SUNWbrg

# java -version

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

#

nzirdosa at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

java versions before 1.5.0_08 have been known to cause problems with registration. can you install 1.5.0_12 and then try to register

ForumModeratora at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4

Hi again,

I've upgraded java:

# java -version

java version "1.5.0_12"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)

Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)

#

but unfortunately the symptoms haven't changed:

# sconadm register -a -r register.txt -e softwareUpdate

sconadm is running

Authenticating user ...

Exception in thread "main" java.lang.reflect.UndeclaredThrowableException

at $Proxy6.getOfferingInstanceName(Unknown Source)

at com.sun.cns.basicreg.cacao.SWUPOMCacaoAdapter.getSWUPOfferingInstanceMBean(SWUP OMCacaoAdapter.java:145)

at com.sun.cns.basicreg.cacao.SWUPOMCacaoAdapter.setSubscriptionKey(SWUPOMCacaoAda pter.java:180)

at com.sun.cns.basicreg.BasicRegCLI.run(BasicRegCLI.java:706)

at com.sun.cns.basicreg.BasicRegCLI.main(BasicRegCLI.java:567)

Caused by: javax.management.InstanceNotFoundException: com.sun.scn:name=SWUPOfferingFactory,assetSubProfile=TODO,host=10.0.11.3,assetP rofile=OperatingSystem,scnType=OfferingFactory,Vendor=Sun Microsystems Inc

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServ erInterceptor.java:1010)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(Default MBeanServerInterceptor.java:1349)

at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanServer.java:13 00)

at com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(Defaul tMBeanServerInterceptor.java:285)

at com.sun.cacao.agent.DispatchInterceptor.getClassLoaderFor(DispatchInterceptor.j ava:474)

at com.sun.cacao.agent.auth.impl.AccessControlInterceptor.getClassLoaderFor(Access ControlInterceptor.java:427)

at com.sun.jdmk.JdmkMBeanServerImpl.getClassLoaderFor(JdmkMBeanServerImpl.java:113 0)

at com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.getClassLoaderFor(Ins trumDefaultForwarder.java:153)

at javax.management.remote.rmi.RMIConnectionImpl$4.run(RMIConnectionImpl.java:1308 )

at java.security.AccessController.doPrivileged(Native Method)

at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderFor(RMIConnectionIm pl.java:1305)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:768 )

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)

at sun.rmi.transport.Transport$1.run(Transport.java:153)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:149)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)

at java.lang.Thread.run(Thread.java:595)

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall .java:247)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)

at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)

at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)

at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMI Connector.java:972)

at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandl er.java:201)

... 5 more

# tail /var/cacao/instances/default/logs/cacao.0

Jul 18, 2007 3:25:21 PM com.sun.cacao.element.ElementSupport setAdministrativeState

FINE: Administrative state change to UNLOCKED : com.sun.cacao:type=ModuleManager,instance="com.sun.scn.offering.ProductRegistra tion"

Jul 18, 2007 3:25:21 PM com.sun.cacao.container.impl.ContainerPrivate init

INFO: Cacao Initialization completed

Jul 18, 2007 3:25:21 PM com.sun.cacao.common.utils.impl.ContainerUtils printContainerStatus

INFO: cacao.print.status: 0

Jul 18, 2007 3:26:43 PM com.sun.scn.jmx.impl.AbstractComponent log

WARNING: SCNClientConfigImpl.activate("com.sun.scn.offering.SoftwareUpdate") -- failed, no such module

Jul 18, 2007 3:27:46 PM com.sun.scn.jmx.impl.AbstractComponent log

WARNING: SCNClientConfigImpl.activate("com.sun.scn.offering.SoftwareUpdate") -- failed, no such module

#

Thanks,

David

nzirdosa at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5

can you check that cacao is using the new java version - use the following command:

# cacaoadm get-param java-home

also try installing patch 123003-03

ForumModeratora at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6

Hi again,

# cacaoadm get-param java-home

java-home=/usr/jdk/jdk1.5.0_12

#

I've installed patch 123003-03 as you suggested - and I restarted a couple of things afterwards:

cacaoadm stop

cacaoadm start

/usr/lib/cc-cfw/framework/lib/cc-client-adm stop

/usr/lib/cc-cfw/framework/lib/cc-client-adm start

Still the same problem symptoms, sorry.

Thanks for your help.

David

nzirdosa at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7

I would like you to reinstall the SCN/SAM packages.

Please follow the instructions below:

# pkgrm SUNWscnsom

# pkgrm SUNWscnsomr

# pkgrm SUNWscnprm

# pkgrm SUNWscnprmr

# pkgrm SUNWscn-base

# pkgrm SUNWscn-base-r

cd to Product location or media

# pkgadd SUNWscn-base-r

# pkgadd SUNWscn-base

# pkgadd SUNWscnprmr

# pkgadd SUNWscnprm

# pkgadd SUNWscnsomr

# pkgadd SUNWscnsom

Then run the following command:

# pkginfo -l SUNWscnsom SUNWscnsomr SUNWscnprm SUNWscnprmr SUNWscn-base

SUNWscn-base-r

If all the above packages are sucessfully installed please run the following

commands:

# pkgrm SUNWsam

# pkgrm SUNWsamr

cd to Product location or media, e.g. Solaris install disk

# pkgadd SUNWsamr

# pkgadd SUNWsam

Then run the following command:

# pkginfo -l SUNWsamr SUNWsam

If all the above packages are sucessfully installed please run the following

commands:

# cacaoadm stop

# cacaoadm status

# /usr/lib/cc-ccr/bin/eraseCCRRepository

# rm /var/scn/persistence/SCN*

# cacaoadm start

Then re-register your system.

ForumModeratora at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 8

Wonderful! It is all working now, thanks for your help.

The system was missing SUNWscnsomr, which explains the "failed, no such module" error messages in the cacao log.

I have a follow-up question: since SUNWscnsomr isn't listed as a dependency for any of the other patch-update subsystem packages (I'm looking at the PKG/install/depend files) - is there a list somewhere of which groups of packages need to be installed for particular functionality to work? For example: if you want patch updating via Sun Connection then you need this set of packages, for SNMP you need those packages, etc.

Thanks again for your help - it is much appreciated.

cheers,

David

Message was edited by:

nzirdos

nzirdosa at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 9

The package list for Sun Update Connection are as follows:

o SUNWzoner

o SUNWj5rt

o SUNWj5rtx (64bit)

o SUNWpoolr

o SUNWpool

o SUNWadmc

o SUNWadmfr

o SUNWadmfw

o SUNWlur

o SUNWluu

o SUNWluzone

o SUNWzoneu

o SUNWbrg was SUNWbreg

o SUNWccccfg

o SUNWccccr

o SUNWccccrr

o SUNWccfw

o SUNWccfwctrl

o SUNWccinv

o SUNWccsign

o SUNWcctpx

o SUNWcsr

o SUNWcsu

o SUNWdc Only for pre Sol10U2 hosts

o SUNWppro-plugin-sunos-base

o SUNWppror

o SUNWpprou

o SUNWxcu4

o SUNWctpls

o SUNWmfrun

o SUNWscn-base-r

o SUNWscn-base

o SUNWscnprmr

o SUNWscnprm

o SUNWscnsomr

o SUNWscnsom

These additional packages are optional if using a graphical environment:

o SUNWxwrtl

o SUNWxwice

o SUNWxwfnt

o SUNWxwplr

o SUNWxwplt

These additional packages are required to register a host:

o SUNWcacaort

o SUNWjdmk-base NOT: SUNWjdmk-runtime, SUNWcacaort depends on this

ForumModeratora at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 10

great !

I was running into a similar problem, but since Sun listed now the package & patch requirements I could see what was missing on my side. Thank you! This saved me a call to our Sun representative.

My problem was registering the host:

# updatemanager

Exception occurred during event dispatching:

java.lang.reflect.UndeclaredThrowableException

at $Proxy8.getOfferingInstanceName(Unknown Source)

at com.sun.cns.basicreg.cacao.SWUPOMCacaoAdapter.getSWUPOfferingInstanceMBean(SWUPOMCacaoAdapter.java:145)

at com.sun.cns.basicreg.cacao.SWUPOMCacaoAdapter.setSubscriptionKey(SWUPOMCacaoAdapter.java:180)

...

solution: patch 123171-06 (SCN cacaoadm) and java (JDK) patch 118666-12 updating to 1.5_12

-- Nick

der_nikia at 2007-7-29 11:39:09 > top of Java-index,Administration Tools,Sun Update Connection-System...