This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!

Rajesh Datla

Greenhorn
+ Follow
since Mar 28, 2007
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 Rajesh Datla


Joe,

After adding below code in Junit test cases, there is no out of memory :permgen but classloader violation errors are shown

@PowerMockIgnore( {"javax.management.*","org.apache.log4j.*"})


error message="loader constraint violation: when resolving method "org.apache.log4j.LogManager.getLogger(Ljava/lang/Class;)Lorg/apache/log4j/Logger;" the class loader (instance of org/powermock/core/classloader/MockClassLoader) of the current class, com/test/server/log/lookup/demoLookup, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for resolved class, org/apache/log4j/LogManager, have different Class objects for the type ger.getLogger(Ljava/lang/Class;)Lorg/apache/log4j/Logger; used in the signature" type="java.lang.LinkageError"

i ran ant with -verbose to find which jars has same class getting loaded twice, log trace messages are not clear. any idea?

Is there any tool to find which jar file is getting loaded with same log4j class again?.


Regards
Raj
6 years ago
Thank you for your suggestion

error is: mv: 0653-401 Cannot rename /home/demo1/* to /demo2/*:
A file or directory in the path name does not exist

using below code helped to solve the problem:


[ December 15, 2008: Message edited by: Martijn Verburg ]
12 years ago
Hi All,
I am trying to run UNIX move command using Java exec method but its throwing error, unable to rename. Here below is the code i am trying to run to move all files from one directory to another directory. source and destination directory exists.



if i give "mv /home/demo1 /home/demo2" in exec method, its working, with * character its giving problem.

Please help me in resolving the problem.
Thank you
[ December 12, 2008: Message edited by: Martijn Verburg ]
12 years ago
Hi All,
I am learning Hibernate. while Running Sample application specified in hibernate website http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
i am getting following error

[java] Initial SessionFactory creation failed.org.hibernate.InvalidMappingException: Could not parse mapping document from resource events/Event.hbm.xml
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at util.HibernateUtil.<clinit>(Unknown Source)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource events/Event.hbm.xml

i could not able to find root cause of the problem.

Regards
Rajesh Datla
Hi All,
While running shell script using another shell script i am

getting "Warning: UNIXProcess.forkAndExec native error: No such file or

directory" on Redhat linux environment.

Regards
Rajesh
14 years ago
Hi All,
Is there a command in linux to display all installed programs on a machine?.

Regards
Rajesh D
14 years ago