-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: How should I code getter/setter of a formula-based property
PostPosted: Thu Aug 10, 2006 10:05 am 
Regular
Regular

Joined: Tue Mar 21, 2006 11:01 am
Posts: 65
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.05

Mapping documents:
This is the relevant fragment:
Code:
<property name="name" length="50"/>
<property name="upperName" formula="UPPER(name)" update="false" insert="false"/>


Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
com.att.up.last.voip.LASTDbException: org.hibernate.PropertyAccessException: Exception occurred inside getter of com.att.up.prom.voip.calllog.CallLogEntry.upperName
at com.att.up.last.voip.HibernateUtility.commitTransaction(HibernateUtility.java:296)
at com.att.up.prom.voip.dao.CallLogDao.searchCallLogs(CallLogDao.java:210)
at com.att.up.prom.voip.dao.CallLogDao.getCallLogs(CallLogDao.java:84)
at com.att.up.prom.voip.dao.CallLogDaoTest.testGetCallLogs(CallLogDaoTest.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.hibernate.PropertyAccessException: Exception occurred inside getter of com.att.up.prom.voip.calllog.CallLogEntry.upperName
at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java(Compiled Code))
at org.hibernate.tuple.AbstractTuplizer.getPropertyValues(AbstractTuplizer.java:174)
at org.hibernate.tuple.PojoTuplizer.getPropertyValues(PojoTuplizer.java:185)
at org.hibernate.persister.entity.BasicEntityPersister.getPropertyValues(BasicEntityPersister.java:2929)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:84)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at com.att.up.last.voip.HibernateUtility.commitTransaction(HibernateUtility.java:292)
... 19 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
... 31 more
Caused by: java.lang.NullPointerException
at com.att.up.prom.voip.calllog.CallLogEntry.getUpperName(CallLogEntry.java:294)
... 34 more

Name and version of the database you are using: Oracle 9i

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

The property upperName exists simply to allow case-insensitive sort by the name field to be done in the database. This allows me to apply a sort order on this property in the java code:

Code:
if (sortAscending) {
   criteria.addOrder(Order.asc("upperName"));
} else {
   criteria.addOrder(Order.desc("upperName"));
}

This code was humming along just fine in my test environment until I moved the application into a real container environment. Then I discovered I wasn't closing a hibernate transaction in which this query was taking place, and, lo and behold, the container didn't like that. OK, easy enough to close the transaction, but then I found that Hibernate did not like my getter for upperName.

Code:
    private String getUpperName() {
       return this.name.toUpperCase();
    }

This method was never actually called, but it looked good. However, once I recoded my query in which the above criteria was added, to correctly close the transaction, I got the exception shown above:


Recoding getUpperName() as

Code:
    private String getUpperName() {
       return null;
    }


made this problem go away.

However, my question is what is the RIGHT way to handle this sort of thing? Is there a way to do the mapping that still allows the property to be used without the necessity of coding such bogus methods?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 10:25 am 
Newbie

Joined: Thu Mar 30, 2006 8:23 am
Posts: 19
Location: FRANCE 67
I think you should make a new String to have the upper name in an another memory case and it's hibernates who transform the name to upperName


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 12:25 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
1) Your getName() method is not null safe for this.name. method body should be:
Code:
return this.name == null ? null : this.name.toUpperCase();


2) An even better question is why are you calling toUpperCase() in the getter? Shouldn't it already be upper case when you read existing data (because of the formula)?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 3:51 pm 
Regular
Regular

Joined: Tue Mar 21, 2006 11:01 am
Posts: 65
Your reply #1 is the answer to the exception. Thank you very much.

As to point #2, I agree with your point but my point is even more basic:

