Debbie Tom

Greenhorn
+ Follow
since Sep 12, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Debbie Tom

Hi Santosh,

Thanks for ur reply.But still i get the same error.



Error creating logFile: /usr/local/bea81/user_projects/domains/brindomain/brinserver/ldap/log/EmbeddedLDAP.log (Permission denied)
<Oct 17, 2005 4:19:15 PM IST> <Error> <EmbeddedLDAP> <000000> <Error opening the Transaction Log: /usr/local/bea81/user_projects/domains/brindomain/brinserver/ldap/ldapfiles/EmbeddedLDAP.tran (Permission denied)>
<Oct 17, 2005 4:19:15 PM IST> <Error> <EmbeddedLDAP> <000000> <Error Instantiating 'dc=brindomain': null>
<Oct 17, 2005 4:19:15 PM IST> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thown is java.lang.ClassCastException. This may indicate a problem with the data files for the Embedded LDAP Server. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files exist in /usr/local/bea81/user_projects/domains/brindomain/brinserver/ldap/backup.>
<Oct 17, 2005 4:19:15 PM IST> <Critical> <WebLogicServer> <BEA-000364> <Server failed during initialization. Exception:weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]
java.lang.ClassCastException
at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:266)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:816)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]
at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:276)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:816)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
>
<Oct 17, 2005 4:19:15 PM IST> <Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize the server: weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]>
***************************************************************************
The WebLogic Server did not start up properly.
Exception raised: 'weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]'
Reason: weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]
***************************************************************************
18 years ago
Hi all,

Wen i start weblogic i get the following error:

<Critical> <WebLogicServer> <BEA-000364> <Server failed during initialization. Exception:weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]
java.lang.ClassCastException
at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:266)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:816)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]
at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:276)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:816)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
>
<Oct 17, 2005 11:18:38 AM IST> <Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize the server: weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]>
***************************************************************************
The WebLogic Server did not start up properly.
Exception raised: 'weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]'
Reason: weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server - with nested exception:
[java.lang.ClassCastException]
***************************************************************************

and the startup is failing.
Can someone help me?
18 years ago
code
___________________________________________________________________
class for1
{
public static void main(String[] args)
{
int k;
for(int i=0;i<10;i++){
int k;
}
int i;
}
}
_______________________________________________________________________

Gives error "k is already defined in main()"
This means tat for loop doesnt create a scope of it own.

But the declaration of a variable within for loop, has a scope tat ends with for loop.Tatz why wen the declaration is placed before for loop..
it clashes with the scope.

But wen placed after for loop. the scope of the created variable ends with for so it gives no error.

This is my assumption.Any comments on this?
Thanks Tom!

It appears as though a object contains another object but still it does not.It contains only reference.

Can some one shed light upon how the memory will be allocated?
May be tat can make things clear...
18 years ago
A Slightly different explanation

Code:
-----------------------------------------------------------------------
public class Casting21 {
static int[] i1 = {1}, i2 = {3}; //1

static void m1(int[] i1) {//creates a local variable i1.contains value {1)
int[] i3 = i1; //class variable i3 now contains value {1}
i1 = i2;// Variable hiding occurs and local variable i1 is assigned to value of i2-{3}.
i2 = i3; //class variable i2 is assigned i3's value which is {1}
}

public static void main (String[] args) {
m1(i1);
System.out.print(i1[0] + "," + i2[0]);
}
}
-----------------------------------------------------------------------
public class Class01 {
public static void main(String args[]){

char digit='c';
//1
int index=0;
for(;index<10;index++){
switch(digit){
case 'c':
int i1;
default:
int i2;
}
}//FOR
//2
int index=8;
}


}

This gives error.Saying tat variable is already declared in main.

But...

public class Class01 {
public static void main(String args[]){

char digit='c';
//1
;
for(int index=0;index<10;index++){
switch(digit){
case 'c':
int i1;
default:
int i2;
}
}//FOR
//2
int index=8;
}

This dosent give error.
Wat i think is the scope of a varible declared in for getz over with the for loop.
Ritu,

Here the scope of the variable matters.

public class Class01 {
public static void main(String args[]){

char digit='c';
int index; //1

for(int index=0;index<10;index++){
switch(digit){
case 'c':
int i1;
default:
int i2;
}
}//FOR
//2

}
}
Here u can see variables index declared within main method.This is redeclaring a variable.





public class Class01 {
public static void main(String args[]){

char digit='c';
//1

for(int index=0;index<10;index++){
switch(digit){
case 'c':
int i1;
default:
int i2;
}
}//FOR
int index;//2

}
}
In this one variable is declared within main method and other declared as part of class.

Hope this helps!
Hi Ritu,

U get compilation error because,
u are redefining variable-index in the same scope.(scope is determined by the {})

Wen u put tat in //2 the scope of index is over and u are creating another varaible.so u dont get error.
Hi Tom,

My understanding is a object cannot contain another object.
Even though the object a1 appears to contain array(object) arr it contains only a reference to it.The memory for arr is allocated outside of a1.

Each object of the class arrayOb will contain a separate memory of array arr. :

Am i right?
18 years ago
Hi Tom,

Thanks for the reply.Does this statement hold good ?
objects cannot contain objects.

if so, the example does contain a object within object.
Does the memory for the array arr is allocated within the memory of a1?

Wat i understand from ur reply is the object a1 only contains a reference to object arr.Can u explain a bit more on this?

Thanks!
18 years ago
In java, aggregation of objects is only through reference.(Read it in Certification book by Khalid Mughal)
But..

[ September 13, 2005: Message edited by: Michael Ernest ]
18 years ago