sourav dalal

Greenhorn
+ Follow
since Nov 29, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sourav dalal

Hi,

I have a web service client , when calling the web service is getting issue "WSDoAllReceiver: The timestamp could not be validated". The server code is built on top of Axis 1 & WSS4J 1.5.12. The client code is manually written via creation SOAPEnvelop structure to create soap message. If i call the WS from SOAP UI it is working fine but if i call it from client code it is getting the above error. I have checked & found WSS$J uses UTC time zone; which I have changed & making the dateformat as 24 hours works now. But the problem is client coders don't want to do this change & asked me to deliver the server code so that it can handle different time zone (in this case EST). I am using the username token timestamp specification with ttl as 720. Can you please advise how we can change the timezone at server side

Thanks & Regards
Sourav
10 years ago
i want to produce a graph for last 7 days, where the data is collected for every 5 mins.
While using timeseries with day class, it gets error due to duplicate data in same date, though
I have provided in "yyyy-MM-DD HH:mm:ss" style. So, I have used XY graph. But in XY graph,
the date in X axis is replaced with array index(Since it takes double as input).Can it be replaced with
a String value? Secondly, in XY graph the max in Y axis depend on Max value of series. Can
I produce a graph in Y axis with range of 0,25,50,100 irrespective of Max value in graph data?
I am using cewolf 1.1 prepared by ulfdittmer. Can anbody suggest how to put custom labels in X & Y. Also I want to use the Timeseries chart for Time.class. But it is giving error for Null Time argument.
The follwing code is for producing graph for 10th to 31 Dec 2008.

TimeSeries ts = new TimeSeries("Cewolf Release Schedule", Day.class);
int j=3;
Date [] dates = new Date[21] ;
DateFormat df = java.text.DateFormat.getDateInstance(DateFormat.DEFAULT);
try {
for(int i=0;i<21;i++){
int day = i+10;
String date= day+"/12/2008";
dates[0] = df.parse(date);
}

} catch (Exception ex){

}
for(int i=0;i<21;i++) {
j=j+i;
ts.add(new Day(dates[i]), j);
}
return new TimeSeriesCollection(ts);
Is it possible for a dial chart to have 3 different color ranges like Meter Chart post processor? Such as upto 50 deg Green, 60-120Deg Amber & 120-180 is red.
Yes, that's the problem. Can you suggest any alternative? Is it possible by ,putting negative values in stroke to produce the width inward. Though ,that does not work. But is it possible to do?
Thanks for your solution. My new problem is that,While using MeterPostProcessor , I have increased the BasicStroke of MeterInterval to 20.0f. But in case of display the chord is trimmed at upper level.
I am attaching the code for meter postprocessor for processchart function:

public void processChart (Object chart, Map params) {
MeterPlot plot = (MeterPlot) ((JFreeChart) chart).getPlot();
double min = 0;
double max = 180;
plot.setMeterAngle(180);
plot.setNeedlePaint(Color.BLACK);
plot.setDialBackgroundPaint(Color.white);
plot.setDrawBorder(true);
plot.setDialShape(DialShape.CHORD);
//plot.setDialBackgroundPaint(Color.ORANGE);
plot.setOutlineVisible(true);
plot.setRange(new Range(min, max));
plot.addInterval(new MeterInterval("Normal",new Range(0, 60),Color.green, new BasicStroke(20.0f, BasicStroke.CAP_BUTT, BasicStroke.CAP_BUTT), null));
plot.addInterval(new MeterInterval("Warning",new Range(60, 120),Color.yellow, new BasicStroke(20.0f,BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER), null));
plot.addInterval(new MeterInterval("Critical",new Range(120, 180),Color.red, new BasicStroke(20.0f,BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER), null));
plot.valueToAngle(0.0f);
plot.setUnits("km/h");
}
Hi,
I am using cewolf 1.1, prepared by ulfdittmer. I am using the meter chart for my application. But making showlegend to false for meter chart does not hide the legend. Can anybody please tell me how to hide the legend.
Thanks