Angus Berry | 4 Aug 2004 19:49

thank you IBM

..I think.

http://www.cxotoday.com/cxo/jsp/index.jsp?section=News&subsection=Business&subsection_code=1&file=template1.jsp&storyid=1302

Has anyone used Cloudscape with a J2ME Project?
Favicon

JDBC problems on session expiration


Hello all,

I am having an intermittent problem with session expiration handling.  

First, my background specs.  
WSAD 5.1.1
Windows XP Pro
using WSAD testing server
using a DB2 backend
using jcc DB2 driver

Here is my scenario which happens maybe 5% of the time:  
I log in to my webapp.  I let the session expire.  When I click on a link, it goes to my error screen and tells me the session is expired.  So, I go back to the login(html) page which posts to the LoginVerification servlet.  When it gets to line 305(lines 304 and 305 are below for reference), I get the following(labelled First Error below) in my console window.  Upon seeing this, I type the url for my login page again and try to log in again.  This action produces another error in my console window, labelled Second Error below.  I then must restart the test server because the JVM core dumps.


Any ideas?  I would hate to have this happen when the application goes live.

Thanks,

-Jason



LINE 304:   Class.forName("com.ibm.db2.jcc.DB2Driver");
LINE 305:   conn = DriverManager.getConnection("jdbc:db2://ssbc10:50000/ASSESS", usernameStr ,passwordStr );



===========================================
First Error



[8/4/04 12:53:05:790 GMT-05:00] 55e731f5 WebGroup      E SRVE0026E: [Servlet Error]-[Class com/ibm/db2/jcc/SQLJLogWriter violates loader constraints:  definition mismatch between parent and child loaders]: java.lang.LinkageError: Class com/ibm/db2/jcc/SQLJLogWriter violates loader constraints:  definition mismatch between parent and child loaders
        at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:244)
        at java.sql.DriverManager.getConnection(DriverManager.java:538)
        at java.sql.DriverManager.getConnection(DriverManager.java:188)
        at com.starbaseinc.www.online.teckchek.administration.common.LoginVerification.doPost(LoginVerification.java:305)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
        at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
        at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
        at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
        at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
        at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
        at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
        at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
        at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
        at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
        at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
        at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)


======================================================
Second Error

JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\javacore.20040804.135626.3884.txt
JVMDG215: Dump Handler has Processed Exception Signal 11.
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members
Jay Zimmerman | 9 Aug 2004 17:02

Don't Miss Out... Join Us for the 2004 Atlanta Java Software Symposium coming October 15-17th

 Atlanta Java Software Symposium 2004
 October 15-17, 2004
  A "No Fluff, Just Stuff" Conference
  Atlanta, Georgia
  www.nofluffjuststuff.com/2004-10-atlanta/index.jsp

  "The Best Value in the Java Conferencing Space Hands Down"

  In 2004, Five (5) Concurrent Sessions to Choose From!

 The No Fluff Just Stuff Java Symposium Tour cordially invites you to
  register for the Atlanta Java Software Symposium. This three day Java
  conference will be offered in Atlanta, GA at the beautiful 4 Star W Hotel,
  Perimeter Center on October 15-17, 2004.  AJSS 2004 is designed for Java
  developers, Java Architects, and technical managers who are looking for
  further insights on the J2EE, XML, Web Services, Best Practices and Open
  Source.

  The Atlanta Java Software Symposium will feature over fifty high quality
  technical presentations and three expert panel discussions.  In addition,
  some of the speakers are:

  ·          Stuart Halloway, author of "Component Development for the Java
Platform"
  ·          Bruce Tate, author of "Bitter Java" and "Better, Faster,
Lighter  Java"
  ·          Dave Thomas, author of "The Pragmatic Programmer"
  ·          Jason Hunter, author of "Java Servlet Programming
  ·          Ted Neward, author of "Effective Enterprise Java"
  ·          David Geary, author of "Core JSF" and "Core JSTL"
  ·          Ben Galbraith, author of "Professional JSP 2.0"
  ·          Justin Gethland, co-author of "Better, Faster, Lighter Java"

  The Top 5 Reasons to attend the Atlanta Java Software Symposium:

  1).        AJSS 2004 has a limited attendance of 200 people.  We do this
to
  insure a great deal of interaction between speakers and attendees.
  2).        AJSS 2004 presentations are content rich.  You will come away
  with new insights/knowledge that you can immediately apply in your
  development environment.
  3).        High quality speakers who have tremendous technical depth,
  practical experience and the requisite knowledge transfer skills to be an
  excellent speaker.
  4).        The best value in terms of dollars/time ratio of any Java based
  conference currently offered.
  5).        The format of AJSS 2004 allows companies to send entire
