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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:18:29+00:00 2026-06-12T11:18:29+00:00

Actually i work on java web application using spring mvc 3 and hibernate 3.5

  • 0

Actually i work on java web application using spring mvc 3 and hibernate 3.5 and extjs for the user interface; my probleme is that when my model class have BigDecimal attribute like this one

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonAutoDetect;

@JsonAutoDetect
@Entity
@Table(name="Articles")
public class Article {

@Id
@GeneratedValue
@Column(name="IDARTICLE")
private int id;

@Column(name="CODE")
private String code;

@Column(name="DESIGNATION")
private String designation;

@Column(name="PRIX", scale = 19, precision = 4, columnDefinition = "DECIMAL(19,4)")
private BigDecimal prix; 

@Column(name="CPTARTICLE")
private int cptarticle;

@Column(name="IDPARCOM")
private int idparcom;


public int getId() {
    return id;
}
public void setId(int id) {
    this.id = id;
}
public String getCode() {
    return code;
}
public void setCode(String code) {
    this.code = code;
}
public String getDesignation() {
    return designation;
}
public void setDesignation(String designation) {
    this.designation = designation;
}
public BigDecimal getPrix() {
    return prix;
}
public void setPrix(BigDecimal prix) {
    this.prix = prix;
}
public int getCptarticle() {
    return cptarticle;
}
public void setCptarticle(int cptArticle) {
    this.cptarticle = cptArticle;
}
public int getIdparcom() {
    return idparcom;
    }
         public void setIdparcom(int idParcom) {
            this.idparcom = idParcom;
        }
}

and when i do

List<Article> articles = hibernateTemplate.find("from Articles");

i have execption and nothing in the cosole just this Stacks traces

Daemon Thread [http-bio-8080-exec-50] (Suspended)   
ArticleService$$FastClassByCGLIB$$1bae6fb8.invoke(int, Object, Object[]) line: not available    
MethodProxy.invoke(Object, Object[]) line: 191  
Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint() line: 692    
Cglib2AopProxy$CglibMethodInvocation(ReflectiveMethodInvocation).proceed() line: 150    
TransactionInterceptor.invoke(MethodInvocation) line: 108   
Cglib2AopProxy$CglibMethodInvocation(ReflectiveMethodInvocation).proceed() line: 172    
Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Object, Method, Object[], MethodProxy) line: 625 
ArticleService$$EnhancerByCGLIB$$f2eb83ca.getArticleList() line: not available  
ArticleController.read() line: 25   
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]  
NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available   
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not available   
Method.invoke(Object, Object...) line: not available    
AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker(HandlerMethodInvoker).invokeHandlerMethod(Method, Object, NativeWebRequest, ExtendedModelMap) line: 174  
AnnotationMethodHandlerAdapter.invokeHandlerMethod(HttpServletRequest, HttpServletResponse, Object) line: 421   
AnnotationMethodHandlerAdapter.handle(HttpServletRequest, HttpServletResponse, Object) line: 409    
DispatcherServlet.doDispatch(HttpServletRequest, HttpServletResponse) line: 771 
DispatcherServlet.doService(HttpServletRequest, HttpServletResponse) line: 716  
DispatcherServlet(FrameworkServlet).processRequest(HttpServletRequest, HttpServletResponse) line: 644   
DispatcherServlet(FrameworkServlet).doGet(HttpServletRequest, HttpServletResponse) line: 549    
DispatcherServlet(HttpServlet).service(HttpServletRequest, HttpServletResponse) line: 621   
DispatcherServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 722   
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 305  
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210  
StandardWrapperValve.invoke(Request, Response) line: 224    
StandardContextValve.invoke(Request, Response) line: 169    
NonLoginAuthenticator(AuthenticatorBase).invoke(Request, Response) line: 472    
StandardHostValve.invoke(Request, Response) line: 168   
ErrorReportValve.invoke(Request, Response) line: 98 
AccessLogValve.invoke(Request, Response) line: 927  
StandardEngineValve.invoke(Request, Response) line: 118 
CoyoteAdapter.service(Request, Response) line: 407  
Http11Processor(AbstractHttp11Processor<S>).process(SocketWrapper<S>) line: 987 
Http11Protocol$Http11ConnectionHandler(AbstractProtocol$AbstractConnectionHandler<S,P>).process(SocketWrapper<S>, SocketStatus) line: 579   
JIoEndpoint$SocketProcessor.run() line: 309 
ThreadPoolExecutor(ThreadPoolExecutor).runWorker(ThreadPoolExecutor$Worker) line: not available 
ThreadPoolExecutor$Worker.run() line: not available 
TaskThread(Thread).run() line: not available    

can somme one help me please

  • 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-12T11:18:30+00:00Added an answer on June 12, 2026 at 11:18 am

    It’s a stupid bug, i have to do List articles = hibernateTemplate.find(“from Article”); Article without s because this is the name of the class 🙂 not the name of the table.

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

Sidebar

Related Questions

I have a web-application in java, spring framework, hibernate on tomcat, that has basically
I am creating a application using jmf that will be launched on a user's
In my Java web application, I have my whole database structure covered by Model
I have a small Java/Spring MVC REST /Maven app that runs just fine in
Some weeks ago at work I took over a Java-based back-end web application written
so it would appear that the only values that actually work are 0.0, 0.5,
Like many variables in PHP using ini_set() on a page doesn't actually work. I've
I have a windows service that does some intensive work every one minute (actually
Trying to implement clean URLs (without .form, .do, etc.) with Spring MVC 3.0 (actually
I'm using Spring 3.x, Java 6. I have an @Around aspect with the following

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.