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 8823115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:16:26+00:00 2026-06-14T06:16:26+00:00

Hi all fellow Java Geeks, I have lots of stored procedures in a MySQL

  • 0

Hi all fellow Java Geeks,

I have lots of stored procedures in a MySQL database, which I can call successfully from .NET. However, when calling them from Java Spring SimpleJdbcCall.execute() I get an exception telling me that the user doesn’t have the privilege to do so. But that is clearly not the case since the same user can access it both from CLI and .NET.

I would therefore like to set this parameter:

noAccessToProcedureBodies=true

However, when adding the parameter in my url in the connector bean below, it thinks that the trailing characters are a part of the database name.

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">

    <property name="driverClassName">
        <value>com.mysql.jdbc.Driver</value> 
    </property>

    <property name="username">
        <value>user</value>
    </property>

    <property name="url">
        <value>jdbc:mysql://192.168.0.1:3306/database/?noAccessToProcedureBodies=true</value>
    </property>

    <property name="password">
        <value>powerpass</value>
    </property>

</bean>

I have been looking at overriding the getConnectionProperties method, but I don’t think that’s the right approach?

Thanks all

  • 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-06-14T06:16:27+00:00Added an answer on June 14, 2026 at 6:16 am

    I found an answer myself, and it’s working.

    Instead of having an ending slash "database/?noAccess..." one should leave it:

    <property name="url">
            <value>jdbc:mysql://192.168.0.1:3306/database?noAccessToProcedureBodies=true</value>
    </property> 
    

    Hope that help someone!

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

Sidebar

Related Questions

Hi all fellow programmer I'd like to have a separate js file for each
I have a java program which uses arraylists - these arraylists store 'variables' where
I'm relatively new to services in java (coming from a C# background) and have
I have a follow up question from my original Django serving question which was
A fellow developer changed all the values in the userid column of table map
All, If I run a query like the following: $qry = Select wrong_column from
All, If I've go the following database fields/values: user_id field_name field_value 1 EventHour1 1
All -- I have these two methods in one of my classes: public static
hello fellow java developers. I'm having a very strange issue. I'm trying to read
First of all this is the first time I am asking a java question

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.