java.lang.NoSuchMethodError

P

Piotre Ugrumov

Hi,
I receive this error with spring:

exception

org.springframework.web.util.NestedServletException: Handler
processing failed; nested exception is java.lang.NoSuchMethodError:
com.intesasanpaolo.tps.model.EConfiguration.getCurrenciesDiffMin()
Ljava/util/Set;
org.springframework.web.servlet.DispatcherServlet.doDispatch
(DispatcherServlet.java:920)
org.springframework.web.servlet.DispatcherServlet.doService
(DispatcherServlet.java:809)
org.springframework.web.servlet.FrameworkServlet.processRequest
(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet
(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal
(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:76)

root cause

java.lang.NoSuchMethodError:
com.intesasanpaolo.tps.model.EConfiguration.getCurrenciesDiffMin()
Ljava/util/Set;

com.intesasanpaolo.tps.form.configuration.ConfiguratorController.referenceData
(Unknown Source)
org.springframework.web.servlet.mvc.AbstractFormController.showForm
(AbstractFormController.java:574)
org.springframework.web.servlet.mvc.SimpleFormController.showForm
(SimpleFormController.java:198)
org.springframework.web.servlet.mvc.SimpleFormController.showForm
(SimpleFormController.java:175)
org.springframework.web.servlet.mvc.AbstractFormController.showNewForm
(AbstractFormController.java:338)

org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal
(AbstractFormController.java:278)
org.springframework.web.servlet.mvc.AbstractController.handleRequest
(AbstractController.java:153)

org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle
(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch
(DispatcherServlet.java:875)
org.springframework.web.servlet.DispatcherServlet.doService
(DispatcherServlet.java:809)
org.springframework.web.servlet.FrameworkServlet.processRequest
(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet
(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal
(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:76)



I do not know the cause of this error. The method that the error tells
me exist:


public Set getCurrenciesDiffMin() {
return currenciesDiffMin;
}


Why this error?

Please help me.
Thanks, bye bye.
 
L

Lothar Kimmeringer

Piotre said:
java.lang.NoSuchMethodError:
com.intesasanpaolo.tps.model.EConfiguration.getCurrenciesDiffMin()
Ljava/util/Set;
[...]

I do not know the cause of this error. The method that the error tells
me exist:


public Set getCurrenciesDiffMin() {
return currenciesDiffMin;
}

Maybe you have more than one class-file of EConfiguration
in your classpath and the one that is loaded lacks this method.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
 
M

Mike Schilling

Mike said:
Lothar said:
Piotre said:
java.lang.NoSuchMethodError:
com.intesasanpaolo.tps.model.EConfiguration.getCurrenciesDiffMin()
Ljava/util/Set;
[...]

I do not know the cause of this error. The method that the error
tells me exist:


public Set getCurrenciesDiffMin() {
return currenciesDiffMin;
}

Maybe you have more than one class-file of EConfiguration
in your classpath and the one that is loaded lacks this method.

Or perhaps EConfiguration isn't a public class.

Never mind. This might result in the framework being unable to find
the method, but it wouldn't result in a NoSuchMethodError.
 
P

Piotre Ugrumov

Mike said:
Lothar said:
Piotre Ugrumov wrote:
java.lang.NoSuchMethodError:
com.intesasanpaolo.tps.model.EConfiguration.getCurrenciesDiffMin()
Ljava/util/Set;
[...]
I do not know the cause of this error. The method that the error
tells me exist:
public Set getCurrenciesDiffMin() {
return currenciesDiffMin;
}
Maybe you have more than one class-file of EConfiguration
in your classpath and the one that is loaded lacks this method.
Or perhaps  EConfiguration isn't a public class.

Never mind.  This might result in the framework being unable to find
the method, but it wouldn't result in a NoSuchMethodError.

The class is:

package com.intesasanpaolo.tps.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
* Configuration for hedging processes.
* To determine the configuration valid for a process, one must find
the last configuration,
* based on the validFrom date, which validFrom date is not after the
process start date.
* @author Luigi Sgro
*
*/
public class EConfiguration {
protected String name;
private Date validFrom;
private ETimeGridConfiguration timeGridPrototype;
private List externalPortfolios;
private List internalPortfolios;
private List externalCounterparts;
private List internalCounterparts;
private BigDecimal operatingRangeHigh;
private BigDecimal operatingRangeLow;
private BigDecimal maxOperatingDelta;
private Set currenciesDiffMin;


protected EConfiguration() {}

public EConfiguration(String name) {
this.name = name;
}
/**
* Configuration name
* @return The name of the configuration
*/
public String getName() {
return name;
}
/**
* Validity date
* @return The first date for which this configuration is valid
*/
public Date getValidFrom() {
return validFrom;
}
public void setValidFrom(Date validFrom) {
this.validFrom = validFrom;
}
/**
* Time grid prototype
* @return A {@link ETimeGridConfiguration} object
*/
public ETimeGridConfiguration getTimeGridPrototype() {
return timeGridPrototype;
}
public void setTimeGridPrototype(ETimeGridConfiguration
timeGridPrototype) {
this.timeGridPrototype = timeGridPrototype;
}
/**
* External deal portfolios that must be used for this hedging
process
* @return A List of String representing the names of the portfolios
*/
public List getExternalPortfolios() {
return externalPortfolios;
}
public void setExternalPortfolios(List externalPortfolios) {
this.externalPortfolios = externalPortfolios;
}
/**
* Internal deal portfolios that must be hedged by this hedging
process
* @return A List of String representing the names of the portfolios
*/
public List getInternalPortfolios() {
return internalPortfolios;
}
public void setInternalPortfolios(List internalPortfolios) {
this.internalPortfolios = internalPortfolios;
}
/**
* External deal counterparts that must be used for this hedging
process
* @return A List of String representing the names of the
counterparts
*/
public List getExternalCounterparts() {
return externalCounterparts;
}
public void setExternalCounterparts(List externalCounterparts) {
this.externalCounterparts = externalCounterparts;
}
/**
* Internal deal counterparts that must be hedged by this hedging
process
* @return A List of String representing the names of the
counterparts
*/
public List getInternalCounterparts() {
return internalCounterparts;
}
public void setInternalCounterparts(List internalCounterparts) {
this.internalCounterparts = internalCounterparts;
}
/**
* High limit of hedging ratio
* @return A BigDecimal representing a hedge/risk ratio
*/
public BigDecimal getOperatingRangeHigh() {
return operatingRangeHigh;
}
public void setOperatingRangeHigh(BigDecimal operatingRangeHigh) {
this.operatingRangeHigh = operatingRangeHigh;
}
/**
* Low limit of hedging ratio
* @return A BigDecimal representing a hedge/risk ratio
*/
public BigDecimal getOperatingRangeLow() {
return operatingRangeLow;
}
public void setOperatingRangeLow(BigDecimal operatingRangeLow) {
this.operatingRangeLow = operatingRangeLow;
}
/**
* Absolute value of the maximum risk amount that can exceed hedging
for every time bucket
* @return A BigDecimal representing an amount
*/
public BigDecimal getMaxOperatingDelta() {
return maxOperatingDelta;
}
public void setMaxOperatingDelta(BigDecimal maxOperatingDelta) {
this.maxOperatingDelta = maxOperatingDelta;
}
public void setName(String name) {
this.name = name;
}

public Set getCurrenciesDiffMin() {
return currenciesDiffMin;
}

public void setCurrenciesDiffMin(Set currenciesDiffMin) {
this.currenciesDiffMin = currenciesDiffMin;
}



}

I do not know the cause. But I am sure that there is only one version
of this class. I recompiled the library and I removed all the
references to that library.
Thanks, bye bye.
 
Joined
Jun 30, 2009
Messages
2
Reaction score
0
method may not be present in the class. try checking the spelling and the class it calls. You may also try refreshing everything. Try creating new methods, and try executing it. if it does not work, then it may be just a bug.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,089
Latest member
Ketologenic

Latest Threads

Top