Betsy Camel

Ranch Hand
+ Follow
since Oct 02, 2003
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 Betsy Camel

Hi All,

We have a functionality in our application in which the record added by 1 user has to be approved by another user. Recently we found that the record added by 1 user is being stamped with another user details though the second user had not logged into the application on that day. When i checked the queries i find the userid to be passed as empty values ( in the logs ) but the data stamped at the back end is of some other user... Could this be because of toplink stale sessions. Please provide your suggestions and inputs on resolving this problem(assuming that its because of stale sessions )

regards
betsy
Hmm, Actually these DTO's are the model classes for toplink tables. So i cannot create an interface. Could you please suggest some other method so that i can set the values dynamically and return the object please
8 years ago
Hi all,

I have 10 DTO's with similar methods. I have to load each class and set these DTO's dynamically. I donot want to create 10 different objects and return 10 objects. Can someone give me a simpler approach to dynamically set the DTO methods and return 1 object to the main method. Hope i am clear.

Thanks
8 years ago
Could you please give me some good links on that. I am unable to get hold of any good links that gives information on how a sql injection can be prevented in toplink.
Hi

We have a web application that uses Toplink. Recently we found sql injection issues in the application. When i searched the web i found that there is no details on how this can be avoided in toplink. Can anyone help me in solving this issue. I basically want to avoid this and would like to know if there are any configurations that need to be done. Else what are the other ways to prevent this.
Thanks
Hi
I want the java code to detect new instances of Internet explorer that is opened. I am capturing the count of IE opened in a system. Please help
Regards
10 years ago
//package addressbook.HQL;


I have already posted the mapping files. Please help!
[ November 04, 2008: Message edited by: Paul Sturrock ]
Hi all,

I have two tables with the following columns :

Table name : employee
empid | int(11) | YES | | NULL
ename | varchar(20) | YES | | NULL
mgrid | varchar(20) | YES | | NULL

Table name : link
empid | int(11) | YES | | NULL
mgrid | varchar(20) | YES | | NULL

I would like to use the a criteria and mapping for the following condition in sql :

the mapping i have created looks like the below:

and

NewFile.hbm


I am however getting errors like
org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of Honey.setLast

Please help me asap.
[ November 03, 2008: Message edited by: Paul Sturrock ]
hi

please tell me how to compile and deploy and run rni example in weblogic. Please it is very very urgent..
help as soon as possible
12 years ago
YEs i am getting a connectException. what does this mean ?
12 years ago
Hi all,

I have a requirement to send heartbeats to servers in a cluster whenever a particular event occurs. is there a api to implement the same.
12 years ago
hi
i am getting the following error while testing database connections.

junit.framework.AssertionFailedError: Exception in constructor: testhasOAVRole (java.lang.NullPointerException
at com.gm.bpd.common.transaction.Session.connect(Session.java:69)
at com.gm.bpd.common.transaction.Session.<init>(Session.java:35)
at com.gm.bpd.admin.dao.testACLCUDDAO.<init>(testACLCUDDAO.java:15)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at junit.framework.TestSuite.createTest(TestSuite.java:131)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
at junit.framework.TestSuite.<init>(TestSuite.java:75)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(RemoteTestRunner.java:399)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
)
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.TestSuite$1.runTest(TestSuite.java:263)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)


please find the class below.





Please help me resolve ASAP

[edited to add code tags]
[ April 16, 2008: Message edited by: Jeanne Boyarsky ]
12 years ago
Hi jeanne,

your first point - test the dao's via pure junit requires clarification as the dao class has a lot of session objects which require servletcontext. can this scenario be tested via pure junit? i have tried still i get the same error. can you please help me in understanding how to test this scenario.
12 years ago
Hi all,

I have a application with struts framework which has a DAO class, a bussiness object class. i am using strutstestcase for testing the struts app. but when it gets connected to the DAO(which has lots of session objects getting connected to the DB), the tests donot run. It gives a nullpointerexception. i guess this should be a in-container testing. can anyone give me an idea of which would be the best tool for testing this type of application. Please reply soon.
12 years ago