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

  • Home
  • SEARCH
  • 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 6628671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:09:07+00:00 2026-05-25T22:09:07+00:00

I am running the same select query on the same database using the same

  • 0

I am running the same select query on the same database using the same code but using 2 different app servers.

Query: Find a certian day’s entries in a journal.

1) Existing legacy app server (BroadVision running on unix):
Select title, content from journal where entry_date = TO_DATE(?, ‘DD/MM/YY HH24:MI:SS’);

DEBUG:core.StatementCreatorUtils:Setting SQL statement parameter value: column index 1, parameter value [Thu Sep 29 14:32:58 IST 2011], value class [java.util.Date], SQL type unknown

This works fine

2) JBoss app server (Running on windows):
Select title, content from journal where entry_date = TO_DATE(?, ‘DD/MM/YY HH24:MI:SS’);

DEBUG:core.StatementCreatorUtils:Setting SQL statement parameter value: column index 1, parameter value [Thu Sep 29 14:41:26 IST 2011], value class [java.util.Date], SQL type unknown

ORA-01858: a non-numeric character was found where a numeric was expected

Any ideas how to get this running on the JBoss app?

Thanks,

Kenny

  • 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-25T22:09:08+00:00Added an answer on May 25, 2026 at 10:09 pm

    The code seems incorrect to me. The TO_DATE function’s goal is to transform a string in a given format into a date. And you’re not passing a string as argument to this function, but a java.util.Date object.

    You should remove the use of the TO_DATE function, transform your java.util.Date into a java.sql.Timestamp object, and use setTimestamp to pass the argument to your prepared statement.

    The fact that it worked as is on your unix box looks like an accident to me.

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

Sidebar

Related Questions

When running the same query (SELECT with a couple of INNER JOINs) on a
multiple webapp running on same tomcat using same jvm. sometime, one webapp that have
In my application I am running the same winform in different contexts to control
I have a WCF service (the same one) running on multiple servers, and I'd
I am running a query against a providex database that we use in MAS
I am using System.Data.Sqlite to access SQLite database in C#. I have a query
I have 2 machines running same workers. One machine shoud be primary as it
Assume that we have N erlang nodes, running same application. I want to share
I have two instances running of same Windows Service. They check the health of
I have a bunch of remote machines all running the same WCF service over

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.