Error while starting WebLogic Server : java.lang.NumberFormatException: null

Last week I was working on WebLogic Server where Admin Server failed to start because Disk was 100% full. Admin Server failed to start after clearing some unwanted files from server with below error message

Error message in Admin Server log file $DOMAIN_HOME/servers/AdminServer/logs/AdminServer.log

__________________
<aug 13, 2010 2:49:51 PM BST> <Critical> <WebLogicServer> <BEA-000386>
<Server subsystem failed. Reason: java.lang.NumberFormatException: null
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:417)
at java.lang.Integer.parseInt(Integer.java:499)
at weblogic.ldap.EmbeddedLDAP.validateVDEDirectories(EmbeddedLDAP.java:1035)
at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:212)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace

_________________

Since error was point to embedded LDAP server for weblogic so I compared files related to embedded ldap server ($DOMAIN_HOME/ servers/ AdminServer/ data/ ldap/) with one of our running weblogic instance and found that size of replicas.prop file was 0 byte.

$DOMAIN_HOME/servers/AdminServer/data/ldap/conf

-rw-r—– 1 oraowc dba 568 Aug 13 09:17 vde.prop
-rw-r—– 1 oraowc dba   0 Aug 13 09:17 mapping.cfg
-rw-r—– 1 oraowc dba   0 Aug 13 14:33 replicas.prop

.

Fix:

Option 1 – Open

$DOMAIN_HOME/servers/AdminServer/data/ldap/conf/replicas.prop and add line
replica.num=0

or

Option 2– Move file $DOMAIN_HOME/servers/AdminServer/data/ldap/conf/replicas.prop to replicas.prop.bak  (On Restart WebLogic Server will recreate this file)

 

Learn Oracle Weblogic Server Administration

 

Get 100 USD OFF + 100% Money Back Guarantee

Click here to get Early Bird Discounts

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Oracle Gold Partner specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

18 comments
lyonn says August 23, 2010

Good post, It’s true, I change these file and my weblogic run fine.

Greetings

Reply
mohan says May 11, 2011

javax.security.auth.login.FailedLoginException: [Security:090303]Authentication Failed: User localhost weblogic.security.providers.authentication.LDAPAtnDelegateException: [Security:090295]caught unexpected exception
at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:244)
at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Truncated. see log file for complete stacktrace

Reply
mohan says May 11, 2011

can say how to run managed server…i am using weblogic 10.3.3. and oim 11g
i am getting authentication failure while starting managed server where as weblogic is starting normally

Reply
Atul Kumar says May 11, 2011

@ Mohan,

1. Did it ever work in past ?
2. Did you configure OIM server by running condfig.sh (first time)

If you have boot.properties in $DOMAIN_HOME/servers/oim_server1/security then remove it and then start it using

$$DOMAIN_HOME/bin/startManagedServer.sh oim_server1 http://weblogicservername:7001

enter username and password when prompted

Reply
José Luis says May 17, 2011

Thanks you. I change these file and my weblogic start fine, good, my server not start because Disk was 100% full, and it created the empty file.

Reply
Mohankumar says May 19, 2011

where can i download OAM 10.1.4.1.0.1

Reply
Mohankumar says May 19, 2011

Hi..Atul Kumar

I have installed OAM 10.1.4.0.1 with AD now i want to upgrade to OAM 10.1.4.0.4 can u please provide me the doccument to upgade

Reply
Atul Kumar says May 19, 2011

@ Mohankumar,
Please leave comment under correct post (You can do this under any OAM post where as this is weblogic post)

Why are you installing OAM 10.1.4.0.1 when latest in 10g is 10.1.4.3 and in 11g its 11.1.1.3 (why not to install 10.1.4.3 directly)

Reply
Mohankumar says May 19, 2011

HI..

while installing oam Oracle Access Manager 10.1.4.0.1 Identity Server

i am getting following error…
i am installing on ubuntu 10.10 can you please provide solution thank you

The product that you are about to install needs to be owned by a dedicated
user. Only root or the dedicated user may be able to start the service. Most
of the time the server is run as `root’ or `nobody’.

Enter the username the Identity server is running as [nobody] oamuser

Enter the Group for the above username [nobody] oamuser

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1

Sorry, invalid user `oamuser’ or invalid group `oamuser’.
Please check and enter again.

Reply
lucasynafuko says April 3, 2012

Hi Atul Kumar,
Thanks for your post, it was very helpfull !!

Reply
catalin says May 31, 2012

Thanks Kumar! It worked!

Reply
Radek says July 12, 2012

Thanks, it’working now

Reply
morenji says October 11, 2012

Thank you Atul! You saved my *utt this afternoon 😉

Reply
Giga says December 3, 2012

Just wanted to say Thank you very much :)

Reply
Filoteia says March 14, 2013

This post is very useful. it worked nicely! Thanks :)

Reply
Raja says May 19, 2013

Thanks YOU. You saved lot of TIME.

Reply
Jasmine says January 4, 2015

Hi Kumar,

Excellent articles… Thanks so much for your time in making this.

Reply
Manoj says May 14, 2016

Thanks its resolve my problem .web logic server working fine now.

Reply
Add Your Reply