xin wen

Ranch Hand
+ Follow
since Oct 11, 2002
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 xin wen

Hi all,
Recently I was running my Java Application on WSAD5.0, it gave my some strange error messages:
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
mmiVerifyTpAndGetWorkSize: stack_height=1 should be zero; exit
Does anyone know something about it?
Thanks a lot!
17 years ago
Thanks you guys so much for helping me, thanks a lot!
18 years ago
Thanks so much, it is working now!
18 years ago
Hi there,
I am using Random to generate 3 numbers one time, and I will call it 100 times, but when I ran the program again, these numbers did not change. For example:
Fist 100 times:
1 4 6
2 6 8
3 6 9
: : :
: : :
: : :
Run again still:
1 4 6
2 6 8
3 5 9
: : :
: : :
: : :
Since it is Random select, they suppose to be different every time right?
private static Random m_r = new Random();
v_stop = m_r.nextInt(50);
Does anyone know why this happened?
Thanks a lot
18 years ago
Thanks all for replying and helps!
I will try to see if I can make it working!
18 years ago
Anyone know if there is a way to do this?
When I use System.out.print(...), there are three columns and twenty rows, but the data is in different size, so when I displayed them, they can not be at the same columns, for example:
abcde adddddd yyyyyyyy
as jk rt
What I want is to adjust jk in adddddd column, and rt is in yyyyyyy column, so I wander if you know how to do it in java?
Thanks so much!
18 years ago
Hi, has anyone successfully installed OJB?
I tried, but just could not install it. When I ran build.bat, it'll give me the error saying "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant".
I have not idea what that means, I did not install ant, do I have to? By the way I am in Windows2000.
Thanks for you helps.
Thank you David!
I will take a look at that!
By the way, have anyone used OJB and Hibernate? Which one is better? Can OJB map to an existing database?
Thanks
18 years ago
Hi friends,
I am trying to decide not to use EJB, and I like to use OJB or Hibernate, but is there any suggestions that which one I should choose?
I heard that OJB cannot map to the existing database schema, is that right? Anyone knows what that means? I cannot have the existing database tables?
Thanks for your help!
Hi friends,
Recently I have been asked for using JDO to do with the database in Websphere5 (I used to use Entity Beans), I have know idea what I am going to do. I knew there is a lot of JDO implementations software, but I am not sure which one is fit for websphere, by the way, does anyone know which one is for free?
Thank you very much!
18 years ago
I will try it, thanks for helping me.
18 years ago
Hi,
I still cannot make it work. I deleted the log file, when I ran the project this time, the log file was not generated at all, do not know why. I wander if the common-loggins.jar which is the log jar WSAD itself causes this to be happen, so is that the reason it does not load my .properties file properly? Anyone had this problem before?
Thanks
18 years ago
Hi, you need to define the local reference in your ejb-jar.xml file, and then use "java:comp/env/LocalRefName" to locate the local entity EJB.
Hope it helps!
18 years ago
Thank you rahul for the reply.
I want to make sure that is the configure file which you mentioned the log4j.properties?
Thanks
18 years ago
Hi,
I am trying to use Log4J for logger in my project. I downloaded it from Log4J website, and copy the log4j.jar to my project, but it seems like did not work well. When I test it, (logger.debug("ENTRY")), I go back to myapplication.log file, nothing in there, so I wander if I need to do some configuration on WSAD or add some log4j config files, do not know here, does anyone know this?
Thanks all so much!
18 years ago