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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:33:36+00:00 2026-05-10T22:33:36+00:00

We’re using Spring/Hibernate on a Websphere Application Server for AIX. On my Windows machine,

  • 0

We’re using Spring/Hibernate on a Websphere Application Server for AIX. On my Windows machine, the problem doesn’t occur–only when running off AIX. When a user logs in with an account number, if they prefix the ‘0’ to their login ID, the application rejects the login. In the DB2 table, the column is of numeric type, and there shouldn’t be a problem converting ‘090….’ to ’90…’

Anyone else experience a problem like this? Both machines have Java v1.5.

To be more specific, the flow is FormView -> LoginValidator -> LoginController

In LoginValidator, the value of login is null with the prefixed 0. Without the 0, the value is what it should be (But again, this is only on the AIX environment–on 2 Windows environments it’s fine). Here’s the snippet of code where the object equals null..

public class LoginValidator implements Validator  {      public boolean supports(Class clazz) {     return Login.class.equals(clazz);     }      @SuppressWarnings('all')     public void validate(Object obj, Errors errors) {         System.out.println('Inside LoginValidator');         Login login = (Login) obj;         //null value         System.out.println('Before conversion in Validator, store id = '                + login.getStoreId());      } } 

I’ve also written this short Java program for constructing a Long from a String, and using the java binary that is packaged with WebSphere

public class String2Long {     public static void main(String[] args){         String a = '09012179';         String b = '9012179';          Long _a = new Long(a);         Long _b = new Long(b);          System.out.println(a + ' => ' + _a); //09012179 => 9012179         System.out.println(b + ' => ' + _b); //9012179 => 9012179         System.out.println('_a.equals(_b) ' + _a.equals(_b)); //_a.equals(_b) true     } } 

SOLUTION

  • 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. 2026-05-10T22:33:37+00:00Added an answer on May 10, 2026 at 10:33 pm

    SOLUTION

    A co-worker did some research on Spring updates, and apparently this error was correct in v. 2.5.3:

    CustomNumberEditor treats number with leading zeros as decimal (removed unwanted octal support while preserving hex)

    We were using Spring 2.0.5. We simply replaced the jars with Spring 2.5.4, and it worked as it should have!

    Thanks to everyone for your help/assistance. We will make use of Unit tests in the future, but this just turned out to be a Spring bug.

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

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer There's two parts you'll need to answer here: one if… May 11, 2026 at 11:55 am
  • added an answer If you are creating your user controls dynamically, then the… May 11, 2026 at 11:55 am
  • added an answer Check soapcpp2 and its -q flag, it will help you.… May 11, 2026 at 11:55 am

Related Questions

We are developing a little application that given a directory with PDF files creates
We have been using CruiseControl for quite a while with NUnit and NAnt. For
We have a requirement in project to store all the revisions(Change History) for the
We have a remoting singleton server running in a separate windows service (let's call
We have an SVN repository running on a Windows server, and I want to
We currently maintain a suit of MFC applications that are fairly well designed, however
We have a Windows Server Web Edition 2003 Web Farm. What can we use
We have a situation where users are allowed to upload content, and then separately
We get a large amount of data from our clients in pdf files in
We have a SharePoint list setup with history enabled so the Comments field keeps

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.