• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception Error Handling

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

I need help on this urgently. Please advice me on how to rectify this error and tell me some ways to solve it.

java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff

java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
at java.sql.Timestamp.valueOf(Ljava.lang.String Ljava.sql.Timestamp;(Timestamp.java:160)
at oracle.jdbc.driver.OracleStatement.getTimestampValue(ZI)Ljava.sql.Timestamp;(OracleStatement.java:5009)
at oracle.jdbc.driver.OracleResultSetImpl.getTimestamp(I)Ljava.sql.Timestamp;(OracleResultSetImpl.java:689)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.getTimestamp(I)Ljava.sql.Timestamp;(Unknown Source)
at glog.util.jdbc.noserver.NoQueryFilter.getTimestamp(Ljava.sql.ResultSet;I)Ljava.sql.Timestamp;(NoQueryFilter.java:84)
at glog.util.jdbc.noserver.SqlQuery.getTimestamp(I)Ljava.sql.Timestamp;(SqlQuery.java:209)
at agility.ets.ejb.logview.LogicalDeleteLogSessionBean.getLogEntries(Lglog.util.jdbc.T2SharedConnection;Ljava.sql.Timestamp;JLjava.lang.String;ZI)Lagility.ets.ejb.logview.LogicalDeleteLogEntries;(LogicalDeleteLogSessionBean.java:98)
at agility.ets.ejb.logview.LogicalDeleteLogSessionBean.getLogEntries(Ljava.sql.Timestamp;JLjava.lang.String;ZI)Lagility.ets.ejb.logview.LogicalDeleteLogEntries;(LogicalDeleteLogSessionBean.java:31)
at agility.ets.ejb.logview.LogicalDeleteLogSessionServerSideEJBWrapper.getLogEntries(Ljava.sql.Timestamp;JLjava.lang.String;ZI)Lagility.ets.ejb.logview.LogicalDeleteLogEntries;(LogicalDeleteLogSessionServerSideEJBWrapper.java:34)
at agility.ets.ejb.logview.LogicalDeleteLogSessionServerSideEJBWrapper_x14ddy_EOImpl.getLogEntries(Ljava.sql.Timestamp;JLjava.lang.String;ZI)Lagility.ets.ejb.logview.LogicalDeleteLogEntries;(LogicalDeleteLogSessionServerSideEJBWrapper_x14ddy_EOImpl.java:46)
at agility.ets.ejb.logview.LogicalDeleteLogSessionServerSideEJBWrapper_x14ddy_EOImpl_WLSkel.invoke(ILweblogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse;Ljava.lang.Object Lweblogic.rmi.spi.OutboundResponse;(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;Lweblogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse V(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;Lweblogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse V(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run()Ljava.lang.Object;(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedExceptionAction Ljava.lang.Object;(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedExceptionAction Ljava.lang.Object;(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(Lweblogic.rmi.spi.InboundRequest V(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(Lweblogic.kernel.ExecuteThread V(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest V(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread V(Unknown Source)

Appreciate your prompt response. This is relatively urgent

Thanks!
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff


It would appear you are trying to call Timestamp's valueOf(String) method passing a timestamp value that is in the wrong format. Make sure the String representation you are passing matchs the format in Exception message.
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic