Manon Baratt

Ranch Hand
+ Follow
since Jan 30, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Manon Baratt

Eric,

I changed my loop using a temporary variable but I am still seeing the same error in ie.:-(

Thanks
I did change to use empty but I have not changed the loop. I need to use the loop to create the list of results. What do you suggest to use instead of a loop?

Thanks
Thanks for your reply. I will make the neccessary changes. Plesae note that the error I am getting is only in ie not ff. ie is not setting the object tbody that is why I am getting the exception in jquerytablesorter.

Thanks again!!
This is how I build the table in a loop:

$('#listResultsTable tbody').html('');
var _html = '<tr>';
_html +='<td>'+val+'</td>';
_html+="</tr>";

Which becomes part of the tbody tag. And I am using the jquerytablesoter min js file which is where the error is showing up. I hope this is sufficient.

Thanks!!
Hi,

I have this line that adds a built in string with tags for a table (tr, td) to display the search results. This works in ff but not in ie.

$('#listResultsTable tbody').append(_html);

I get the results displayed but when I click on the sort buttons for any of the columns, I get the error config.parser is null or not an object (ie only). When I look at the source in ff I see the table results but not in ie. That is why I think append does not work correctly in ie.

Any suggestions?

Thanks!!!
Hi,

I am trying to retrieve data using hibernate criteria in my Spring application. I had it working with a query in the hbm file but I need to use the hibernate criteria. I am passing one of the values for the Family class (Lastname = "Jones").
Here is part of my service code:

SessionFactory sessionFactory = new Configuration().configure()
.buildSessionFactory();

Session session = sessionFactory.openSession();
Criteria criteria = session.createCriteria(Family.class);
families = (List<Family>) criteria.list();

I check the session and it is created. I also set the property below
<property name="hibernate.show_sql">true</property>

in hibernate.cfg.xml and set log4j to debug for hibernate. Trouble is that I do not see the query in my console and I don't see any results.

Please let me know if there some setup I am missing or any suggestion for debuggin this.

Thanks!!
Hi,

I have a spring 3.0 application where I am calling a web service and I need to retrieve the base url value. I have defined a resource in spring-app-services.xml for the web service which includes the base url.
<bean name="client" class="com.xxx.clientImpl" p:baseUrl-ref="dataServicesURI"/>

The datServicesURI has been defined in my context.xml as
<ResourceLink global="env/dataServicesURI" type="java.lang.String"
name="env/dataServicesURI" />
and in web.xml and server.xml.

I am trying to retrieve the baseUrl-ref in my Java code. Please provide any suggestions on how to do it.

Thanks!!
12 years ago
Hi,

I have input elements with the following ids:


  • <form:input path="id.employeeName" />
  • <form:input path="custName" />



I am trying to display these fields in my edit pop up screen:

var data = DATA.results[index];
$("form#myForm :input").each(function(){
var input = $(this);
input.val(data[input.attr('id')]);
});

I am only seeing the custName value not the id.employeeName. I get undefined. I can get this working in javascript not jquery. I appreciate any suggestions.

Thanks!!!
Thanks for your reply. I got it working by using the same object since I am saving the object, I shall get the same object.

expect(objService.saveObj(obj)).andReturn(obj);
replay(objService);
obj1 = (Obj) controller.create(obj);

obj1 is used in an assert statement in my code.

Thanks again
12 years ago
Hi,

I am using easymock to test the controller in my Spring project. I am getting an object back (obj1) which is of the same type as obj but none of its properties are set. Here is the partial code:

controller= new ObjController();
objService= org.easymock.EasyMock.createNiceMock(objService.class);
controller.setObjService(objService);

expect(objService.saveObj(obj)).andReturn(obj1);
replay(objService);
obj1 = (Obj) controller.create(obj);

My service create method:

@RequestMapping
public @ResponseBody
Obj create(@ModelAttribute("object") Obj obj) {
....
return objService.saveObj(obj);
}

Any ideas why I am not getting the obj1 set?

Thanks!!
12 years ago
Hi,

I am getting this exception. My environment is WAS 7, Websphere MQ and Oracle. I would appreciate any explanation on why I am getting this exception.

Thanks!!!

An exception occurred while invoking end on an XA Resource Adapter from DataSource JMS$SchedulerQCF$JMSManagedConnection@3, within transaction ID {XidImpl: formatId(57415344), gtrid_length(36), bqual_length(54),
data(000001360622f7a30000000100000053401e9b9dff66f138972edc04e7f8987765b1d945000001360622f7a30000000100000053401e9b9dff66f138972edc04e7f8987765b1d945000000010000000000000000000000000003)} : javax.transaction.xa.XAException: The method 'xa_end' has failed with errorCode '100'.
at com.ibm.mq.jmqi.JmqiXAResource.end(JmqiXAResource.java:457)
at com.ibm.ejs.jms.JMSManagedSession$JMSXAResource.end(JMSManagedSession.java:1649)
at com.ibm.ejs.j2c.XATransactionWrapper.end(XATransactionWrapper.java:603)
at com.ibm.ws.Transaction.JTA.JTAResourceBase.end(JTAResourceBase.java:240)
at com.ibm.tx.jta.RegisteredResources.sendEnd(RegisteredResources.java:1108)
at com.ibm.tx.jta.RegisteredResources.distributeEnd(RegisteredResources.java:1082)
at com.ibm.tx.jta.TransactionImpl.distributeEnd(TransactionImpl.java:1726)
at com.ibm.tx.jta.TransactionImpl.prepareResources(TransactionImpl.java:1423)
at com.ibm.ws.tx.jta.TransactionImpl.stage1CommitProcessing(TransactionImpl.java:556)
at com.ibm.tx.jta.TransactionImpl.processCommit(TransactionImpl.java:985)
at com.ibm.tx.jta.TransactionImpl.commit(TransactionImpl.java:919)
at com.ibm.ws.tx.jta.TranManagerImpl.commit(TranManagerImpl.java:436)
at com.ibm.tx.jta.TranManagerSet.commit(TranManagerSet.java:161)
at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:927)
at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:230)
at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:570)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:4558)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:111)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:136)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:567)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
Thanks for your reply. I had tried deleting the effect.js file and the error moved to the next js file. I agree with you, my problem is project configuration.
Hi,