Why do I need this method at all? Since this property is ONLY used to create a sort order for Hibernate as defined in the formula (my POJO's clients have no business need for an "upperName" field or a "getUpperName()" method - which is why I declared the method private), it would be nice to be able to define this property in a way such that a field, a setter and getter were not needed at all.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 4:42 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Ah, now I see what you were trying to accomplish!

Code:
if (sortAscending) {
   criteria.addOrder(Order.asc("name").ignoreCase());
} else {
   criteria.addOrder(Order.desc("name").ignoreCase());
}


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 5:20 pm 
Regular
Regular

Joined: Tue Mar 21, 2006 11:01 am
Posts: 65
alas, Order.ignoreCase() is not available to me in 3.0.5, which I am constrained to use. But I see that is there in 3.1.x.

So it looks like Hibernate has answered this use case in a later version.


Top
 Profile  
 
 Post subject: org.hibernate.PropertyAccessException: IllegalArgumentExcept
PostPosted: Tue Apr 05, 2016 6:20 am 
Newbie

Joined: Fri Apr 01, 2016 4:08 am
Posts: 3
Quote:
<hibernate-mapping>
<class name="com.finance.transaction.Reviewjournalvoucher.JvReviewView" table="jv_review_view" >
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="identity" />
</id>

<property name="journalVoucher" type="string" not-null="true">
<column name="journalVoucher" length="45" />
</property>
<property name="journalDate" type="string">
<column name="journalDate" length="19" />
</property>

<property name="jvType" type="string">
<column name="jvType" length="19" />
</property>


<property name="narration" type="string">
<column name="narration" length="65535" />
</property>
<property name="costCenter" type="string">
<column name="costCenter" length="65535" />
</property>
<property name="currencyId" type="string">
<column name="currencyId" length="65535" />
</property>
<property name="accountId" type="string">
<column name="accountId" length="65535" />
</property>


<property name="creditAmount" type="string">
<column name="creditAmount" precision="12" scale="3" />
</property>
<property name="debitAmount" type="string">
<column name="debitAmount" precision="12" scale="3" />
</property>
<property name="postedEmployeeId" type="string">
<column name="postedEmployeeId" precision="12" scale="3" />
</property>


<property name="approvalStatus" type="string">
<column name="approvalStatus" length="45" />
</property>
<property name="approverId" type="string">
<column name="approverId" length="45" />
</property>


<property name="waiting" type="string">
<column name="waiting" length="19" />
</property>
<property name="approvalDate" type="string">
<column name="approvalDate" length="19" />
</property>

<many-to-one class="com.finance.transaction.journalVoucher.model.FinanceJournalVoucher" column="buisnessUnit" name="buisnessUnit" unique="true"/>

</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject: org.hibernate.PropertyAccessException:
PostPosted: Tue Apr 05, 2016 6:25 am 
Newbie

Joined: Fri Apr 01, 2016 4:08 am
Posts: 3
Quote:

this is my java class
package com.finance.transaction.Reviewjournalvoucher;

import com.finance.transaction.journalVoucher.model.FinanceJournalVoucher;



/**
*
* @author saitech
*/
public class JvReviewView implements java.io.Serializable{
private Integer id;
private FinanceJournalVoucher buisnessUnit;
private String journalVoucher;
private String journalDate;
private String jvType;
// private TblCurrency currencyId;
private String narration;
private String costCenter;
private String currencyId;
private String accountId;
private String creditAmount;
private String debitAmount;
private String postedEmployeeId;
private String approvalStatus;
private String approverId;
private String waiting;
private String approvalDate;

public JvReviewView(FinanceJournalVoucher buisnessUnit, String journalVoucher,
String journalDate, String jvType, String narration, String costCenter, String currencyId,
String accountId, String creditAmount, String debitAmount, String postedEmployeeId, String approvalStatus,
String approverId, String waiting, String approvalDate) {
this.buisnessUnit = buisnessUnit;
this.journalVoucher = journalVoucher;
this.journalDate = journalDate;
this.jvType = jvType;
this.narration = narration;
this.costCenter = costCenter;
this.currencyId = currencyId;
this.accountId = accountId;
this.creditAmount = creditAmount;
this.debitAmount = debitAmount;
this.postedEmployeeId = postedEmployeeId;
this.approvalStatus = approvalStatus;
this.approverId = approverId;
this.waiting = waiting;
this.approvalDate = approvalDate;
}


public JvReviewView() {
}

public FinanceJournalVoucher getBuisnessUnit() {
return buisnessUnit;
}

public void setBuisnessUnit(FinanceJournalVoucher buisnessUnit) {
this.buisnessUnit = buisnessUnit;
}

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}


public String getJournalVoucher() {
return journalVoucher;
}

public void setJournalVoucher(String journalVoucher) {
this.journalVoucher = journalVoucher;
}

public String getJournalDate() {
return journalDate;
}

public void setJournalDate(String journalDate) {
this.journalDate = journalDate;
}



public String getJvType() {
return jvType;
}

public void setJvType(String jvType) {
this.jvType = jvType;
}

public String getNarration() {
return narration;
}

public void setNarration(String narration) {
this.narration = narration;
}

public String getCostCenter() {
return costCenter;
}

public void setCostCenter(String costCenter) {
this.costCenter = costCenter;
}

public String getCurrencyId() {
return currencyId;
}

public void setCurrencyId(String currencyId) {
this.currencyId = currencyId;
}

public String getAccountId() {
return accountId;
}

public void setAccountId(String accountId) {
this.accountId = accountId;
}

public String getCreditAmount() {
return creditAmount;
}

public void setCreditAmount(String creditAmount) {
this.creditAmount = creditAmount;
}

public String getDebitAmount() {
return debitAmount;
}

public void setDebitAmount(String debitAmount) {
this.debitAmount = debitAmount;
}

public String getPostedEmployeeId() {
return postedEmployeeId;
}

public void setPostedEmployeeId(String postedEmployeeId) {
this.postedEmployeeId = postedEmployeeId;
}

public String getApprovalStatus() {
return approvalStatus;
}

public void setApprovalStatus(String approvalStatus) {
this.approvalStatus = approvalStatus;
}

public String getApproverId() {
return approverId;
}

public void setApproverId(String approverId) {
this.approverId = approverId;
}


public String getWaiting() {
return waiting;
}

public void setWaiting(String waiting) {
this.waiting = waiting;
}

public String getApprovalDate() {
return approvalDate;
}

public void setApprovalDate(String approvalDate) {
this.approvalDate = approvalDate;
}



}

