public class SQLConstants {
public static final String PACKAGE = ClassUtils.getPackageName(SQLConstants.class);
public static final String C_NUMBERS_LIST =
"CNumberList.sql";
/**
* Private constructor to prevent instantiation.
*/
private SQLConstants() {
super();
}
}
public class CListDAO extends JdbcDAO {
public List claims() {
List li = getJdbcTemplate().queryForList(
this.loadQuery(SQLConstants.PACKAGE,
SQLConstants.C_NUMBERS_LIST));
Iterator iter = li.iterator();
System.out.println("I want ===>>"+li.size());
while(iter.hasNext()){
System.out.println("I want->>>>"+iter.next());
}
return li;
}
java.lang.NullPointerException
at com…….CListDAO.getRecords(ClaimsListDAO.java:32)
at com……..runScheduledJob(GenerationScheduledJob.java :52)
at com….common.jobs.AbstractScheduledJob.execute(Abst ractScheduledJob.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.springframework.util.MethodInvoker.invoke(Meth odInvoker.java:276)
at org.springframework.scheduling.quartz.MethodInvoki ngJobDetailFactoryBean$MethodInvokingJob.executeIn ternal(MethodInvokingJobDetailFactoryBean.java:260 )
at org.springframework.scheduling.quartz.QuartzJobBea n.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:529)
Last edited by java_dev; September 14th, 2009 at 02:58 AM.
I modified my post with code tags, Can you help me in solving my problem?
The point of the code tags is to preserve the formatting. If the code is unformatted, they won't help.
I am always doing that which I cannot do, in order that I may learn how to do it...
P. Picasso
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Yes, I can understand, that the reason I changed as per your suggestion.
<sigh> Your code is not formatted, so putting it in code tags is pointless. jcaccia was asking for formatted (readable) code.
I need help in solving my problem.
Perhaps jcaccia might be more inclined to help if the code was formatted and readable...?
Programs must be written for people to read, and only incidentally for machines to execute...
H. Abelson and G. Sussman
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
When I tired to override two columns
fieldValue[0].setIdentifier("0");
fieldValue[0].setName("FirstDate");
fieldValue[0].setValue(updated_FirstDate);
fieldValue[0].setIdentifier("1");
fieldValue[0].setName("SecondDate");
fieldValue[0].setValue(updated_ SecondDate);
cAPIClient.addActivityWithOverride(somenumber, “some value”,fieldValue);
addActivityWithOverride() method 3 parameter is type of FieldValue, When I tried with HashMap, type cast exception is comming.
but my first name and value is overriding/replacing by second value, here how can I initialize the FieldValue with value more than 1 so that I can generate Activity With Override.
Please help.
Last edited by java_dev; September 29th, 2009 at 05:58 AM.
Bookmarks