Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Dan Lajoy

+ Follow
since May 28, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dan Lajoy

That was a good idea, but it didn't work.

I also have 2 other debugger session issues with RAD 7.

1- when I hover over an attribute it shows me the attribute's name and type, but not the value.
2- in the Variables window, instead of showing me the att name and value, it displays var's as Arg1, Arg2...and Temp0, Temp1, Temp2, etc...

Really strange.
Thanks, I'll give that a try and see what happens.
I haven't been out here in a while, so please let me know if this question belongs in another forum, or not in the Java Ranch all together. (I ck'd IBM's site a bit and didn't see anything......granted I took a quick look.)

I've had this same problem before with ealier versions of Websphere (WSAD5, WAS6, etc.)...but I forgot how I was able to resolve it. Basically, when I'm stepping thru my J2EE Java app code in debug mode (step into), the debugger works fine in some classes, but in others it goes to the wrong lines. It skips over lines of code, and steps into comment lines. Something's out of synch for sure. It's almost like the debugger is following the lines of code in a prior version of the class, or the source code is not in synch with the compiled code? No clue.

I've tried doing a clean build, removing the ear projects while the server was running, then adding them back in....but nothing seems to work. My code is working fine, whether in "run" mode or in "debug" end results are good. It's just that the debugger is acting funny.

Any help on this would be most appreciated.

I took your advice and wrote my own RollingFileAppender subclass extending RollingFileAppender. Modified my logging.xml file to what's show below and it worked like a charm. Thanks for the help.

The Ranch Rocks!!!

<appender name="MY_FRAMEWORK" class="com.mycompany.mydiv.appshared.util.MyRollingFileAppender">
<param name="MaxFileSize" value="100000000" />
<param name="File" value="C:\\myapp\\logs\\my_framework.log" />
<param name="Append" value="false" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %p - %m%n"/>
[ March 01, 2006: Message edited by: Dan Lajoy ]
16 years ago
Thanks for your reply.

I wonder if there is a different param name or value that I can use within the layout tag section above. I'll see if I can find anything under org.apache.log4j.TTCCLayout.
16 years ago
Hello, I'm a new guy so go easy on me...

I'm working on a Websphere/RAD 6.0 J2EE application and trying to get my log files to include either a timestamp or milli-sec data within the name of the log file. I currently have it set up to include the date in the log file name only. I'm using the following info in my logging.xml file (config file used by the app):

<appender name="DAN_APPLICATION" class="org.apache.log4j.RollingFileAppender">
<param name="MaxFileSize" value="5000000" />
<param name="MaxBackupIndex" value="4" />
<param name="File" value="logs/dan.log" />
<param name="Append" value="false" />
<layout class="org.apache.log4j.TTCCLayout">
<param name="DateFormat" value="ISO8601" />

This gives me a log file name of "dan02242006.log".

What I want to see is "dan02242006103100"...or something like that...basically I want to see the date and time in the log file name.

I tried replacing the parm value above from "ISO8601" to "ABSOLUTE"....but that didn't work.

I'm sure there is a very easy solution to my problem.......any suggestions would be most welcome.

Dan :roll:
16 years ago
Congrats Charles! I have some actuary friends who take exams once or twice a year. I guess you can score anywhere from 0 to 10 on those exams, and you need at least a 6 to pass. Most of them who pass with a score higher than 6 believe they've wasted their time. While I do not subscribe to this theory for every situation, different pespectives certainly make things interesting don't they? They would applaud your score whole heartily - unlike some folks out here.
You made it ...
18 years ago
Nice job Peter...or should I say "Cool Hand" Luke. That mishap would have thrown allot of people - nice recovery.
Plus, if you want to, now you can take the upgrade to the 1.4 exam, which I believe has about half the number of questions on the exam.
18 years ago
Congrats! Feels good doesn't it? I'm still glowing...
18 years ago
I would agree with Corey. I took the exam less than 2 weeks ago. I don't believe there is a rule excluding single answer questions. I think there were several questions on my particular exam where there was only 1 correct answer.
I found Dan Chisolm's mock exam questions to be right on the money - check them out. Very useful for exam prep.
I'm not sure but I think the answer is -1 because the division by 0 yields positive infinity. In binary conversion I believe that would be a 0 followed by 63 1's. Then when the double is cast to a byte, all the bits are chopped off except the last 8 - so you're left with 11111111. This is -1.
That's my take. Requesting confirmation from some seasoned pro's out there...
I took the Sun course Java Programming Language (SL-275) from Sun Microsystems (my company paid for it). So that gave me 2 Sun books specific to that course that were very good for a start just to get some of the basics down. I'm a new Java programmer with < 1 yr experience. Then I studied the Complete Java2 Certification Study Guide book for a couple of months. I liked it allot - very helpful - but if you're taking the 1.4 exam, there's a fair amount of material on GUI and I/O that's not going to be your exam. I went to the API to learn about assertions and the API was also great for info. on Collections.
I think the Dan Chisolm mock exams were essential studying. There is no way I could have passed the exam this morning without studying and learning from his mock exams.
So basically I passed using the Study Guide noted above and Dan Chisolm's mock exams. I only got a score of 59 - but that's good enough to pass so I'll take it. I ran out of time with 5 questions to go...I should have come out here a long time ago. Lots of good info from very knowledgeable people.
Good luck!
Well, I passed by the skin of my teeth (59%). The exam was much tougher than I thought it would be - I ran out of time with 5 questions to go - I really thought I failed it - didn't feel confident at all. I'm thrilled! It was my first shot at this exam and I've only been coding Java for less than a year. I started studying about 4 months ago off and on. I came out here to the JavaRanch for the first time last night to ask an OO question that was troubling me. It was late and I was at work but nobody else was around. I was shocked that within an hour I got 3 replies and by the next morning about 4 more replies - and my problem was solved before I went to take the test this morning. Sure enough there was an OO question on the exam that was very similar to my practice exam question. Thanks guys!
Had I known what an outstanding resource this site is for programmers studying for the SCJP test, I would have been out here a long time ago.
Outstanding. I plan on coming out here more often to learn and make some new friends.
Thanks again,
18 years ago