Arnab karmakar

Ranch Hand
+ Follow
since Oct 04, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Arnab karmakar

But if you can tell me whether immutable objects are garbage collected with one simple example it will be great.

Thanks
Arnab
You are right that String s = "dasdsa"; will create only one object and that too in pool bu with String s1 = new String("dasda"); will create one object in non-pool and the one reference in pool which will refer to non-pool object.

But I think we are diverting from the actual question that I have put. If anybody can explain me when these will be garbase collected, I will be thankful.
Hi All,

I have got a confusion regarding the garbage collection of any immutable class including String,Integer etc. Can anyone give me one small example explaining this.

If do the following :

Case 1:
String s1 = "123"; //line 1
s1 = "abc"; // line 2
//line 3
At line 3 how many objects are elligible for garbase collection.

Case 2:
String s2 = new String{"123"); //line 1
s2 = new String("abc"); // line 2
//line 3
At line 3 how many objects are elligible for garbase collection.

Case 3:
Integer i1 = new Integer("123"); //line 1
i1 = new Integer("567"); // line 2
At line 3 how many objects are elligible for garbase collection.

Appreciate your help.

Thanks
Arnab
Sorry for leaving some part of the question.
Can we call the synchronized blocks of the object?
Please consider the following codes :

synchronized(object) {
try {
Thread.sleep(100000);
} catch(InterruptedException e) {
}
}

If this is a code which is executed by a thread, then as far as sleep's specification is concerned, it will not free the lock which is currently on object.

Is it possible to use the "object" to do some other opnerations on it?

Thanks
Arnab
Are there any topic in EJB,Struts,JSP where there could be done some research for thesis submission.

Thanks
Arnab
Thanks Rich,

Since i am from java backgrd, gameloft is also in java domain. They have started recruting ppl now.

Can u tell me whether they are recruiting or not(the company that u have mentioned).

Thanks
Arnab
18 years ago
Hi All,

Can you please tell me how is the rating of this company in the game work.

http://www.gameloft.com/

This is a java basesd game company in hyderabad.

Thanks
Arnab
18 years ago
Hi,

Can anybody tell me how do I integrate Eclipse and tomcat.
I have created one server instance in Eclipse and I want to deploy my
web application in the server instance and want to run in the eclipse
IDE. But I am getting follwing error -

HTTP Status 404 - /DR_Tool/WEB-INF/jsp/test/createDR.jsp

--------------------------------------------------------------------------------

type Status report

message /DR_Tool/WEB-INF/jsp/test/createDR.jsp

description The requested resource (/DR_Tool/WEB-INF/jsp/test/createDR.jsp) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.17


In the console I am getting the follwing errors -

May 31, 2006 5:18:19 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;E:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Ant\jakarta-ant-1.4\bin;C:\bea\jdk142_05\bin;C:\Program Files\cvsnt
May 31, 2006 5:18:20 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 31, 2006 5:18:20 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 846 ms
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base e:\DR_Tool\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\webapps\DR_Tool does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3814)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3985)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/DR_Tool] startup failed due to previous errors
May 31, 2006 5:18:20 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/DR_Tool] has not been started
May 31, 2006 5:18:20 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 31, 2006 5:18:20 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 31, 2006 5:18:20 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
May 31, 2006 5:18:20 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 31, 2006 5:18:20 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 924 ms


I have checked in the webapps directory of tomcat installation and have found that the DR_Tool is not installed in that directory.

Please let me know if I am doing anything wrong which is creating this problem.

Thanks
Arnab
But I think this is only supporting Microsoft Excel.

Thanks
Arnab
18 years ago
Are there any libraries to generate Microsoft Word Documents in Java

Thanks
Arnab
18 years ago
Hi ,

Can u give me information about that consultant.
It would be of gr8 help.

THnakz
Arnab
18 years ago
Hi All,

Can anybody tell me the way to diable the automatic synchronization that occurs between deplotment Descriptor and the code model when we add anything in the DD in WSAD.

ARnab
19 years ago
Hi All,

I am developing a client server software where I found a typical type of problem. The is one session bean n the project. When two persons login into the system with the same userID, an abnormal behaviour starts. The usual flow is disturbed. It creates those types of entries in the database which it should not be. Do you have any idea about the scenario behind this. Is there any conflict of remote session instance being created in EJB container for the same userID.

Thanks in advance.

Arnab
But how do i fix it.
19 years ago