It's all about Weblogic..!!!

January 13, 2011

java.lang.SecurityException: [Security:090398]Invalid Subject error when one domain calls a remote method from ejb on another domain

Filed under: Core Issues — streethawkz @ 7:02 am

Stack Trace :

<25/1/2011 06:54:27 PM CDT> <Error> <xxx> <BEA-000000> <[xxx] Error Catch Exception: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[xxxx, Administrators]at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)

.

Truncated. see log file for complete stacktrace

Solution / Workaround :

We need to setup a domain trust.

Link : http://download.oracle.com/docs/cd/E15051_01/wls/docs103/ConsoleHelp/taskhelp/security/EnableGlobalTrustBetweenDomains.html

Advertisements

java.lang.NullPointerException while installing WLS 10.3.3

Filed under: Core Issues — streethawkz @ 6:27 am

Stack Trace :

2010-12-23 10:12:26,539 DEBUG [WizardController] com.bea.plateng.wizard.WizardController – WizardController waiting…2010-12-23 10:12:26,540 DEBUG [stringEval] com.bea.plateng.wizard.silent.tasks.StringEvaluationTask – Invoking Method: public boolean com.bea.plateng.wizard.silent.tasks.StringEvaluationTask.isNull(java.lang.String,java.lang.String) with parameters: (null, null)2010-12-23 10:12:26,540 DEBUG [WizardController] com.bea.plateng.wizard.TargetWalker – Retrieving Next Task2010-12-23 10:12:26,540 DEBUG [WizardController] com.bea.plateng.wizard.TargetWalker – Configuring task: set –> com.bea.plateng.wizard.silent.tasks.StoreStringTask2010-12-23 10:12:26,540 DEBUG [WizardController] com.bea.plateng.wizard.WizardController – WizardController waiting…2010-12-23 10:12:26,541 DEBUG [WizardController] com.bea.plateng.wizard.TargetWalker – Retrieving Next Task2010-12-23 10:12:26,549 DEBUG [WizardController] com.bea.plateng.wizard.TargetWalker – Configuring task: productDirChooser_gui –> com.bea.plateng.wizard.installer.gui.tasks.ProductDirChooserTask2010-12-23 10:12:26,651 DEBUG [WizardController] com.bea.plateng.wizard.GUIContext – Waiting for task panel update…2010-12-23 10:12:26,651 DEBUG [WizardController] com.bea.plateng.wizard.GUIContext – Task panel updated.2010-12-23 10:12:26,651 DEBUG [WizardController] com.bea.plateng.wizard.WizardController – WizardController waiting…2010-12-23 10:12:28,289 DEBUG [WizardController] com.bea.plateng.wizard.installer.helpers.DiskSpaceHelper – check available space for Product Dir2010-12-23 10:12:28,293 ERROR [WizardController] com.bea.plateng.wizard.WizardController – Uncaught Exceptionjava.lang.NullPointerException at java.io.File.<init>(File.java:234) at com.bea.plateng.wizard.installer.diskspace.TempDir.<init>(TempDir.java:55) at com.bea.plateng.wizard.installer.diskspace.TempDir.getInstance(TempDir.java:41) at com.bea.plateng.wizard.installer.helpers.DiskSpaceHelper.checkDiscSpaceForProductInstallation(DiskSpaceHelper.java:255) at com.bea.plateng.wizard.installer.helpers.ProductDirHelper.setStoreKeysAndValidateDiskSpace(ProductDirHelper.java:476) at com.bea.plateng.wizard.installer.helpers.ProductDirHelper.validateAndSet(ProductDirHelper.java:278) at com.bea.plateng.wizard.installer.gui.tasks.ProductDirChooserTask.okNext(ProductDirChooserTask.java:143) at com.bea.plateng.wizard.WizardController.nextTask(WizardController.java:642) at com.bea.plateng.wizard.WizardController.run(WizardController.java:519) at java.lang.Thread.run(Thread.java:735)2010-12-23 10:12:29,832 DEBUG [WizardController] com.bea.plateng.common.cleanup.CleanupTaskManager – Preparing cleanup task: com.bea.plateng.wizard.installer.cleanup.tasks.CleanupTempTask2010-12-23 10:12:29,832 DEBUG [WizardController] com.bea.plateng.common.cleanup.tasks.AbstractCleanupTask – com.bea.plateng.wizard.installer.cleanup.tasks.CleanupTempTask.doBefore()2010-12-23 10:12:29,832 DEBUG [WizardController] com.bea.plateng.wizard.installer.cleanup.tasks.CleanupTempTask – Directory not set(“” after substitute).2010-12-23 10:12:29,833 DEBUG [WizardController] com.bea.plateng.wizard.WizardController – Terminating.

Solution / Workaround :

– Verified the permissions.

– Checked the disk space but still getting the same error :  ” com.bea.plateng.wizard.installer.helpers.DiskSpaceHelper – check available space for Product Dir2010-12-23 10:12:28,293 ”
Note :

When you download Weblogic Installer from ” edelivery.oracle.com ” or ” http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html ”  if you find “wls1033_generic.zip ” file after unzipping ” V21016-01.zip ”
Then please rename the file to “wls1033_generic.jar ” and run the following command :

java -jar wls1033_generic.jar

DONOT unjar the file further. Weblogic installer jar files are executable jar files, so you just need to run then using java -jar command.

January 11, 2011

SSLHandshakeException while connecting to admin server using WLST over t3s

Filed under: Core Issues — streethawkz @ 5:25 pm

Stack Trace :

javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3s://localhost:7002: Destination unreachable; nested exception is:
javax.net.ssl.SSLHandshakeException: FATAL Alert:HANDSHAKE_FAILURE – The handshake handler was unable to negotiate an acceptable set of security parameters.; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:787)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:366)
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:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

—-

D:\weblogic\wls924\user_projects\domains\saml_1.1_source_post>java weblogic.WLST

Initializing WebLogic Scripting Tool (WLST) …
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> connect()

Please enter your username [weblogic] :weblogic

Please enter your password [weblogic] :

Please enter your server URL [t3://localhost:7001] :t3s://localhost:7002

Connecting to t3s://localhost:7002 with userid weblogic …

localhost – 127.0.0.1 was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not.If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.>Traceback (innermost last):

File “<console>”, line 1, in ?

File “”, line 22, in connectWLSTException: ‘Error occured while performing connect :

Error getting the initial context. There is no server running at t3s://localhost:7002 Use dumpStack() to view the full stacktrace’

wls:/offline>

Solution / Workaround :

– Use the following flags while starting WLST :

java -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.CustomTrustKeyStoreType=”JKS” -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=”D:/weblogic/wls924/user_projects/domains/saml_1.1_source_post/trust.jks” weblogic.WLST

OR

java -Dweblogic.security.SSL.ignoreHostnameVerification=true weblogic.WLST

OR

Recreate the certificates with the cn name same as the host name of the machine so that the host name verification succeeds.

Create a free website or blog at WordPress.com.