This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

How does implement AbstractSqlTypeValue in Multi-Threading environmnt  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kindly find below steps of execution: Single-Threading Environment: 1. Dao execute procedure by calling org.springframework.jdbc.object.StoredProcedure.execute(Map inParams) which is inside StoredProcedureForCreate which extends org.springframework.jdbc.object.StoredProcedure 2. Then above execute call createTypeValue() of my custom Model class which extends org.springframework.jdbc.core.support.AbstractSqlTypeValue. 3. Here Model class is nothing but preparing STRUCT[] object which has all the inputs parameter for procedure. 4. It works fine and got return result in Dao .

Multi-Threading Environment: 5. Now I have create one class which extend Thread and calling Dao from Threads’s run() method. 6. Same steps as above. (from 1-3) 7. Getting below exception in execute method in StoredProcedureForCreate class:

org.springframework.jdbc.UncategorizedSQLException: CallableStatementCallback; uncategorized SQLException for SQL [{call PKG_LOAD.sp_bulk_trx(?, ?, ?, ?)}]; SQL state [72000]; error code [8103]; ORA-08103: object no longer exists
; nested exception is java.sql.SQLException: ORA-08103: object no longer exists

java.sql.SQLException: ORA-08103: object no longer exists

CallableStatementCallback; uncategorized SQLException for SQL [{call PKG_LOAD.sp_bulk_trx(?, ?, ?, ?)}]; SQL state [72000]; error code [8103]; ORA-08103: object no longer exists

{call PKG_LOAD.sp_bulk_trx(?, ?, ?, ?)}Null


Kindly suggest what's wrong with my multi-threading implementation.

Thanks in Advance
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!