this is my METHOD
Quote:
public class JournalReviewVoucherDAO {

public ArrayList<JvReviewView> filterJVReviewList(Integer branchId,Date fromDate,Date toDate) {
System.out.println("branchId" + branchId);
System.out.println("fromDate" + fromDate);
System.out.println("toDate" + toDate);
Session session = HibernateLoginUtil.getFactory().openSession();
ArrayList<JvReviewView> JVreviewList = new ArrayList<JvReviewView>();
String dateFromDBFormat = "yyyy-MM-dd";
SimpleDateFormat DbDateFormat = new SimpleDateFormat(dateFromDBFormat);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat formatter1 = new SimpleDateFormat("yyyy-MM-dd");
String refFromDate = null, refToDate = null;
Date date1 = new Date();
Date date2 = new Date();

try {
if (fromDate != null) {
refFromDate = formatter.format(fromDate);
date1 =formatter.parse(formatter.format(fromDate));


}
formatter = new SimpleDateFormat("yyyy-MM-dd");





if (toDate != null) {
refToDate = formatter.format(toDate);
date2 = formatter.parse(formatter.format(toDate));
}



System.out.println("date1===>" + date1 + "....date2===>" + date2 + "....branchId===>" + branchId);
System.out.println("....branchId===>" + branchId);


//FinanceJournalVoucher jvId=(FinanceJournalVoucher) session.get(FinanceJournalVoucher.class);
Query q1 =session.createQuery("FROM JvReviewView WHERE buisnessUnit = :branchId AND journalDate BETWEEN :fromDate AND :toDate");
q1.setParameter("branchId", branchId);
q1.setParameter("fromDate", date1);
q1.setParameter("toDate", date2);
System.out.println("....q1===>" + q1);

List li1 = q1.list();
for (int i = 0; i < li1.size(); i++) {
JvReviewView ttcs1 = (JvReviewView) li1.get(i);
JVreviewList.add(ttcs1);

}

} catch (Exception e) {
e.printStackTrace();
} finally {
session.close();
}
return JVreviewList;
}








Quote:
THIS IS MY ACTION CLASS
Quote:
public String filterJournalVOucher() {
System.out.println("###############################branchId"+branchId);
System.out.println("###############################fromDate"+fromDate);
System.out.println("###############################toDate"+toDate);
try {
JournalReviewVoucherDAO journalReviewVoucherDAO = new JournalReviewVoucherDAO();
setJVreviewList(journalReviewVoucherDAO.filterJVReviewList(Integer.parseInt(branchId),fromDate,toDate));
return SUCCESS;
} catch (Exception e) {
e.printStackTrace();
}
return ERROR;
}





ERROR IS

Hibernate: select jvreviewvi0_.id as id308_, jvreviewvi0_.journalVoucher as journalV2_308_, jvreviewvi0_.journalDate as journalD3_308_, jvreviewvi0_.jvType as jvType308_, jvreviewvi0_.narration as narration308_, jvreviewvi0_.costCenter as costCenter308_, jvreviewvi0_.currencyId as currencyId308_, jvreviewvi0_.accountId as accountId308_, jvreviewvi0_.creditAmount as creditAm9_308_, jvreviewvi0_.debitAmount as debitAm10_308_, jvreviewvi0_.postedEmployeeId as postedE11_308_, jvreviewvi0_.approvalStatus as approva12_308_, jvreviewvi0_.approverId as approverId308_, jvreviewvi0_.waiting as waiting308_, jvreviewvi0_.approvalDate as approva15_308_, jvreviewvi0_.buisnessUnit as buisnes16_308_ from jv_review_view jvreviewvi0_ where jvreviewvi0_.buisnessUnit=? and (jvreviewvi0_.journalDate between ? and ?)
2016-04-05 15:31:28 ERROR BasicPropertyAccessor:191 - IllegalArgumentException in class: com.finance.transaction.journalVoucher.model.FinanceJournalVoucher, getter method of property: id
org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.finance.transaction.journalVoucher.model.FinanceJournalVoucher.id
at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:195)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:206)
at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3619)
at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3335)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:204)
at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:241)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:430)
at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:110)
at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:61)
at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:514)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1589)
at org.hibernate.loader.Loader.doQuery(Loader.java:696)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at com.finance.transaction.Reviewjournalvoucher.JournalReviewVoucherDAO.filterJVReviewList(JournalReviewVoucherDAO.java:77)
at com.finance.transaction.Reviewjournalvoucher.ReviewJournalVoucherAction.filterJournalVOucher(ReviewJournalVoucherAction.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:169)
... 93 more
05-Apr-2016 15:34:45.895 INFO [http-nio-8080-exec-313] org.apache.catalina.core.StandardContext.reload Reloading Context with name [/COR_ORTMS] has started
05-Apr-2016 15:34:45.910 WARNING [http-nio-8080-exec-313] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [COR_ORTMS] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
05-Apr-2016 15:34:45.910 SEVERE [http-nio-8080-exec-313] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [COR_ORTMS] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@7799091e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4e465279]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
05-Apr-2016 15:34:45.910 SEVERE [http-nio-8080-exec-313] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [COR_ORTMS] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@7799091e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@343b36a9]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
05-Apr-2016 15:34:45.910 SEVERE [http-nio-8080-exec-313] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [COR_ORTMS] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@7799091e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@cd4140e]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
05-Apr-2016 15:34:45.910 SEVERE [http-nio-8080-exec-313] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [COR_ORTMS] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@7799091e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@33ba3d73]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
05-Apr-2016 15:34:45.910 SEVERE [http-nio-8080-exec-313] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [COR_ORTMS] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@7799091e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4f9364e7]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
05-Apr-2016 15:34:45.910 SEVERE [http-nio-8080-exec-313] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [COR_ORTMS] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@7799091e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@22f09dc2]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...
Destroying MyLoggingInterceptor...


HOW TO SOLVE THIS ERROR?









Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.