Sudhakar Rao

Ranch Hand
+ Follow
since May 21, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sudhakar Rao

Hi,
I am newbie to Mockit framework. My application is build on spring mvc, and jpa. The flow is from controller, service layer will call, and my serivce layer will call the DAO layer where I am using JPA's. I want to test my controller using mockit. I tried in the following way but getting null pointer execptions.
I am attaching java file for your refernece. The test class is for controller is as follows.

The exception I am getting is null pointer exception at
ModelAndView acutalModelView=ecpProductionController.getPfgProductionViewResultPage(null, "30415","10-Jul-2011", "01");

The service class is as follows

The DAO class is

Please help me whether I am going in the right direction or not and help me in resolvoing the issue. I have written the test case only for getPfgProductionViewResultPage for the controller.

Any help is appreciated

10 years ago
I am looking some thing like above only, but with slight difference. I want labes in the chart pie section only, not outside which means, I want the labels in the colored plot section of the pie chart only. Hope I cleared mentioned my requirement.
Thanks
Sudhakar
HI,
I am using jreechart for generating pie charts. I am a newbie to this technology. I would like to know, Is it possible to add labels in the pie section of the chart. If possible can any body guide with some sample code.

Thanks in Advance
Sudhakar
Hi,
I am using XSL to transform my xml document into text file. It is working fine but with one error. The first line one the text file is blank. I dont want the first line as blank. I used <xsl:output method="text" omit-xml-declaration="yes"/>. But it is not removing the blank line. Any help Please
Thanks in Advance
Sudhakar
Can I have sample code for XSLT also. I want to store the flat file in unix system.
Thanks in Advance
The XML file looks like
<contacts>

<contact>
<name>sudhakar</name>
<email>dvvn_sudha@yahoo.com</email>
<phone>21843949</phone>
<contact>

<contact>
<name>javaking</name>
<phone>383939</phone>
</contact>

</contacts>

The converted flat file would look like this

[contacts]

[contact]
name=sudhakar email=dvvn_sudha@yahoo.com phone=21843949

name=javaking phone=383939

The requirement here is take the xml file as input and using xslt and java generate output file as flatfile.
Hi,
Can any body give java code snippet for converting XML file to flat file.
regards
Sudhakar
Hi,
I created one custom level. I want to know how to pass it in the log4j-config.properites file.
Thanks in Advance
Sudhakar
Hi,
Can we log the java objects(seriablizble) into a logfile using log4j? If yes please tell me some good link or example on this one.
Thanks in Advance
Sudhakar
Hi,
I would like to know how to create different log files for different instances of a class?

Thanks in Advance
Sudhakar
I don't know how many instances will be there in my project. Its going to be dynamic. So I want to create the logfiles also dynamically. Hope I clearly mentioned my doubts
Thanks
Sudhakar
Hi,
In my project we are using log4j for logging purpose. In my project there is a interface with the name DC. But there will be different instances for it like DC1,DC2,DC3 etc. How can they will have different log files for each DC. Is it possible or not? If yes, how can we achieve it. Its very urgent
Thanks in Advane
Sudhakar
HI,
We are developing a new project which consists of 3 modules, in which 2 modules uses pure java classes and another module uses ejb's. I want seperate config files for each module. My question is where to put the config file and how to pass them to the class?
Hope framed the question in correct way.
Thanks in Advance
Sudhakar
When I look at the log4j rolling appender, it seems that file name is does not have time stamp and will have maximum of <x>-defined number of rolling files.

While the Daily Rolling File Appender, has one file for a day and does is not file size based.

Both the above does not seem to meet our requirements. That is size based, unlimited number of files, file names are date+time stamped.

I want my log file should have time stamped and size based and one file for a day

Is it Possible?
Thanks in Advance
Sudhakar
Hi,
Can I set the max size of the backup fie when I am using DailyRollingFileAppender?
Can I get the date as my log file name when using RollingFileAppender?
Thanks in Advance
Sudhakar