Some components make tomcat throw exceptions

Hi,
When i add for example 'table' or 'calendar' components on the page and run the app in tomcat it gives me exceptions. Anyone knows why it does not work? Thanks guys.
P.S. I have copied jstl.jar and standard.jar to tomcat dir.
Exception Details: org.apache.jasper.JasperException
Exception in JSP: /Page1.jsp:12 9: 10: 11: 12: 13: 14: 15: Stacktrace:
Possible Source of Error:
Class Name: org.apache.jasper.servlet.JspServletWrapper
File Name: JspServletWrapper.java
Method Name: handleJspException
Line Number: 504
Exception Details: javax.faces.FacesException
org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:12 9: 10: 11: 12: 13: 14: 15: Stacktrace:
Possible Source of Error:
Class Name: com.sun.faces.context.ExternalContextImpl
File Name: ExternalContextImpl.java
Method Name: dispatch
Line Number: 327
Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:12 9: 10: 11: 12: 13: 14: 15: Stacktrace:
Possible Source of Error:
Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
File Name: ViewHandlerImpl.java
Method Name: destroy
Line Number: 601

Hi,
To which directory did you copy the jar files to? These need to be copie to the common/lib directory.
Cheers
Girish

Similar Messages

  • JMS Mantaray implementation on tomcat throws exception  on shutting down

    Hi All,
    I have deployed two war file say warfile1.war and warfile2.war on a tomcat server. Both have their own spring-jms.xml file and on deployment mantaray in initialize twice for each war file . And also Mantaray is running on auto - discovery mode
    While stopping the tomcat mantaray is throwing following error
    Nov 19, 2007 5:26:22 PM org.hibernate.impl.SessionFactoryImpl close
    INFO: closing
    org.mr.core.groups.GroupsException: Group not joined
    at org.mr.core.groups.MutlicastGroupManager.sendMessageToGroup(MutlicastGroupManager.java:153)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:236)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.api.jms.MantaSession removeConsumer
    INFO: Recalling local consumer ServiceActor{ service=com.ud.reliance.jmsTopic id=reliance-172.30.0.111-6601@com.ud.reliance.jmsTopic21-1639378166 type=1 durability=false selector=SubscriptionID='resultevent' }
    Nov 19, 2007 5:26:23 PM org.mr.api.jms.MantaSession removeConsumer
    INFO: Recalling local consumer ServiceActor{ service=com.ud.reliance.jmsTopic id=reliance-172.30.0.111-6601@com.ud.reliance.jmsTopic21-1639378161 type=1 durability=false selector=SubscriptionID='metricevent' }
    Nov 19, 2007 5:26:23 PM org.springframework.context.support.AbstractApplicationContext doClose
    INFO: Closing application context [Root WebApplicationContext]
    Nov 19, 2007 5:26:23 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
    INFO: Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [MetricGateway,webAnnotations,handlerMapping,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping,xfire.customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider,jmsFactory,jmsConnectionFactory,jmsTopic,jmsTemplate,simpleMetricJMSGateway,messagegateway]; root of BeanFactory hierarchy}
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    Thanks in advance

    Hi All,
    I have deployed two war file say warfile1.war and warfile2.war on a tomcat server. Both have their own spring-jms.xml file and on deployment mantaray in initialize twice for each war file . And also Mantaray is running on auto - discovery mode
    While stopping the tomcat mantaray is throwing following error
    Nov 19, 2007 5:26:22 PM org.hibernate.impl.SessionFactoryImpl close
    INFO: closing
    org.mr.core.groups.GroupsException: Group not joined
    at org.mr.core.groups.MutlicastGroupManager.sendMessageToGroup(MutlicastGroupManager.java:153)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:236)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.api.jms.MantaSession removeConsumer
    INFO: Recalling local consumer ServiceActor{ service=com.ud.reliance.jmsTopic id=reliance-172.30.0.111-6601@com.ud.reliance.jmsTopic21-1639378166 type=1 durability=false selector=SubscriptionID='resultevent' }
    Nov 19, 2007 5:26:23 PM org.mr.api.jms.MantaSession removeConsumer
    INFO: Recalling local consumer ServiceActor{ service=com.ud.reliance.jmsTopic id=reliance-172.30.0.111-6601@com.ud.reliance.jmsTopic21-1639378161 type=1 durability=false selector=SubscriptionID='metricevent' }
    Nov 19, 2007 5:26:23 PM org.springframework.context.support.AbstractApplicationContext doClose
    INFO: Closing application context [Root WebApplicationContext]
    Nov 19, 2007 5:26:23 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
    INFO: Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [MetricGateway,webAnnotations,handlerMapping,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping,xfire.customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider,jmsFactory,jmsConnectionFactory,jmsTopic,jmsTemplate,simpleMetricJMSGateway,messagegateway]; root of BeanFactory hierarchy}
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    at org.mr.plugins.discovery.ADControlSender.sendInfo(ADControlSender.java:193)
    at org.mr.plugins.discovery.ADControlSender.run(ADControlSender.java:274)
    at java.lang.Thread.run(Thread.java:595)
    Nov 19, 2007 5:26:23 PM org.mr.plugins.discovery.ADControlSender run
    SEVERE: Could not send message to AutoDiscovery Group.
    java.lang.NullPointerException
    at org.mr.MantaAgent.<init>(MantaAgent.java:162)
    at org.mr.MantaAgent.getInstance(MantaAgent.java:150)
    Thanks in advance

  • Throwing exceptions in an actionPerformed method

    it tells me I can't do it
    is there a way to get around this?
    I'm reading a file inside the method so thats the exception in case it matters

    It's not in swing.. i'm making it on eclipse
    public void actionPerformed(ActionEvent e) {
    read();
    //do some stuff
    private void read() throws Exception{
    BufferedReader reader = new BufferedReader(new FileReader(file));
    //read some stuff
    thats the lines that are causing me trouble, the only thing i've learned to do is throw exceptions in read() though I know there are better ways such as try{ and catching specific exception I don't know how to use them.
    when I try to make actionPerformed throw Exceptions like I did to read() it says:
    Exception Exception is not compatible with throws clause in ActionListener.actionPerformed(Action Event)
    So... I don't know what to do and this is the final step in a program i've been making for a while now.

  • How to throw exception in run() method of Runnable?

    Hi, everyone:
    I want to know how to throw exception in run() method of interface Runnable. Since there is no throwable exception declared in run() method of interface Runnable in Java API specification.
    Thanks in advance,
    George

    Thanks, jfbriere.
    I must add though that if your run() methodis
    executed after a call to Thread.start(), then
    it is not a good choice to throw anyRuntimeException
    from the run() method.
    The reason is that the thrown exception won't be
    handled appropriately by a try-catch block.Why do you say that "the thrown exception won't be
    handled appropriately by a try-catch block"? Can you
    explain it in more detail?
    regards,
    George
    Because the other thread runs concurrently with and independently of the parent thread, there's no way you can write a try/catch that will handle the new thread's exception: try {
        myThread.start();
    catch (TheExceptionYouWantToThrowFromRun exc) {
        handle it
    do the next thing This won't work because the parent thread just continues on after myThread.start(). Start() doesn't throw the exception--run() does. And our parent thread here has lost touch with the child thread--it just moves on to "do the next thing."
    Now, you can do some exception handling with ThreadGroup and uncaughtException(), but make sure you understand why the above won't work, in case that was what you were planning to do.

  • How to throw Exception in Thread.run() method

    I want to throw exception in Thread.run() method. How can I do that ?
    If I try to compile the Code given below, it does not allow me to compile :
    public class ThreadTest {
         public static void main(String[] args) {
         ThreadTest.DyingThread t = new DyingThread();
         t.start();
         static class DyingThread extends Thread {
         public void run() {
         try {
                   //some code that may throw some exception here
              } catch (Exception e) {
              throw e;//Want to throw(pass) exception to caller
    }

    (a) in JDK 1.4+, wrap your exception in RuntimeException:
    catch (Exception e)
    throw new RuntimeException(e);
    [this exception will be caught by ThreadGroup.uncaughtException() of this thread's parent thread group]
    In earlier JDKs, use your own wrapping unchecked exception class.
    (b) if you know what you are doing, you can make any Java method throw any exception using Thread.stop(Throwable) regardless of what it declares in its "throws" declaration.

  • WebAuthenticationBroker.AuthenticateAsync throws exception on the desktop

    My code (C# - windows store) uses WebAuthenticationBroker.AuthenticateAsync().
    This method used to work on the desktop until last week, but now it throws exception
    "The process terminated unexpectedly. (Exception from HRESULT: 0x8007042B)"
    The code was not changed and the same code that does not work on the PC, does work on the tablet (Surface).
    The same code can be found in https://github.com/facebook-csharp-sdk/facebook-windows8-sample
    and also at this sample it throws the same exception.
    How can I solve this issue?
    Ronit

    I know it's been a while since the original question was asked, but I've not seen any solutions published for this issue yet. I
    recently faced the same issue. It turned out to be misconfigured permissions on the Internet Explorer's Temporary Internet Files folder. If you have changed that location from default to some custom, please make sure that your account has Full Access permission
    to this folder. I had Administrators group having full access, and my account was a part of administrators group. It worked in normal browsing scenarios, but Windows apps run in a sandbox with stripped permissions, i.e. they don't get permissions granted to
    Admins. Wininet running in the app process was not able to clean up state before starting authentication.

  • "Properly" throw exception...

    I'm trying to verify an application written in j2ee, and one some of our EJBs, we get verification failures with messages like
    In remote interface DeviceController, method [ connect ] does not properly throw exception java.rmi.RemoteException
    What does "properly" mean? I checked in both the remote interface (DeviceController.java) and in the bean itself (DeviceControllerBean.java), and in both files, method [ connect ] is declared to throw RemoteException.

    Methods defined in the remote interface must include in their throws clause the java.rmi.RemoteException. However, in the bean class, the business method should not throw the RemoteException and cmp-version 2.x beans must not throw the RemoteException. Another thing to check is that the method arguments and return type values should be the same between the interface and bean class. If this is also true, make sure the deployment descriptors agree as well.

  • Function module JOB_CLOSE throwing exception

    Hello,
    We have a batch job which has 2 steps:
    1) Step 1 uses job_open, job_submit and job_close and immediately schedules batch job A/P_ACCOUNTS which in turn creates batch input sessions A/P_ACCOUNTS.
    2) Step 2 Processes A/P_ACCOUNTS sessions created yesterday or today.
    In few cases, job_close is throwing exception job_close_failed. I believe that error is coming due to non availability of work processes. Job A/P_Accounts is defined as a class C batch job. There is a check in the FM job_close which does the following check:
    - if the class of a batch job is B or C, it calculates the number of free work processes. If there are no work processes available then JOB_CLOSE throws JOB_CLOSE_FAILED exception. 
    - If the class is u2018Au2019, it skips this check.
    We have an option of changing the class of batch job to A but there are some system critical jobs that are running as class A.
    My question is:
    In the code, JOB_CLOSE has been called for scheduling the job A/P_ACCOUNTS with parameter start immediately. Can anyone please let me know what will happen if function JOB_CLOSE is not called with start immediately option? Will the batch job A/P_ACCOUNTS wait till the time work processes are available?
    Or, can anything else be done to solve the issue?
    Regards,
    Siddharth

    HI,
    This is my experience with job_close..
    when i was working in zprograms then i was able to scedule it any time i wanted..
    but in my standard program when i tried it didn't worked....
    so i have to use that option of starting it immediately..
    and then it is working fine..
    now if i schedule 5 jobs... one after another..
    its get queued up...and once the processor is free...its working..
    my code of job close
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = job_count
          jobname              = job_name
          strtimmed            = yes " yes = 'X'
        IMPORTING
          job_was_released     = job_released
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          invalid_target       = 8
          OTHERS               = 9.
    regards,
    Yadesh

  • Faxing of SAPScript throwing exception

    Dear All,
    I am facing problem while sending Sales Order output through FAX. It is throwing exception in OPEN_FORM function module as FAX_NOT_VALID. I debugged and found that actually system is failing FM SX_NUMBER_TO_DEVTYPE which in turn showing that the exception has occured due to Node not found. Is it a configuaration issue? I tried to configure through SPRO but could not find any relevent place. Looking for your valuable suggestion.
    Any suggestion!
    Thanks and regards,
    Atanu

    Make sure are you entering the correct fax number in the recepient.
    Go to transaction SBWP - > create new message and try to send it as FAX. It you are not able to send fax via Business workplace then it implies that some setting is required form the BASIS.
    Otherwise the parameters passed to the OPEN_FORM needs to be investigated.

  • Throwing Exception having multiple arguments in constructor

    hi,
    I am trying to implement exception handling for a JAVA + C++ module.
    In which C++ exception is caught by a Java module.
    The c++ code is as follows,
    try
    ///////////===========
    } catch (Exception1 &e) {
    jclass clazz = jenv->FindClass("test/Exception1Java");
    if(clazz)
    jenv->ThrowNew(clazz,e.getErrMsg().c_str());
    return 0;
    } catch (Exception2 &e) {
    jclass clazz = jenv->FindClass("test/Exception2");
    if(clazz)
    jenv->ThrowNew(clazz,e.getErrMsg().c_str());
    return 0;
    This works perfectly fine.
    But I want to pass one more argument as int while throwing the java exception.
    jenv->ThrowNew(clazz,e.getErrId(),e.getErrMsg().c_str());
    As the jenv->ThrowNew function only take two arguments I am unable to send the error id( int ) to the message.
    Is there any alternate to this function or some other approach to throw the java exceptions.

    hi,
    I am trying to implement exception handling for a
    JAVA + C++ module.
    In which C++ exception is caught by a Java module.
    The c++ code is as follows,<snip>
    >
    But I want to pass one more argument as int while
    throwing the java exception.
    env->ThrowNew(clazz,e.getErrId(),e.getErrMsg().c_str());>
    As the jenv->ThrowNew function only take two
    arguments I am unable to send the error id( int ) to
    the message.
    Is there any alternate to this function or some other
    approach to throw the java exceptions.Build the exception using the normal FindClass, GetMethodID approach,. and then throw it.
    #include "NativeExceptionTest.h"
    JNIEXPORT void JNICALL Java_NativeExceptionTest_test
    (JNIEnv *env, jobject obj, jint data) {
         if (data == 42) {
              jclass excClass = env->FindClass("MyException");
              if (!excClass) {
                   return;
              jmethodID ctorID = env->GetMethodID(excClass, "<init>", "(ILjava/lang/String;)V");
              if (!ctorID) {
                   return;
              jstring excMessage = env->NewStringUTF("ILLEGAL VALUE");
              jobject excObject = env->NewObject(excClass, ctorID,-1,excMessage);
              if (!excObject) {
                   return;
              env->Throw((jthrowable)excObject);
         return;
    }============================================
    public class NativeExceptionTest {
         static {
              System.loadLibrary("nativeException");
         NativeExceptionTest() {
               try {
                    test(42);
               } catch (MyException e) {
                   System.out.println("Exception: " + e.getCode() + "(" + e.getMessage() +")");
         private native void test(int i) throws MyException;
         public static void main(String[] args) {
              new NativeExceptionTest();
    class MyException extends Exception {
         private int code;
         MyException(int code, String message) {
              super(message);
              this.code = code;
         int getCode() {
              return this.code;
    }

  • Programmatically adding chart to a report throws exception

    programmatically adding chart to a report throws exception "chart condition fields are not valid".
    Configuration:
    I am using CR4E to create web application, I've added RAS jars (rasapp.jar, rascore.jar, reporttemplate.jar, serialization.jar) to this web application. For designing reports i am using Crystal Reports 2008.
    Code:
    <%
    // Get the previously opened report from the session.
    ReportClientDocument reportClientDocument =
         (ReportClientDocument)session.getAttribute("ReportClientDocument");
    System.out.println(reportClientDocument.getReportDocument().getName());
    // Try to get the report's DataDefinition object.
    IDataDefinition dataDefinition;
    try
         dataDefinition = reportClientDocument.getDataDefController().getDataDefinition();
    // If the DataDefinition object can not be retrieved, redirect the user to an error page.
    catch (Exception e)
         System.out.println("With error1");
        return;
    // Create a new ChartDefinition object and set its type to ChartType.group.
    ChartDefinition chartDefinition = new ChartDefinition();
    chartDefinition.setChartType(ChartType.group);
    Get the conditional field of the report's first group. Set this conditional
    field for the ChartDefinition object using the setConditonalFields method. Notice
    that the conditional field is first placed in a Fields collection because the
    setConditionalFields method takes a Fields object as an argument.
    Fields conditionFields = new Fields();
    if (!dataDefinition.getGroups().isEmpty())
         IField field = dataDefinition.getGroups().getGroup(0).getConditionField();
         System.out.println("Condition field name ->" + field.getLongName(Locale.ENGLISH));
         conditionFields.addElement(field);
    chartDefinition.setConditionFields(conditionFields);
    //Get the summary field name from the form on the previous page.
    String summaryFieldName = URLDecoder.decode(request.getParameter("summaryField"));
    System.out.println("Summary field name ->" + summaryFieldName);
    Loop through all of the report's summary fields until the one matching the name
    above is found. Set this summary field for the ChartDefinition object using the
    setDataFields method. Notice that the summary field is first placed in a Fields
    collection because the setDataFields method takes a Fields object as an argument.
    Fields dataFields = new Fields();
    for (int i = 0; i < dataDefinition.getSummaryFields().size(); i++)
        IField summaryField = dataDefinition.getSummaryFields().getField(i);
         if (summaryField.getLongName(Locale.ENGLISH).equals(summaryFieldName))
              System.out.println("Adding data field ->" + summaryFieldName);
              dataFields.addElement(summaryField);
    chartDefinition.setDataFields(dataFields);
    Create a new ChartObject to represent the chart that will be added.  Set the
    ChartDefinition property of the ChartObject using the ChartDefinition object created
    above.
    ChartObject chartObject = new ChartObject();
    chartObject.setChartDefinition(chartDefinition);
    Get the chart type, chart placement, and chart title strings from the form on the
    previous page. If no chart title was chosen, create a generic title.
    String chartTypeString = request.getParameter("type");
    String chartPlacementString = request.getParameter("placement");
    String chartTitle = request.getParameter("title");
    System.out.println("chartTypeString ->"+ chartTypeString + "<-chartPlacementString->" + chartPlacementString + "<-chartTitle->"+chartTitle);
    if (chartTitle.equals(""))
         chartTitle = "untitled";
    Create a ChartStyleType object and a AreaSectionKind object based on the
    the chartTypeString and chartPlacementString retrieved above. In this example
    possible chart types are bar chart and pie chart. Possible chart placements
    are header and footer.
    ChartStyleType chartStyleType = ChartStyleType.from_string(chartTypeString);
    AreaSectionKind chartPlacement = AreaSectionKind.from_string(chartPlacementString);
    // Set the chart type, chart placement, and chart title for the chart.
    chartObject.getChartStyle().setType(chartStyleType);
    chartObject.setChartReportArea(chartPlacement);
    chartObject.getChartStyle().getTextOptions().setTitle(chartTitle);
    // Set the width, height, and top for the chart.
    chartObject.setHeight(5000);
    chartObject.setWidth(5000);
    chartObject.setTop(1000);
    Get a ReportDefController object that can be used to modify the report's definition.
    ReportDefController reportDefController;
    try
         reportDefController = reportClientDocument.getReportDefController();
    catch (Exception e)
         System.out.println("With Error2");
         return;
    *Create a Section object that represents the section that will hold the chart.
    If the chart placement was set header, get the header section, otherwise, if the
    chart placement was set to footer, get the footer section.
    Section chartSection = null;
    if (chartPlacement.equals(AreaSectionKind.reportHeader))
         IArea reportHeaderArea =
              reportDefController.getReportDefinition().getReportHeaderArea();
         chartSection = (Section)reportHeaderArea.getSections().getSection(0);
    else if (chartPlacement.equals(AreaSectionKind.reportFooter))
         IArea reportFooterArea =
              reportDefController.getReportDefinition().getReportFooterArea();
         chartSection = (Section)reportFooterArea.getSections().getSection(0);
    Add the chart to the section using the ReportDefController object.
    reportDefController.getReportObjectController().add(chartObject, chartSection, 1);
    // Save the changes and close the report.
    reportClientDocument.save();
    reportClientDocument.close();
    session.removeAttribute("ReportClientDocument");
    %>     
    Trace:
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The chart condition fields are not valid.---- Error code:-2147213287 Error code name:invalidChartObject
         at com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException.throwReportDefControllerException(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.add(Unknown Source)
         at org.apache.jsp.AddChart_jsp._jspService(AddChart_jsp.java:230)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)

    Please try this code snippet
    var cs:ColumnSeries = new ColumnSeries();
    cs.dataProvider = dp;
    cs.displayName = "Series 2";
    cs.yField = "values";
    chart.series.push(cs);
    OR
    var temp:Array = [];
    var cs:ColumnSeries = new ColumnSeries();
    cs.dataProvider = dp;
    cs.displayName = "Series 2";
    cs.yField = "values";
    temp = chart.series;
    temp.add(cs);
    chart.series = temp;

  • Custom XSLT Functions Throw Exception

    Hi,
    I have following requirement-
    1. I have defined and configured some custom XSLT functions in Jdev and BPEL, which throw exception in case of an error.
    2. Now I want to catch that exception in my BPEL process
    3. In My BPEL process I have defined transformation step ( which is using those Custom XSLT functions) in a scope and added a catch branch to that
    4. But even XSLT java function throw an exception , it is not being catch by catch branch.
    Could you please help me regarding this and tell me any other way to catch an exception in BPEL process thrown by Custom XSLT function within transformation step?
    Thanks.

    Hi,
    Its the problem with the date. In the configuration file i used dateTime for java.util.Date, because of this i cant see "User Defined" option in Jdeveloper component pallete. I checked at XML data types i had seen dateTime for java.util.Date Class, but its not working.
    Do anyone created a custom xslt function which has date as parameter or return type?, If so wht they had used as data type for xml and java.
    Thanks,
    RR

  • Throws Exception

    Dear Expert,
    May I know how to throw Exception from a thread back to calling program ?
    As I always get the following message when compiling the code
    cannot override run() in java.lang.Thread; overridden method does not throw java.lang.Exception public void run() throws Exception
    Thanks!
    w

    From what I can see in the javadoc, you can create a subclass of ThreadGroup and override its uncaughtException method, then you'd have to create a Thread that belongs to an instance of your ThreadGroup subclass and have its overridden method set some variable in your main thread. However you should recognize that whatever started your thread may not even exist when it throws that exception, and it may not be sitting around waiting for your thread to throw an exception. You should reconsider that requirement carefully before actually trying to implement it.

  • Throws Exception - a newcomer...

    I have written a small amount of code that takes information from a text file and displays it in a GUI (swing) - this is called my RasterDisplay class. However, I am now creating another part of the GUI which will have a button that makes a new RasterDisplay. However, when I try and call my RasterDisplay constructor from within my actionPerformed method (see below) It tells me I have an "unhandled Exception type Exception". I can't throw Exception in the actionPerformed method so how do I get this method to work? Any help would be greatly appreciated - I am a total newcomer to Java and can't make head nor tail of related topics in all the forums...
    Cheers!
    import javax.swing.*;
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    public class RasterToolbar extends JFrame implements ActionListener{
         JButton open;
         public static void main(String[] args) throws Exception{
              new RasterToolbar();
         //method to make display panel with buttons
         public RasterToolbar()throws Exception{
                   super("Raster Viewer 1.0 beta");
                   setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                   Container contentPane = getContentPane();
                   JPanel p1 = new JPanel();
                   p1.setLayout(new FlowLayout());
                   p1.setBorder(BorderFactory.createEmptyBorder(4,4,4,4));
                   open = new JButton("Open Viewer");
                   p1.add(open);
                   contentPane.add(p1,BorderLayout.WEST);
                   open.addActionListener(this);
                   pack();
                   setVisible(true);
         public void actionPerformed(ActionEvent ev){
         if(ev.getSource()== open){
              System.out.println("Open pressed");
              RasterDisplay viewer = new RasterDisplay(); // HERE IS THE PROBLEM LINE!
    }

    public void actionPerformed(ActionEvent ev){
         if(ev.getSource()== open){
              System.out.println("Open pressed");
              try {
                   RasterDisplay viewer = new RasterDisplay(); // HERE IS THE PROBLEM LINE!
              } catch(Exception e) {
                   // do what ever you want here!
                   e.printStackTrace();
    }

  • Throws Exception in main and return code for JVM

    Hello,
    Could someone tell me what the following statement :
    public class Foo {
    public static void main(java.lang.String[] args) throws Exception {
    // Some source code
    is supposed to do with the return code of the VM when the Exception is thrown.
    I mean what num�ric value is supposed to return the following instruction :
    java -classpath ... com.app.Foo
    Because my Java program is run in a script shell which is supposed to get a return code which as to be interpreted.
    Off course I am not allowed to do the test myself because this script shell is executed on a production server ...

    I don't know what the return code will be, but you could do this:
    public static void main(String[] args)
      try
        // ...Run the program here...
      catch (Exception e)
        // Print the stack trace
        e.printStackTrace();
        // Exit with an error code
        System.exit(10);
    }Jesper

Maybe you are looking for