Advertisement

08.14.2008 at 09:38AM PDT, ID: 23648767
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

SYBASE Server EnterPrise Anywhere - JDBC 3.0 - executeUpdate

Asked by dolphin_g in Jboss Application Server, Sybase Database, Enterprise Java Beans (EJB)

Tags: ,

I'm trying to execute a stored procedure which basically does an insert. I've cooem across the following exception most of the time.


com.sybase.jdbc3.jdbc.SybSQLException: Arithmetic overflow during implicit conversion of SMALLINT value '340' to a TINYINT field .

      at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
      at com.sybase.jdbc3.tds.Tds.nextResult(Unknown Source)
      at com.sybase.jdbc3.jdbc.ResultGetter.nextResult(Unknown Source)
      at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source)
      at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source)
      at com.sybase.jdbc3.jdbc.SybStatement.updateLoop(Unknown Source)
      at com.sybase.jdbc3.jdbc.SybCallableStatement.executeUpdate(Unknown Source)
      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)

SERVER : JBOSS EAP 4.2

This works fine when trying to update on the SYBASE SQL advantage. these are the input parameters
to the stored procedure.

@bas_activity_id      varchar
@account_id      numeric
@bas_account_id      varchar
@data_source_id      smallint
@data_source_name      varchar
@activity_type_id      smallint
@bas_corp_action_decl_id      varchar
@corp_action_decl_id      numeric
@mny_fund_id      int
@mny_bas_fund_id      varchar
@mny_currency_cd      char
@mny_currency_id      smallint
@mny_bas_currency_id      varchar
@sec_fund_id      int
@sec_bas_fund_id      varchar
@sec_currency_cd      char
@sec_currency_id      smallint
@sec_bas_currency_id      varchar
@margin_ind      bit
@short_ind      bit
@external_ind      bit
@cancel_ind      bit
@effective_dt      datetime
@tax_dt      datetime
@business_dt      datetime
@security_id      numeric
@cusip_      char
@symbol_      char
@isin_      char
@other_security_id      char
@market_group_id      smallint
@bas_market_group_id      varchar
@security_asset_class_id      numeric
@bas_asset_class_id      varchar
@security_name      varchar
@advisor_id      numeric
@advisor_cd      varchar
@business_unit_id      numeric
@business_unit_cd      varchar
@user_id      numeric
@trailer_      varchar
@share_qty      numeric
@delta_amount      numeric
@commission_      numeric
@fee_      numeric
@misc_fee      numeric
@principal_      numeric
@cost_basis      numeric
@bas_ts      datetime
@msg_pgm      varchar
@msg_ts      datetime
@orig_activity_id      numeric
@related_activity_type_id      smallint
@exchange_rate      numeric
@activity_id      numeric
      
Start Free Trial
[+][-]08.14.2008 at 10:17AM PDT, ID: 22232183

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Jboss Application Server, Sybase Database, Enterprise Java Beans (EJB)
Tags: SYBASE Server EnterPrise Anywhere - JDBC 3.0, FireFox
Sign Up Now!
Solution Provided By: grant300
Participating Experts: 1
Solution Grade: B
 
 
[+][-]08.14.2008 at 10:43AM PDT, ID: 22232434

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628