Prabaharan Gopalan

Ranch Hand
+ Follow
since Oct 16, 2009
Prabaharan likes ...
VI Editor Java Linux
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
13
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Prabaharan Gopalan

You would have a better chance of getting help if the subject of this post was a little more explanatory.
10 years ago

we are forced to compile all our classes in other applications JVM



But that's where defining Remote Interfaces come in to the picture right? you'd define your APIs as Remote Interfaces, package them as JAR file, use that JAR in both the applications, one which implements it and the other which uses it. If you haven't taken a look at it so far, here is it - http://docs.oracle.com/javase/tutorial/rmi/compiling.html
10 years ago
What is the scope/purpose of this question? If you are looking for a textbook explanation, you could find it here: http://docs.oracle.com/javase/tutorial/rmi/implementing.html

If you did browse through that, please explain a bit more on what would you like to be explained here?
10 years ago
I took the liberty of Googling it for you since this being your 1st post. And looks like there could be quite a few reasons ranging from a problematic certificate to a bug in RHEL.

http://forum.springsource.org/showthread.php?42510-LDAPS-External-Certificate-contains-unsupported-critical-extensions-2-5-29-17
https://forums.oracle.com/forums/thread.jspa?threadID=980847
https://bugzilla.redhat.com/show_bug.cgi?id=618290

And the generic description provided could fit any of those cases. Could you please do some more searching on this topic and if you still would like to get another set eye balls into the problem, we'd be happy to assist. Also, it would make our jobs a lot easier if you could also provide what steps you have tried so far so that we don't try the same things again.
10 years ago


the thing above the 'u' in ujar, is that a problem with the site or does the compress.jar has some other dependency which can't be found?
11 years ago
If you are looking to split, then split() is one way to go. But when you split a string, the array will have the split characters already in them. so, you don't really have to explicitly assign "0" to each array item.

11 years ago
You didn't find any exe's? I think you would find the answer to your question if you ask for: how does java really provide platform independence for your applications?
11 years ago
I was a guy without any programmatic experience and wrote everything in main(). Later, people taught me OO relating it to real life and then they said how to do things the Object way in Java. Drawing from my experience, even if we don't start with OO in our Java tutorials, a brief background on OO would be good for folks who are starting to learn Java. IMO, syntax can be learnt anytime but once we start with syntax, it tends to go that way until we have to break the flow and say - 'hey, you know what? strings, ints and public static void main are fine, yeah we know we said we'll learn about println later but before that you need to know about objects'. sounds a bit odd. my 2 cents.
11 years ago
There are two parts to this problem:
1. Read the value from Excel (for which you might want to look up ODBC and how it's done).
2. Create the directory from what you've read (traditionally java.io and if you're curious, java.nio).

Let us know when you attempted these and whether these worked.
11 years ago
I believe you are loading the file from your application. and just to be on the safer side, "g:\program files\apache software foundation\tomcat 7.0\webapps\griddemo\web-inf\classes\config\servicesvalidations.xml" - are you sure they're of the right case? (especially the WEB-INF part?) and could you try putting the file in a path which doesn't have spaces in them?
11 years ago
Do you have hibernate related jar files on the classpath? did you package them along with your application (preferably somewhere inside WEB-INF) or tell Tomcat where your libraries are.
11 years ago

If the ArrayList does not contain elements then there is no chance of getting into for loop which is the cause of the IndexOutOfBoundsException, right?



You mean to say an enhanced for loop would throw an exception if the list is empty? No. it wouldn't. It just won't enter the loop. The reason for the IOOB is because list.set(i, obj) accesses an index in list which will not be there on an empty list, which is what Jeff had mentioned and that's why you'd use add()/addAll() instead of set() when you want to add an element to an empty list.

Please not Line 10 is inside the loop and not the beginning of the loop.
11 years ago
As I see it, there are three things where things could slow down.
1. Web
2. EJB
3. Communication between 1 and 2.

Unless bulk of the time is spent on 3, combining 1 and 2 wouldn't give you much of an improvement. And typically we would profile each of these individually and then attempt to fix it.

All the above not withstanding, if you can invest in rewriting your code, please do by all means.
The id in Table2 is the primary key for table2. Unless you have a generation strategy specified for that Id, you'd have to manually set the id.