Top.Mail.Ru
June 29th, 2004 - Java developers — LiveJournal
? ?

Java developers

June 29th, 2004
Image

11:03 am - Imagegrauwulf - Evil Unleashed

Ok given, I dont pay much attention to ide's. actually getting me to use somthing other than vi or notepad was/is quite a bit of a struggle. but this just set my hair on fire.

Visual J# 2005 Express Edition is not a tool for developing applications intended to run on a Java virtual machine. Applications and services built with Visual J# 2005 Express Edition will run only in the .NET Framework; they will not run on any Java virtual machine. Visual J# 2005 Express Edition has been developed independently by Microsoft. It is neither endorsed nor approved by Sun Microsystems, Inc.

Angst.
-Mel
 

11:43 am - Imagebuddha_222

Hey i'm trying to just test a coonection to a DB via JDBC and I keep catching this error :
Caught a SQL Exception in init: No suitable driver
Details - error code: 0, sql state: 08001


the CodeCollapse ) is here.



I'm totally clueless when it comes to JDBC Drivers. I'm trying to access an Oracle 10g DB. I've searched around for some documentation about drivers etc, and I'm not sure where to look. Any help is appreciated.
 

12:14 pm - Imageenvoy - JavaOne?

Is anyone else in this community at JavaOne right now, or is it just me?
Image

01:41 pm - Imagetrajano - Learning Hibernate and HSQLDB

Actually it wasn't for me, I was basically helping a friend out getting his HSQLDB working in Eclipse. I have no clue what kind of documentation he was reading but what threw me off was "install the plugin" was the one that threw me off. Anyway I wrote him a quickie JDBC app that uses an in-memory database. Of course I didn't write it properly the first time around, I just wanted it to create the table and give me data.

Once I did that I cleaned up my sample code to ensure I close any open resources, like a good citizen. Which added to the code bloat. Especially with the if (xxx != null) checks in the finally block.

I think its insane for people to write their own persistence framework or use straight JDBC for their projects. Considering the amount of clean up that you would have to do for one thing.

So just to keep my sanity, I relearned and expanded my Hibernate knowledge. The cool new thing I learned was the SchemaUpdate utility which updates the schema for me (which I also found that I can do more easily with a property that I can set later on in the morning). This is good because I hate having to create DDLs. And it supports incremental changes too.

Now for my gripe. I really really hate having to create getters and setters and equals and hashcode for the domain objects. Its really annoying that I would even have to do that. Unfortunately the only way I can think of getting someting like this implemented is to use MDA with AndroMDA to generate the persistent bean code. Which I am trying to avoid because I find it harder to version control a model than source files, especially when merging changes.

Wonder if anyone else feels the same way.
Image

06:31 pm - Imageska_o - Tomcat hanging -- Linux / Java problem?

I've written some webapps for internal use at the company where I work; they are deployed under Tomcat and seem to be working fine except that sometimes Tomcat hangs (not just a webapp). I looked at thread dumps -- the lockup seems to happen at random places... This is difficult to toubleshoot because it happens quite rarely. I haven't tried any stress tests yet...

This only happens on the "production" machine, which is running Red Hat Linux,kernel version 2.4.20. My development machine is running Windows 2000.

I tried Tomcat versions 4.1.18 and 5.0.16, JRE versions 1.3.something and 1.4.2_04-b05, and the problem is still there.

I suspect that this has something to do with the Linux / JVM compatibility. Do you know of any such issues and what would you recommend?
Powered by LiveJournal.com
Image