Ramon Anger

Ranch Hand
+ Follow
since Apr 19, 2011
Ramon likes ...
Chrome Eclipse IDE Java
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ramon Anger

One thing that comes in my mind is that you can't instantiate an abstract class directly, so you have to inherit classes from it, that have their own type. You can overwrite the already implemented methods (if they are not final), but it's not necessary to do so.
8 years ago
No, you do not have to track all your changes. That's way you use the entity manager.
A simple example how to use merge() can be found at http://blog.newitfarmer.com/j2ee/hibernate/602/jpa-entitymanager-why-use-persist-over-merge/
Please try JConsole. There are tabs for memory usage and threads. See http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html
8 years ago
Normally, copying an object is much faster than creating a new one.
The following link contains a good explanation: http://en.wikibooks.org/wiki/Java_Programming/Creating_Objects
8 years ago
You could debug your statement execution.
Maybe the method getUnderlyingStatement() from WrappedPreparedStatement contains an info on the sql statement itself but this would probably be without parameter replacement.
8 years ago
Could you please provide a sample string or your getInput() method?
8 years ago
May be I misunderstand your stacktrace completely but can it be that your service gives you back a stacktrace itself and its elements can't be deserialized?

I guess the line

java.lang.StackTraceElement does not have a no-arg default constructor.


says exactly that.
A class that is to be deserialized has to have a non-argument constructor.
8 years ago
Hi Martin,

I think the problem is not connected to utf-8. Depending on the operating system you use plus signs are not valid inside a file name. The pluses are replaced by spaces but there is not file with spaces in the name so the input stream gets no data.

Is there a way to replace the plus signs with for instance underscores?

Best,
Ramon
8 years ago
Hi Shyam,

is there a way to check the state of your sms server? READY or BUSY or something that kind?

If so, you could do the following:

1. Write a method. That returns the current state of the sms server.
2. Write a method that returns you the next n sms from your queue.
3. Write a handler that checks periodically the state of the sms server.
If the server is in state READY, get the next n sms and send them to the sms server.
After that, check the state of the sms server again

Best,
Ramon
8 years ago
Hi Hk Cheung,

why don't you try this out? Install a 64bit JVM and try to run toplink on it.
Which toplink version to you use? In case of toplink 11g I guess it works on a 64bit jvm. In case of toplink 10g I'm not sure, because of the java 1.4.2 support.

Best,
Ramon