I am getting this error in a maven project in eclipse. It is complaining about effect.js. Here is the error information:

Internal validation error
java.lang.NullPointerException
at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitBinding.sourceMethod(CompilationUnitBinding.java:83)
at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.sourceMethod(MethodBinding.java:553)
at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1068)
at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1054)
at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:779)
at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:623)
at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:638)
at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1635)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:325)
at org.eclipse.wst.jsdt.internal.compiler.ast.FieldReference.resolveType(FieldReference.java:346)
at org.eclipse.wst.jsdt.internal.compiler.ast.FieldReference.resolveType(FieldReference.java:275)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:279)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:267)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:267)
at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:267)
at org.eclipse.wst.jsdt.internal.compiler.ast.ReturnStatement.resolve(ReturnStatement.java:146)
at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:350)
at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:137)
at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:304)
at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:375)
at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:58)
at org.eclipse.wst.jsdt.internal.compiler.ast.Assignment.resolveType(Assignment.java:160)
at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:477)
at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:394)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:604)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:356)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:288)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:86)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:227)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:58)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:199)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
effects.js /tc-webapp/src/main/webapp/WEB-INF/website/scripts line 0 JavaScript Problem

Why would I get a javascript error? I appreciate any explanation and suggestions on the fix.

Thanks
Hi,

I have an ear file that runs in WAS 6.1. We have deployed it to WAS 7. The app comes up but when I click on links in the page (jsp), I get a 500 error sometimes.

Error 500: java.lang.NoClassDefFoundError: com.xxx.mx.db.MxCoDB (initialization failure)

What could be the issue here? Different versions of jar files?

Thanks
13 years ago
Hi,

I have two tables that share the same heading_key column. I am using the following statement using criteria to retrieve the headingcode:

my xml files are defined:

customer:

Heading:

The query I get from hibernate is:

Which is what I want minus the second to the last line. What I am doing wrong?

Thanks for your help.