I am trying to connect to msde with the jtds driver. I keep getting this error:
Network error IOException: Connection refused: connect
I have read a lot of stuff about firewalls blockin...
Experts:
I'm trying to read an XML file. Here is my code.
dbf = DocumentBuilderFactory.newInstance();
db = dbf.newDocumentBuilder();
doc = db.parse(pathAndFileName); // ensure str...
i m trying to implement connection pooling in my application the configuration description is
my apploication web.xml
<resource-ref>
<description>Oracle Datasource example</description...
One thing that I always hated about SQL was that I always needed two versions of a query if one of the values needed to be tested against null. Yes, there is the nvl() function, but my underst...
I created a directory(actual) in JBoss app server's Bin directory .
I am storing image files in that directory.
I can able to read and write in to the files.
But i could not able to delet...
when i am trying to insert into a table(using preparedstatement) which is having 150 columns ,at that time i am getting this exception. what is the meaning of this exception?
i am not...
Hello all,
I am trying to code a database access object in Java that will fetch an Order with its sub entities.
I have a mapping where an Order has one Customer and each Customer may have ...
I am processing a file (from a mainframe system) containing fixed width records which are encoded in EBCDIC.
I've opened the file and read the lines into a byte array (byte[]).
I'm wonde...
How do I use apt-get to install java jdk 6?
I've never used apt-get before, so I don't know how to set it up with the appropriate package lists or how to list what packages it knows about.
...
Hello experts,
I am running an example from apache site, but wouldn't work ... could anyone please give me some help ? thanks.
The original example is at:
http://xmlbeans.apache.or...
Dear expert,
I split a string Query = PERSON*YEAR*DATE
String Query = PERSON*YEAR*DATE;
String[] result = null;
String splitPattern = "*";
result = Query.split(splitPattern);
if (re...
I have a JTable, and when it has gained the focus, one of the cells will actually have the focus. How do I know which cell has the focus (the row/column of the cell)?
Ultimately, what I'm t...
I have a JAVA program with JButtons on a panel.
Long story short, the program does quick calculation and then moves a graphic object. If I let the program run full speed, it makes all its ...
I have a weird error that keeps coming up on one of my customer's computers when they attempt to use a Java applet:
Java( TM) Plug-in Fatal Error
Several Java Virtual Machines running i...
I set the class path, restarted the pc but I still face the error,
Thanks
Hi,
Ive created a 'StartupServlet' in my web app which has <load-on-startup> set so that it is initiallised when the webapp starts.
Problem is, the code is being run TWICE on startup.
Her...
What is the simpelest (and/or most efficient) way to test if a string contains alphabetic or numeric or non-mumeric characters?
I have been seeking the answer to this for many reasons, but th...
i am trying to retrieve data from an Excel file using servlet
could you please tell me why this code does not work.i dont get any error while i compile,i dont get any output as well.
my co...
Is there an easy way to do this (using 1.4) ?
thank u.
I am trying to connect to mysql database on Linux server. This is my code:
private Connection getNewConnection()
{
Connection conn = null;
try {
String u...
Hello,
I have several JTextFields. I type some values into them, and then click a button, which performs a calculation.
The problem is, to get it to work i have to hit "enter" in each...
Hi,
Can anyone point out how to draw a really long string into a rectangle such that it auto breaks on words and wraps around? I have a rectangle I want to dump the text into, so I need som...
Hi experts,
I was wondering if there is any cases when a Session.saveOrUpdate(myPersistentObject) hibernate call will cause:
java.sql.BatchUpdateException: Invalid argument value: Dupl...
Hi,
I am trying to add a string array to a string arrayList but having no success.
String[] tempArray; //6 elements
ArrayList <String> mainArrayList = new ArrayList <String> ();
Can...
hi
I installed Eclipse 3.0 and also Apache Tomcat in both different folders. Now I'm trying to plugin Tomcat in Eclipse. But I cant make it out. I need help as I;m new for this kinda of conf...