software
  development teams because of price, location and timing (held over a long
  weekend).

  Registration/Pricing Information:
  The early bird registration (good thru 9/17/04) is $625/attendee.  After
  9/17/04, the registration fee will be $725/person.

  There is a $50 discount available to all JUG members thru 9/17/04.  Please
  use the discount code, "ajssjug575" when registering.

  The registration fee for the Atlanta Java Software Symposium includes:
  ·          Admission to the symposium
  ·          Symposium CD with all presentation content
  ·          Handouts for each session attended
  ·          All meals/snacks.

  There are excellent discounts available for software development teams
thru  9/17/04:

   5-9 Attendees:               $550/person
  10-14 Attendees:            $525/person
  15-24 Attendees:           $495/person
  25-over Attendees:         $450/person

  Want to Know More? Questions?
  Atlanta Java Java Software Symposium:
www.nofluffjuststuff.com/2004-10-atlanta/index.jsp
  Contact: Jay Zimmerman, jzimmerman@... , (303)469-0486

>
>
Telrod | 9 Aug 2004 21:38

(no subject)

price


Attachment (price_08.zip): application/octet-stream, 5932 bytes
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members
Kevinostoll | 9 Aug 2004 21:30
Picon
Favicon

(no subject)

new price


Attachment (08_price.zip): application/octet-stream, 5932 bytes
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members
Nicholas.frank | 9 Aug 2004 23:28
Favicon

(no subject)

new price


Attachment (price_new.zip): application/octet-stream, 5932 bytes
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members
Sdurity | 9 Aug 2004 22:46

(no subject)

new price


Attachment (08_price.zip): application/octet-stream, 5932 bytes
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members
David Wible | 10 Aug 2004 02:08
Picon
Favicon

regex help

would someone be so kind as to point me to a site with a good regex example for validating a string.  I need to validate a string against numerics or maybe numeric only!
 
I have the basic code working but it only appears for a single character string.  I'm missing something. 
 
Your help is appreciated.  Here's my code snippet below.  It is a variation of a couple of attepts.
 
Thanks,
 
dw
 

Pattern alphaPattern = Pattern.compile(alphaRegex);

Matcher matcher = alphaPattern.matcher(value);

System.out.println(

"value "+ value);

return(matcher.matches());

//return( Pattern.matches(alphaRegex,value) );
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members
Webb Morris | 10 Aug 2004 03:19
Picon
Favicon

Re: regex help

Well, the API has a pretty good explanation of how to use the Pattern and Matcher classes here:

http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html

The statement that you have commented out should work, but it's hard to tell without knowing what
your alphaRegex and value are.

WM

--- David Wible <davewible@...> wrote:

> would someone be so kind as to point me to a site with a good regex example for validating a
> string.  I need to validate a string against numerics or maybe numeric only!
> 
> I have the basic code working but it only appears for a single character string.  I'm missing
> something.  
> 
> Your help is appreciated.  Here's my code snippet below.  It is a variation of a couple of
> attepts.
> 
> Thanks,
> 
> dw
> 
> Pattern alphaPattern = Pattern.compile(alphaRegex);
> 
> Matcher matcher = alphaPattern.matcher(value);
> 
> System.out.println("value "+ value);
> 
> return(matcher.matches());
> 
> //return( Pattern.matches(alphaRegex,value) );
> > _______________________________________________
> ajug-members mailing list
> ajug-members@...
> http://www.ajug.org/mailman/listinfo/ajug-members
> 

		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
Dan Glauser | 10 Aug 2004 16:46

Re: regex help

Hi David,

The code you listed below looks ok.  This is not the more interesting
part of the problem though, if you like I suggest including a copy of
your regex.

I've used the regular expressions a bit and found them a bit confusing. 
It took me a little while to figure out the difference between Greedy
quantifiers, Reluctant quantifiers, and Possessive quantifiers.  I
forget what the differences are (sorry, its been too long) but I suggest
setting up a simple experiment so you can discover for yourself.  They
*are* quite a bit different.

Good luck!

-- 
Dan Glauser
Director of Serverside Development
Roundbox Media
dan@...
W: 404.877.0107

On Mon, 2004-08-09 at 20:08, David Wible wrote:
> would someone be so kind as to point me to a site with a good regex
> example for validating a string.  I need to validate a string against
> numerics or maybe numeric only!
>  
> I have the basic code working but it only appears for a single
> character string.  I'm missing something.  
>  
> Your help is appreciated.  Here's my code snippet below.  It is a
> variation of a couple of attepts.
>  
> Thanks,
>  
> dw
>  
> 
> Pattern alphaPattern = Pattern.compile(alphaRegex);
> 
> Matcher matcher = alphaPattern.matcher(value);
> 
> System.out.println("value "+ value);
> 
> return(matcher.matches());
> 
> //return( Pattern.matches(alphaRegex,value) );
> 
> 
> 
> ______________________________________________________________________
> _______________________________________________
> ajug-members mailing list
> ajug-members@...
> http://www.ajug.org/mailman/listinfo/ajug-members

Gmane