Om Tejas

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

Recent posts by Om Tejas

One option which I found is to open the cmd shell using "Runas administrator" option. This resolved my problem.
13 years ago
Hi,

I am executing a .exe file using


The environment is Windows 7 OS. And I am getting this error:

"Execute Failed: java.io.IOException : Cannot run program... CreateProcess error=740, The requested operation requires elevation".

Any help to resolve this would be greatly appreciated. Meanwhile, I will continuw with my own search to get around this problem.
13 years ago
My class hierarchy looks like this.


This is very simple example for ClassPerHierarchy inheritance and I have set the DiscriminatorColumn and DiscriminatorValue. While doing the query, I also want to retrieve the value in discriminator column. But the value does not come straightforward. I tried by declaring a field "vehicleModel" in Vehicle class but this throws out "Duplicate column" exception.

Any idea how this can be done ?
The link and wiki gives information on necessary condition, prevention, avoidance and detection. My question what to do after deadlock is dectected. I have come across some articles which say that ThreadMxBean can be used to detect the deadlock threads. What I am trying to find out is there a way to move the threads in deadlock out of deadlock state once deadlock is detected.
Yes for a specific code. For example when using java threads.



If I am not wrong, the above is a potential deadlock scenario. Is there a way to break this deadlock, apart from Ctrl+c etc. Any APIs
Hi,

Deadlock is very common in Java. Is there a way to break the deadlock using any APIs.
@Rob

Ok , I got your point. The tool should at-least copy file to local system and then diff and then may be discard th remote-file copied in local system.

I am looking for some set of UI based SDK/APIs which can help in showing, doing diff, merging graphically. Using those set of APIs I should be able to highlight the line having diffs, give an option to merge etc. I am trying to develop a mini-tool which can achieve this. Any little direction/suggestion can help me a lot.

Thanks in advance.
Gaurav
13 years ago
As far as I know, existing tools only compare files on same system. I want to compare files which is in remote machine without transferring file to local system
13 years ago
Hi,

I hope I am posting the topic to correct forum. I have a task at hand where-in I have 2 files. I want to develop a utility that would compare , show diff and merge the diffs of these 2 files. the catch here is that the one of the file could be located on a remote machine. And I want to compare the diffs, merge them from the file at my local machine to the one at remote machine.

Please note that I don;t want to use and version control tool. I heard that there are some APIs that can be used to write such utility.

Thanks,
Gaurav.

13 years ago
How did you manage to get the spring certification voucher. I heard that they have very stringent condition to give the vouchers.
13 years ago
Hi,

I am sure there must some post on article related to java.util.concurrent package. But if someone can point me to some good article on usages of new way of using threads using classes in java.util.concurrent package, I will be happy .

Thanks,
Gaurav.
The student object does not have departmentId set.
Try @PersistenceContext annotation. This annotation will inject EntityManager in your session ejb.
The exception suggests that the class file mentioned in .cfg.xml and .hbm file is not correct. May be a spelling mistake. Verify this.

If this not solved your problem , post your hibernate.cfg.xml file and .hbm file.

I am also seeking some directions to above query.
14 years ago