Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7644395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:40:41+00:00 2026-05-31T09:40:41+00:00

Trying to access AS400/DB2 stored procedure from Java with Spring JdbcTemplate, XmlBeanFactory beanFactory2 =

  • 0

Trying to access AS400/DB2 stored procedure from Java with Spring JdbcTemplate,

XmlBeanFactory beanFactory2 = new XmlBeanFactory(new ClassPathResource(
                "datasource_as400.xml"));
        DataSource ds2 = (DataSource) beanFactory2.getBean("dataSource");

        jdbc2 = new JdbcTemplate(ds2);

        jdbc2.update("{CALL TESTONE(?)}", new Object[] { new String("JOHN") });

and I am getting the following Error

[DEBUG,SQLErrorCodeSQLExceptionTranslator] Translating SQLException with SQL state '42704', error code '-204', message [[SQL0204] TESTONE in  type *N not found.]; SQL was [{CALL TESTONE(?)}] for task [PreparedStatementCallback]
[FATAL,MainBatch] processDonations(): org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [{CALL TESTONE(?)}]; nested exception is java.sql.SQLException: [SQL0204] TESTONE in  type *N not found.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:40:43+00:00Added an answer on May 31, 2026 at 9:40 am

    According to the iSeries Info Center, SQLCODE -204 means An undefined object or constraint name was detected.

    You may have to designate the schema your function is in. (I.E., CALL YOUR_SCHEMA.TESTONE(?)).

    If it works in another program (or when you query manually), your schema path may be set differently. You can check by doing SELECT CURRENT_SCHEMA FROM SYSIBM.SYSDUMMY1 (I’m not sure if SYSIBM.SYSDUMMY1 is on iSeries, or if there is another name for the dummy table… I’m used to z/OS or Linux/Unix/Windows DB2).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to access an external webservice from Spring 3.1 based application. I want
Im trying to access the org.testng.reporters.XMLReporter from my Java code. I am writing code
Im trying to access a web service from a remote computer. I managed to
I am trying to access Outlook 2007 from C#. I have installed the PIA
I am trying to access a view inside a splitter from my mainframe. At
Im trying to access ValidationMessage through jquery. I have <%: Html.TextBox(vcr_LinkAddress,null, new { maxlength
I am trying to access Facebook from Python :D I want to fetch some
I'm trying to access 1.20163 from the following: 1 British Pound Sterling = 1.20163
Im trying to access some variables from the parent in a child mc. Parent
PROBLEM: I'm trying access binary records that were created in Borland Delphi and stored

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.