shafiullah shaik

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

Recent posts by shafiullah shaik

HI ,

In our project we are using Websphere Application server 7.0.0.11
When we tried to send mails we are getting the below exception

[financing_tools_gcps] [GcpsEmailSender] [03/04 09:23:19] [DEBUG] [Severity 4] [R2fSendStatusApp] Initializing context and mail session
[financing_tools_gcps] [GcpsEmailSenderFactory] [03/04 09:23:22] [ERROR] [Severity 2] [R2fSendStatusApp] GcpsEmailSenderFactor failed to send eMail sendMail(String to, String from, String subject, String text, String mimeType) javax.naming.Reference incompatible with javax.mail.Session
[financing_tools_gcps] [GcpsEmailSenderFactory] [03/04 09:23:22] [DEBUG] [Severity 4] [R2fSendStatusApp] <-- GcpsEmailSenderFactory sendMail(String to, String from, String subject, String text, String mimeType) with exception java.lang.ClassCastException: javax.naming.Reference incompatible with javax.mail.Session
[financing_tools_gcps] [R2fSendStatusApp] [03/04 09:23:22] [ERROR] [Severity 2] [R2fSendStatusApp] Gcps Exception occured while sending mail financing.tools.gcps.common.exceptions.GcpsExceptionjavax.naming.Reference incompatible with javax.mail.Session

