Click here to Skip to main content
15,914,014 members
Home / Discussions / Java
   

Java

 
AnswerRe: java servlet - error HTTP 500 - java.lang.nullpointer exception Pin
David Skelly11-Nov-09 2:32
David Skelly11-Nov-09 2:32 
GeneralRe: java servlet - error HTTP 500 - java.lang.nullpointer exception [modified] Pin
golisarmi11-Nov-09 2:43
golisarmi11-Nov-09 2:43 
GeneralRe: java servlet - error HTTP 500 - java.lang.nullpointer exception Pin
sparlay_pk16-Nov-09 7:49
sparlay_pk16-Nov-09 7:49 
QuestionSaving Forms to an XML file or .txt file Pin
Clement Tientcheu10-Nov-09 18:20
Clement Tientcheu10-Nov-09 18:20 
AnswerRe: Saving Forms to an XML file or .txt file Pin
sparlay_pk16-Nov-09 7:56
sparlay_pk16-Nov-09 7:56 
Questiondeploying java database application Pin
Muhammad Adeel Zahid9-Nov-09 8:08
Muhammad Adeel Zahid9-Nov-09 8:08 
QuestionHow to Validate XML against XSD v1.1 Pin
Skippums9-Nov-09 7:08
Skippums9-Nov-09 7:08 
QuestionTable locked and session was invalidated Pin
tarek.mostafa8-Nov-09 23:11
tarek.mostafa8-Nov-09 23:11 
I have a simple question, I developed a java application, which runs on Oracle application server and Oracle database. This application depends on multiple JSPs on which multiple users can access a single JSP in the same time, some problems occurs due to the excessive usage of this application and I have some questions about them:

1. Is there any danger or disadvantages in connecting to the database using the jdbc directly from the JSP ?!!

2. An error occurs almost once a week (most probably at the point of time when an excessive usage happens). This error stops the users from submitting or accessing the some JSPs. I ran the following query on the DB to find any locked items:

SELECT o.owner, o.object_name, o.object_type, o.last_ddl_time, o.status,l.session_id, l.oracle_username, l.locked_mode
FROM dba_objects o, gv$locked_object l
WHERE o.object_id = l.object_id;

I found that the table I use to select from in the halted JSPs is a result of this query.

In order to solve this problem temporarily, i use the sql developer to add a record to this table and commit, i find that the problem is solved and the halted jsps involved are running.

These are the exceptions that appears in the log files of the application server right after I press commit:

a.java.lang.IllegalStateException: Session was invalidated (all the time)
b.java.sql.SQLException: Closed Connection (some times)

I do not know exactly where to start debugging, since i use synchronization in all of my code. Also I made sure that each user accessing the same JSP has a separate connection.

Thanks in advance
QuestionNeed help with building a compiler that takes regular expressions in Java Pin
Jesus877-Nov-09 20:44
Jesus877-Nov-09 20:44 
AnswerRe: Need help with building a compiler that takes regular expressions in Java Pin
Nagy Vilmos8-Nov-09 22:16
professionalNagy Vilmos8-Nov-09 22:16 
GeneralRe: Need help with building a compiler that takes regular expressions in Java [modified] Pin
Jesus8710-Nov-09 9:29
Jesus8710-Nov-09 9:29 
QuestionPokerHand class can someone help me solve this code? Pin
sweetbab7-Nov-09 19:55
sweetbab7-Nov-09 19:55 
AnswerRe: PokerHand class can someone help me solve this code? [modified] Pin
Richard MacCutchan7-Nov-09 21:52
mveRichard MacCutchan7-Nov-09 21:52 
Questionsending sms thro Java application Pin
pearlpristine6-Nov-09 1:33
pearlpristine6-Nov-09 1:33 
AnswerRe: sending sms thro Java application Pin
42774806-Nov-09 6:35
42774806-Nov-09 6:35 
QuestionAirline Reservation Pin
Shah Ravi5-Nov-09 20:20
Shah Ravi5-Nov-09 20:20 
AnswerRe: Airline Reservation Pin
portmansdress5-Nov-09 20:43
portmansdress5-Nov-09 20:43 
GeneralRe: Airline Reservation Pin
Richard MacCutchan5-Nov-09 23:11
mveRichard MacCutchan5-Nov-09 23:11 
AnswerRe: Airline Reservation Pin
Richard MacCutchan5-Nov-09 23:10
mveRichard MacCutchan5-Nov-09 23:10 
AnswerRe: Airline Reservation Pin
42774805-Nov-09 23:52
42774805-Nov-09 23:52 
Questiontools.jar Pin
Stephen Lintott3-Nov-09 19:19
Stephen Lintott3-Nov-09 19:19 
AnswerRe: tools.jar Pin
Nagy Vilmos3-Nov-09 22:26
professionalNagy Vilmos3-Nov-09 22:26 
GeneralRe: tools.jar Pin
Stephen Lintott3-Nov-09 22:56
Stephen Lintott3-Nov-09 22:56 
QuestionTroubles in launching a java application at MS windows system startup (user login) [modified] Pin
Fire-Dragon-DoL2-Nov-09 15:12
Fire-Dragon-DoL2-Nov-09 15:12 
AnswerRe: Troubles in launching a java application at MS windows system startup (user login) Pin
Nagy Vilmos2-Nov-09 22:08
professionalNagy Vilmos2-Nov-09 22:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.