Saturday, October 14, 2017

WLS and Java application errors and solutions

Hello everyone, today I am going to share some errors I have had, and how I was able to fix them:

===================
WLS ERROR #1:----
===================

nnt Rotated Account...In AdminConsole Check the DataSource-->ConnectionPool Properties...
java.net.MalformedURLException: Unsupported protocol: t3
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:359)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:269)
at ChangeDataSourceProperties.getMBeanServerConnection(ChangeDataSourceProperties.java:142)
at ChangeDataSourceProperties.getDomainRuntimeServiceMBean(ChangeDataSourceProperties.java:120)
at ChangeDataSourceProperties.getAllDataSources(ChangeDataSourceProperties.java:82)
at ChangeDataSourceProperties.main(ChangeDataSourceProperties.java:296)

FIX:  add the library wljmxclient.jar



===================
WLS ERROR #2:----
===================

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/jndi/ClientEnvironment
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:193)
at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:97)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:371)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:269)
at ChangeDataSourceProperties.getMBeanServerConnection(ChangeDataSourceProperties.java:142)
at ChangeDataSourceProperties.getDomainRuntimeServiceMBean(ChangeDataSourceProperties.java:120)
at ChangeDataSourceProperties.getAllDataSources(ChangeDataSourceProperties.java:82)
at ChangeDataSourceProperties.main(ChangeDataSourceProperties.java:296)
Caused by: java.lang.ClassNotFoundException: weblogic.jndi.ClientEnvironment
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 25 more

  FIX:
     wlthint3client.jar



===================
WLS ERROR #3:----
===================

Exception in thread "main" java.lang.NoSuchMethodError: weblogic.security.subject.SubjectManager.installCESubjectManager(Lweblogic/security/subject/SubjectManager;)V
at weblogic.jndi.WLSClientJNDIEnvironmentImpl$1.run(WLSClientJNDIEnvironmentImpl.java:55)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.jndi.WLSClientJNDIEnvironmentImpl.<clinit>(WLSClientJNDIEnvironmentImpl.java:53)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at weblogic.jndi.internal.JNDIEnvironment.getJNDIEnvironment(JNDIEnvironment.java:38)
at weblogic.jndi.Environment.<clinit>(Environment.java:89)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:193)
at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:97)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:371)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:269)
at ChangeDataSourceProperties.getMBeanServerConnection(ChangeDataSourceProperties.java:142)
at ChangeDataSourceProperties.getDomainRuntimeServiceMBean(ChangeDataSourceProperties.java:120)
at ChangeDataSourceProperties.getAllDataSources(ChangeDataSourceProperties.java:82)
at ChangeDataSourceProperties.main(ChangeDataSourceProperties.java:296)


  FIX:wlfullclient.jar


  Exception in thread "main" java.lang.NoSuchMethodError: weblogic.rjvm.TransportUtils$BootstrapResult.getPeerChannelMaxMessageSize()I
at weblogic.rjvm.t3.MuxableSocketT3.readConnectionParams(MuxableSocketT3.java:365)
at weblogic.rjvm.t3.MuxableSocketT3.connectSocket(MuxableSocketT3.java:592)
at weblogic.rjvm.t3.MuxableSocketT3.createMuxableSocket(MuxableSocketT3.java:211)
at weblogic.rjvm.t3.ConnectionFactoryT3.createConnection(ConnectionFactoryT3.java:29)
at weblogic.rjvm.ConnectionManager.createConnection(ConnectionManager.java:1778)
at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1410)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:443)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:321)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:262)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:199)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:165)
at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:143)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:193)
at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:97)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:371)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:269)
at ChangeDataSourceProperties.getMBeanServerConnection(ChangeDataSourceProperties.java:142)
at ChangeDataSourceProperties.getDomainRuntimeServiceMBean(ChangeDataSourceProperties.java:120)
at ChangeDataSourceProperties.getAllDataSources(ChangeDataSourceProperties.java:82)
at ChangeDataSourceProperties.main(ChangeDataSourceProperties.java:296)


FIX: There was a conflict between some wls jar files and the one used for OIM application.
Search results:      
Binary file ./wlthint3client.jar matches
Binary file ./weblogic.jar matches
Binary file ./wls-api.jar matches
Binary file ./wlfullclient.jar matches

      
I did remove three of them above, and leave just wlfullclient.jar

      
I hope this helps,
Thiago Leoncio.</init></init></clinit></clinit></init>

No comments:

Post a Comment