THe code which we used is:
-----------------------------------------------------------------------------------------------------------------------
private void init()
throws GcpsException
{
logCtx.debug(ENTRY_LOG, "--> void init ( ) ");
Hashtable hashtable = new Hashtable();
String s = ApplicationContextFactory.singleton().getApplicationContext().getConfigParameter("javaMailInitialContextFactory");
String s1 = ApplicationContextFactory.singleton().getApplicationContext().getConfigParameter("jndiProviderUrl");
String s2 = ApplicationContextFactory.singleton().getApplicationContext().getConfigParameter("javaMailSessionJndiName");
hashtable.put("java.naming.factory.initial", s);
hashtable.put("java.naming.provider.url", s1);
try
{
logCtx.debug(APP_LOG, "Initializing context and mail session");
logCtx.debug(APP_LOG, s);
logCtx.debug(APP_LOG, s1);
logCtx.debug(APP_LOG, s2);
InitialContext initialcontext = new InitialContext(hashtable);
logCtx.debug(APP_LOG, "Testing 1");
super.mailSession = (Session)initialcontext.lookup(s2);
logCtx.debug(APP_LOG, "Initializing context and mail session ended");
}
catch(NamingException namingexception)
{
GcpsException gcpsexception = new GcpsException(namingexception.getMessage());
logCtx.error(APP_LOG, (new StringBuilder()).append("Naming exception occured during initiliazing the session and context ").append(namingexception.getMessage()).toString());
logCtx.debug(EXIT_LOG, "<-- void init ( ) with Naming Exception");
throw gcpsexception;
}
logCtx.debug(EXIT_LOG, "void init ( ) ");
---------------------------------------------------------------------------------------------------------------------------------------------------

When we use Websphere Application server 6.1 We are happily receiving mails .
IN the class path I have set the WAS 7 compatible naming.jar and namingclient.jar

Please let me know if something else is to be configured.
can some one please help me out in this.
Thank you very much sir for your suggestion,I got succeded in developing the charts with data points.

In my current Application I am taking the count of number of projects on Y- axis but the intervals on Y-axis is divided by the API accordingly as Decimal values in few charts which I need to be a real value without decimal points.

Note:values are not predictable,it may be any value retreving from database.

Please suggest me for the same
Iam using jfree charts but iam facing a problem in highlighting the point on the chart,as it is showing only the
line connecting points without highlighting the points

please help me regarding the same

see the difference between these charts one is showing simple line connecting the points but the other is highlighting the points

suggest me the code for highlighting those points

Iam using the following code:;
<cewolf:chart id="line" title="${title}"
type="line" showlegend="true" legendanchor="south"
xaxislabel="Months" yaxislabel="Associate Count" background="#FF030D" >
<cewolf:gradientpaint>
<cewolf:point color="#FF0000" y="200" x="2000"/>

</cewolf:gradientpaint>
<!--cewolf:colorpaint color="#B0C4DE"/-->

<cewolf:data>
<cewolf:producer id="pageViews" usecache="" />

</cewolf:data>

<cewolf:chartpostprocessor id="dataColor" >
<cewolf:param name="0" value='<%= "#000000" %>' />
<cewolf:param name="1" value='<%= "#00FF00" %>'/>
<cewolf:param name="2" value='<%= "#990066" %>'/>
<cewolf:param name="3" value='<%= "#00FFFF" %>'/>
<cewolf:param name="4" value='<%= "#FF00FF" %>'/>
<cewolf:param name="5" value='<%= "#6600FF" %>'/>
<cewolf:param name="6" value='<%= "#990000" %>'/>
<cewolf:param name="7" value='<%= "#996600" %>'/>
<cewolf:param name="8" value='<%= "#99CC00" %>'/>
</cewolf:chartpostprocessor>
</cewolf:chart>


<cewolf:img chartid="line" renderer="/cewolf" width="1046" height="700"
alt="">
<cewolf:map tooltipgeneratorid="pageViews" />
</cewolf:img>





waiting for your reply
Iam using jfree charts but iam facing a problem in highlighting the point on the chart,as it is showing only the
line connecting points without highlighting the points

please help me regarding the same

see the difference between these charts one is showing simple line connecting the points but the other is highlighting the points

suggest me the code for highlighting those points

Iam using the following code:;
<cewolf:chart id="line" title="${title}"
type="line" showlegend="true" legendanchor="south"
xaxislabel="Months" yaxislabel="Associate Count" background="#FF030D" >
<cewolf:gradientpaint>
<cewolf:point color="#FF0000" y="200" x="2000"/>

</cewolf:gradientpaint>
<!--cewolf:colorpaint color="#B0C4DE"/-->

<cewolf:data>
<cewolf:producer id="pageViews" usecache="" />

</cewolf:data>

<cewolf:chartpostprocessor id="dataColor" >
<cewolf:param name="0" value='<%= "#000000" %>' />
<cewolf:param name="1" value='<%= "#00FF00" %>'/>
<cewolf:param name="2" value='<%= "#990066" %>'/>
<cewolf:param name="3" value='<%= "#00FFFF" %>'/>
<cewolf:param name="4" value='<%= "#FF00FF" %>'/>
<cewolf:param name="5" value='<%= "#6600FF" %>'/>
<cewolf:param name="6" value='<%= "#990000" %>'/>
<cewolf:param name="7" value='<%= "#996600" %>'/>
<cewolf:param name="8" value='<%= "#99CC00" %>'/>
</cewolf:chartpostprocessor>
</cewolf:chart>

<cewolf:img chartid="line" renderer="/cewolf" width="1046" height="700"
alt="">
<cewolf:map tooltipgeneratorid="pageViews" />
</cewolf:img>




Hi,
Iam using ceowolf charts and Iam facing some problems
I request you to help me regarding the issue mentioned below

As Iam able to plot the graph with the specificed values on Y-axis I want the values to be displayed at that particular Point where the cewolf is ploting the point and also
Hghlighting the point as shown in the chart below

Please suggest me the better solution for the values to be displayed on the chart


For example here is the chart




if your not able to watch the Image click on the link

http://cewolf.sourceforge.net/new/img/tutorial.png" target="_blank" rel="nofollow">watch the Iamge
Thanks for your reply
This is the code which i have used for my charts.
Here i can able to give colors to my lines but how can i manage to set the values on y-axis as we are getting values from database(any values we can expect),the code which you have sent is hard coded to a particular range(0,50),here i dont know the range excatly what i want is to get complete values upto which the graph line reaches


<%
ChartPostProcessor dataColor = new ChartPostProcessor() {

public void processChart(Object chart, Map params) {
CategoryPlot plot = (CategoryPlot) ((JFreeChart) chart).getPlot();
for (int i = 0; i < params.size(); i++) {
String colorStr = (String) params.get(String.valueOf(i));
plot.getRenderer().setSeriesPaint(i, java.awt.Color.decode(colorStr));
}
}
};
pageContext.setAttribute("dataColor", dataColor);
%>

Displaying in the jsp using chartpostprocessor:
------------------------------------------------
<cewolf:chartpostprocessor id="dataColor">
<cewolf aram name="0" value='<%= "#000000" %>'/>
<cewolf aram name="1" value='<%= "#00FF00" %>'/>
<cewolf aram name="2" value='<%= "#990066" %>'/>
<cewolf aram name="3" value='<%= "#00FFFF" %>'/>
<cewolf aram name="4" value='<%= "#FF00FF" %>'/>
<cewolf aram name="5" value='<%= "#6600FF" %>'/>
<cewolf aram name="6" value='<%= "#990000" %>'/>
<cewolf aram name="7" value='<%= "#996600" %>'/>
<cewolf aram name="8" value='<%= "#99CC00" %>'/> </cewolf:chartpostprocessor>
could you please provide me any specified method if it is there to handle the values dynamically
find the image here:
----------------------


Please observe the above chart, if you didn't find the image open the url you will find an example chart
In the above chart first line in blue color exceeds the highest value shown in the graph ie 1500 ,how can i get the complete scale in order to cover the complete range.
hi,
Im facing a problem in charts that
1. I want to divide the intervals on y-axis but in cewolf it is dividing by itself accordingly and it is not showing the value at the highest point as shown in the second image where the value of bar graph exceeds 40 but the intervals on y-axis is still showing as 40 ,i just want to display one more value above 40.
2.And how i can remove decimal points coming on y-axis as i dont want it in my charts as in case where i have taken days as count on y-axis and days may not be 1.3 ,2.6 etc i just want to control the values as per the requirement
please help me out if you have any idea about this
thanks





[BPS: Added project name to subject line]
[ December 01, 2008: Message edited by: Ben Souther ]