The Artima Developer Community
Sponsored Link

Java Buzz Forum
Great example of an awful error message

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Winters

Posts: 931
Nickname: cwinters
Registered: Jul, 2003

Daytime: Java hacker; nighttime: Perl hacker; sleeptime: some of both.
Great example of an awful error message Posted: Jun 22, 2004 12:00 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Chris Winters.
Original Post: Great example of an awful error message
Feed Title: cwinters.com
Feed URL: http://www.cwinters.com/search/registrar.php?domain=jroller.com®istrar=sedopark
Feed Description: Chris Winters on Java, programming and technology, usually in that order.
Latest Java Buzz Posts
Latest Java Buzz Posts by Chris Winters
Latest Posts From cwinters.com

Advertisement
ERROR util.JDBCExceptionReporter:
    [MYDB]String or binary data would be truncated.

It's not the 'JDBCExceptionReporter' you should care about -- that's from Spring, and Spring has fantastic error messages. It's the 'String or binary data would be truncated". Anyone who has worked with databases for a while has received this message. In human-speak it means: "I'm trying to stuff too much data into a field." -- you've declared a VARCHAR(30) and you're trying to modify the field with a 40-character string, that sort of thing.

BUT WHAT GODDAMNED FIELD IS IT FAILING ON?! The database -- in this case, MS SQL Server 2000 -- must know what field it has the problem with. It must know the max length of allowed data and the length of the string you're trying to add. So why doesn't it say any of these things in the message? (Not to mention: where's the table name?)

Grr grr grr...

Read: Great example of an awful error message

Topic: [Jun 14, 2004 09:52 PDT] 18 Links Previous Topic   Next Topic Topic: Object/Relational Bridge 1.0rc7 Last Night

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use