Java.lang.IndexOutOfBoundsException while using lexicals

Hi,
I am trying to use a dynamic where clause with the described mechanism.
- all report parameters defined as global variables in default package
- whereclause defined as global variable in default package
- defaultPackage defined in DataTemplate
- before Report Trigger defined as function in default package which sets the where clause
- Trigger executed in datatemplate (this works fine so far unless I try to use the &whereclause in a sqlStatement)
When I try to use the whereclause variable from the default package in one of my statements in the data template I get an Error like
" The report cannot be rendered because of an error, please contact the administrator. "
in the UI and on the console log I get
[070606_031501966][][EXCEPTION] java.lang.IndexOutOfBoundsException: Index: 0, S
ize: 0
at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492
at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(Dat
aTemplateParser.java:1449)
at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:298
at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:2
64)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:229)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.ja
va:336)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.callDataP
rocessor(AdvancedQueryBoundValue11.java:126)
at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getValue(
AdvancedQueryBoundValue11.java:79)
at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportC
ontextImplV11.java:335)
at oracle.apps.xdo.servlet.XDOProcessor.process(XDOProcessor.java:235)
at oracle.apps.xdo.servlet.ReportImpl.renderBody(ReportImpl.java:227)
at oracle.apps.xdo.servlet.ReportImpl.renderReportBody(ReportImpl.java:4
6)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:319)
at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:223)
at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
hain.java:64)
at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilt
er.java:52)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:629)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
estHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
stHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
cketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Any Ideas??

I solved the issue ...
since I am using the standalone version of XML Publisher with the UIs the declaration of the lexical in the dataTeamplate was the problem.
If I define
          <sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&amp;whereclause ]]>
instead of
          <sqlStatement name="Unterlagen"><![CDATA[select id,bezeichnung from AJS_UNTERL_CHECKLISTE where ANFORDERER = 1 and [b]&whereclause ]]>
it works fine!
Regards,
Lars

Similar Messages

  • Java.lang.NullPointerException while using PGP module in SFTP receiver

    Hi Experts,
    We are trying out newly installed PGP module on SAP PI 711 SP10.
    Scenario     : SFTP to SFTP
    While we are trying to encrypt the message in the SFTP receiver, we get the following error.
    nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/com.sap.aii.af.app, BC-XI-CON-AFW) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.app.endpoint.ModuleProcessorExitBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.af.app.endpoint.ModuleProcessorExitBean@6437822b for bean sap.com/com.sap.aii.af.app*xml|com.sap.aii.af.ejb.jar*xml|ModuleProcessorExitBean in application sap.com/com.sap.aii.af.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of an object loaded from local variable 'msMessage'

    Thanks Hareesh,
    ya that  "callsapadapter"  was the culprit. It comes by itself, Once I removed that PGP was working fine.

  • Java.lang.UnsupportedClassVersionError while using java mail api

    Hi Everybody ,
    I am new comer to this forum , and would like to be an active member.
    I am getting this error while trying to use the java mail api to send an email using smtp.
    The error is as follows :
    Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/mail/Message (Unsupported major.minor version 48.0)
    Can Anyone please tell where I am wrong.
    I am using the following code
    ==============================================================
    Properties props = new Properties();
    props.put("mail.smtp.host", "smtp.abc.com");
    // create some properties and get the default Session
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(debug);
    // create a message
    Message msg = new MimeMessage(session);
    // set the from and to address
    InternetAddress addressFrom = new InternetAddress(from);
    msg.setFrom(addressFrom);
    InternetAddress[] addressTo = new InternetAddress[recipients.length];
    for (int i = 0; i < recipients.length; i++)
    addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Optional : You can also set your custom headers in the Email if you Want
    msg.addHeader("MyHeaderName", "myHeaderValue");
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
    ==============================================================

    Hi Philip ,
    Thanks for the prompt reply , I had installed oracle client services which overid my jdk1.4 installation with jdk1.3 and hence the error. I changed my classpath settings to point to jdk1.4 and it owrked properly.
    Thanks once again.
    regards,
    Rupesh Rajan

  • Java.lang.ExceptionInInitializerError - while using a third party tool

    Hi All,
    I am trying to include truezip into my application. but I get the following stack trace.
    When I tried using the truezip in a standalone java class it orked but I am unable to make it work with appserver.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
         org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:75)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    root cause
    java.lang.ExceptionInInitializerError
         de.schlichtherle.io.File.init(File.java:818)
         de.schlichtherle.io.File.(File.java:471)
         de.schlichtherle.io.File.(File.java:452)
         org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:63)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.If I refresh the jsp page it shows the foloowing error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
         org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:75)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    root cause
    java.lang.NoClassDefFoundError
         de.schlichtherle.io.File.init(File.java:818)
         de.schlichtherle.io.File.(File.java:471)
         de.schlichtherle.io.File.(File.java:452)
         org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:63)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    --------------------------------------------------------------------------------Can anyone help me on this please
    Thanks,
    R.Ramesh.

    Hi Balusc,
    here is the full stack trace
    java.lang.ExceptionInInitializerError
         at de.schlichtherle.io.File.init(File.java:830)
         at de.schlichtherle.io.File.<init>(File.java:479)
         at de.schlichtherle.io.File.<init>(File.java:458)
         at org.apache.jsp.TestDes_jsp._jspService(TestDes_jsp.java:63)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         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:249)
         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:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.Runtime.addShutdownHook(Runtime.java:188)
         at de.schlichtherle.io.ArchiveControllers.<clinit>(ArchiveControllers.java:67)
         ... 41 moreafter which if I refresh my jsp page I get the foloowing stack trace as in my next post

  • JAVA.LANG.NULLPOINTEREXCEPTION WHILE USING GETCLIENTINFO JAVABEAN IN FORM

    We are using GetClientInfo JavaBean in Oracle 6i Form registered in Oracle Applications. Earlier, when we used Jinitiator, the Form used to open properly. Recently we started using Java Plug-in 1.6.0_12 (JRE version 1.6.0_12 Java HotSpot(TM) Client VM), we get following errors and then entire application closes.
    java.lang.NullPointerException
         at oracle.forms.ui.VBean.isFocusTraversable(Unknown Source)
         at java.awt.Component.isFocusable(Unknown Source)
         at java.awt.Component.isRequestFocusAccepted(Unknown So

    Get Client Information
    http://www.oracle.com/technology/sample_code/products/forms/6idemos.html
    java.lang.NullPointerException
         at oracle.forms.ui.VBean.isFocusTraversable(Unknown Source)
         at java.awt.Component.isFocusable(Unknown Source)
         at java.awt.Component.isRequestFocusAccepted(Unknown Source)
         at java.awt.Component.requestFocusHelper(Unknown Source)
         at java.awt.Component.requestFocusHelper(Unknown Source)
         at java.awt.Component.requestFocus(Unknown Source)
         at oracle.forms.handler.UICommon.updateFocus(Unknown Source)
         at oracle.forms.handler.UICommon.setFVP(Unknown Source)
         at oracle.forms.handler.UICommon.setFVP(Unknown Source)
         at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
         at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
         at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
         at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.sendDeferredMessages(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

  • Java.lang.SecurityException while using RDBMSRealm in 5.1

    Hi,
    We are in the process of migrating our application from Weblogic 4.5.1
    to Weblogic 5.1. When we try to set up RdbmsRealm as the delegate realm
    for the server and start the server, we get the following exception:
    java.lang.SecurityException: User "system" does not have Permission
    "read" based on ACL "weblogic.workspace.system".
    at weblogic.security.acl.Security.logAndThrow(Security.java:372)
    at weblogic.security.acl.Security.checkPermission(Security.java:254)
    at
    weblogic.workspace.server.Workspace.checkPermission(Workspace.java:1169)
    at weblogic.workspace.server.Workspace.checkRead(Workspace.java:1174)
    at weblogic.workspace.server.Workspace.fetch(Workspace.java:208)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:243)
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled
    Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    The database has aclentries that grant read, write and reserve
    permissions on weblogic.workspace.system to everyone. It is not clear
    why the server still complains that user 'system' does not have
    permissions. Is 'system' user not a part of everyone group by default? (
    We are using the same acls we were using with Weblogic 4.5.1 ). Does
    'everyone' group have all the users in it by default? Or has it changed?
    Any suggestions welcome.
    Thanks and Regards
    Suresh B

    Either try setting weblogic.allow.read.weblogic.workspace=system
    Or add the system user to the group 'everyone' in the database you use for
    RDBMSRealm (Hmm, not sure if this will work or not.
    If you are implementing a custom realm then you need to explicitly state
    which members are in the 'everyone' group.
    (I've recently had a similar problem . I actually chose a different
    solution, by overriding the isMember(user) method in RDBMSGroup to always
    return true if the group's name is 'everyone' - I had to override the method
    anyway, for other reasons. If anyone as any input on why this is a really
    bad idea please feel free to tell me)
    terry
    BSuresh <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    weblogic.allow.read.weblogic.workspace=everyone
    weblogic.allow.write.weblogic.workspace=everyone
    weblogic.allow.read.weblogic.workspace.system=everyone
    weblogic.allow.write.weblogic.workspace.system=everyone
    I tried having the above entries in the weblogic.properties file but theserver
    complains that weblogic.workspace acl is defined both in the delegate andbackup
    realm. And the result remains the same - java.lang.SecurityException.User
    "system" does not have Permission "read" based on ACL
    "weblogic.workspace.system".
    Thanks
    Suresh.B
    KNK wrote:
    Try setting the "read" and "write" permissions explicitly in
    weblogic.properties file.
    weblogic.allow.read.weblogic.workspace=everyone
    weblogic.allow.write.weblogic.workspace=everyone
    -- KNK --
    A ten thousand miles journey begins with a single step. That single stephas
    to be taken from where you are, worries are no solution to any problem.
    "BSuresh" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We are in the process of migrating our application from Weblogic 4.5.1
    to Weblogic 5.1. When we try to set up RdbmsRealm as the delegate
    realm
    for the server and start the server, we get the following exception:
    java.lang.SecurityException: User "system" does not have Permission
    "read" based on ACL "weblogic.workspace.system".
    at weblogic.security.acl.Security.logAndThrow(Security.java:372)
    at weblogic.security.acl.Security.checkPermission(Security.java:254)
    at
    weblogic.workspace.server.Workspace.checkPermission(Workspace.java:1169)
    >>>
    at weblogic.workspace.server.Workspace.checkRead(Workspace.java:1174)
    at weblogic.workspace.server.Workspace.fetch(Workspace.java:208)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:243
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java, Compiled
    Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    >>>
    The database has aclentries that grant read, write and reserve
    permissions on weblogic.workspace.system to everyone. It is not clear
    why the server still complains that user 'system' does not have
    permissions. Is 'system' user not a part of everyone group by default?(
    We are using the same acls we were using with Weblogic 4.5.1 ). Does
    'everyone' group have all the users in it by default? Or has itchanged?
    >>>
    Any suggestions welcome.
    Thanks and Regards
    Suresh B

  • Error java.lang.NoSuchMethodError while using Lexalytics

    Hello,
    I have a Linux 64bit environment with the complete Endeca Information Discovery 2.4 installed. When I try to use the Text Enrichment component I get the error:
    java.lang.NoSuchMethodError
    I have edited the .bash_profile file with the parameters that are needed to use Lexalytics:
    lxainstall=/home/oracle/Oracle/Endeca/Lexalytics
    export lxainstall
    LD_LIBRARY_PATH=$lxainstall/salience/lib
    export LD_LIBRARY_PATH
    JAVA_HOME=/usr/java/jdk1.6.0_45
    export JAVA_HOME
    JAVA_OPTS="-Djava.library.path=$LD_LIBRARY_PATH"
    export JAVA_OPTS
    PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$lxainstall
    export PATH
    Also when I try to export the LD_LIBRARY_PATH and reboot my system, my desktop doesn't load and I see no icons on my desktop. I can start programs with the top menu.
    I have installed version 5.1 of Lexalytics.
    Does anybody know why I get this error?
    Thanks!
    Marco

    Hi Marco, I had the same problem. Instead of loading LD_LIBRARY_PATH in .BASH_PROFILE I made a shell script that first load LD_LIBRARY_PATH and then start integrator. Now it is working fine for me.

  • Java.lang.NoSuchMethodException while using LookupDispatchAction

    hi,
    I am just a novice java developer, developing an application which requires more than one submit button in a single form, for which i have extended LookupDispatchAction class. However i am unable to fix the error with the message java.lang.NoSuchMethodException, which appears whenever i click on the buttons in spite of having the method in the action class. Below is the code snippet. I request if anyone could help me out. Thanks.
    JSP
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix = "html" %>
    <%@ taglib uri = "/WEB-INF/struts-bean.tld" prefix = "bean"%>
    <html><body>
    <html:form action="homeSearch.do">
    <table>
    <tr>
         <td><strong>Search by Email</strong></td>
         <td><html:submit property="dowhat">
              <bean:message key="ldApp.submit.button.eSearch"/>
         </html:submit></td>
    </tr>
    <tr>
         <td><strong>Search by Eid</strong></td>
         <TD><html:submit property="dowhat">
              <bean:message key="ldApp.submit.button.idSearch"/>
         </html:submit> </TD>
    </tr>
    <tr>
         <td><strong>Search by Phone</strong></td>
         <td><html:submit property="dowhat">
              <bean:message key="ldApp.submit.button.pSearch"/>
         </html:submit></td>
    </tr>
    </table>
    </html:form></body></html>
    struts-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>
      <data-sources />
      <form-beans >
            <form-bean name="tmpForm" type="org.apache.struts.action.DynaActionForm" />
      </form-beans>
      <global-exceptions />
      <global-forwards >
                <forward name="email" path="/emailHome.jsp"/>
                <forward name="id" path="/idHome.jsp"/>
                <forward name="phone" path="/PhoneHome.jsp"/>
      </global-forwards>
      <action-mappings>
           <action path="/homeSearch" name="tmpForm" type="com.lookup.struts.myLDAction"
                     parameter="dowhat" scope="request" input="/Home.jsp"
                     >
                <forward name="email" path="/emailHome.jsp"/>
                <forward name="id" path="/idHome.jsp"/>
                <forward name="phone" path="/PhoneHome.jsp"/>
           </action>
      </action-mappings>
      <message-resources parameter="com.lookup.struts.ApplicationResources" />
    </struts-config>
    myLDAction class
    public class myLDAction extends LookupDispatchAction {
         protected Map getKeyMethodMap() {
              // TODO Auto-generated method stub
                   Map mp = new HashMap();
              mp.put("ldApp.submit.button.eSearch", "EmailSearch");
              mp.put("ldApp.submit.button.idSearch", "IDSearch");
              mp.put("ldApp.submit.button.pSearch", "PhoneSearch");     
                   return mp;
         public ActionForward EmailSearch(ActionForm af, ActionMapping am,
                   HttpServletRequest req, HttpServletResponse res) throws Exception{
              DynaActionForm df = (DynaActionForm)af;
              // do search logic
              return am.findForward("email"); // forwards to a jsp page
         public ActionForward IDSearch(ActionForm af, ActionMapping am,
                   HttpServletRequest req, HttpServletResponse res) throws Exception{
         DynaActionForm df = (DynaActionForm)af;
         // do search logic
         return am.findForward("id");  // forwards to a jsp page          
         public ActionForward PhoneSearch(ActionForm af, ActionMapping am,
                   HttpServletRequest req, HttpServletResponse res) throws Exception{     
         DynaActionForm df = (DynaActionForm)af;
         // do search logic
         return am.findForward("phone");  // forwards to a jsp page
    {cod*e}*
    *Error*Jan 13, 2009 1:58:56 PM org.apache.struts.actions.DispatchAction dispatchMethod
    SEVERE: Action[homeSearch] does not contain method named 'EmailSearch'
    java.lang.NoSuchMethodException: com.lookup.struts.myLDAction.EmailSearch(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         at java.lang.Class.getMethod(Class.java:978)
    Edited by: Chinglai on 13 Jan, 2009 1:29 PM
    Edited by: Chinglai on 13 Jan, 2009 2:01 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    First thing is I don't know anything about struts, you should have posted in some other forum like that for JSP or other....
    From the exception, I can say that maybe method signature needs to be:
    public ActionForward EmailSearch( ActionMapping am, ActionForm af, HttpServletRequest req, HttpServletResponse res)instead of:
    public ActionForward EmailSearch(ActionForm af, ActionMapping am, HttpServletRequest req, HttpServletResponse res) throws ExceptionBut don't take my advice to be authentic in any way, thats just a hunch....
    And yes, change other method signatures also, if I'm correct , by any chance.
    Thanks!

  • Java.lang.Exception while using applets

    i am compling my following code which gives error in JUnit Test result as
    No runnable methods
    java.lang.Exception: No runnable methods
    import java.awt.BorderLayout;
    import javax.swing.JApplet;
    * @author sakshi
    public class MainJA extends JApplet {
        MyInterface in;
        MyJPanel jp1;
        MyJScrollPane jsp;
         * Initialization method that will be called after the applet is loaded
         * into the browser.
        @Override
        public void init() {
            makeGUI();
        // TODO start asynchronous download of heavy resources
        void makeGUI() {
            setLayout(new BorderLayout());
            jp1 = new MyJPanel();
            in = new MyInterface();
            jsp = new MyJScrollPane(jp1);
            add(jsp, BorderLayout.CENTER);
            add(in, BorderLayout.SOUTH);
        // TODO overwrite start(), stop() and destroy() methods
    import java.awt.FlowLayout;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    * @author sakshi
    public class MyInterface extends JPanel {
        JLabel l_x,l_y;
        JTextField t_x,t_y;
        public MyInterface() {
           l_x=new JLabel("x");
           l_y=new JLabel("y");
           t_x=new JTextField(10);
           t_y=new JTextField(10);
           setLayout(new FlowLayout((int) CENTER_ALIGNMENT));
           add(l_x);add(t_x);
           add(l_y);add(t_y);
    import java.awt.Dimension;
    import javax.swing.JPanel;
    * @author sakshi
    public class MyJPanel extends JPanel {
        public MyJPanel() {
            setPreferredSize(new Dimension(1000,1000));
    import java.awt.Component;
    import java.awt.Dimension;
    import javax.swing.JScrollPane;
    import javax.swing.ScrollPaneConstants;
    * @author sakshi
    public class MyJScrollPane extends JScrollPane {
        public MyJScrollPane(Component v) {
            super(v,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
            setPreferredSize(new Dimension(500,500));
    }what could be the reason for this error?

    sorry the problem is sought out since the error was on my part as i made the package in test package

  • Java.lang.IndexOutOfBoundsException: toIndex = 59

    Hi all,
    when ever I started my scenario from UNIX console I am getting "java.lang.IndexOutOfBoundsException: toIndex = 59"
    this error
    command:
    bash-3.00# ./startscen.sh PALASH 001 GLOBAL "-name=PalashSystemAgent"
    A JDK is required to execute Web Services with OracleDI. You are currently using
    a JRE.
    OracleDI: Starting scenario PALASH 001 in context GLOBAL ...
    java.lang.IndexOutOfBoundsException: toIndex = 59
    at java.util.SubList.<init>(AbstractList.java(Compiled Code))
    at java.util.RandomAccessSubList.<init>(AbstractList.java(Compiled Code)
    at java.util.RandomAccessSubList.subList(AbstractList.java:878)
    at com.sunopsis.d.a.g.a(g.java)
    at com.sunopsis.d.a.f.b(f.java)
    at com.sunopsis.tools.core.SnpsStringTools.b(SnpsStringTools.java)
    at com.sunopsis.dwg.DwgObject.snpsDecypher(DwgObject.java)
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityMan
    ager(DefaultDwgSecurityManager.java)
    at com.sunopsis.security.DefaultDwgSecurityManager.getDefaultSecurityMan
    ager(DefaultDwgSecurityManager.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    please suggest me
    waiting for your reply
    regards
    Palash Chatterjee

    Hi,
    Please add this line in ur cron tab entry and check it for me whether this scenario is running from cron tab or not .
    Do the necessary changes
    1)instead of CHECK write ur scnario name along with other parameters
    2)my startscen.sh is in /app/odi/oracledi/bin directory so change accordingly
    3)After adding this line please check that log file is created with log entry or not
    CAUTION :Remove that cron entry after doing the test because that entry will send a mail to your /usr/spool/mail/root every time it will execute this command
    * * * * * /app/odi/oracledi/bin/./startscen.sh CHECK 003 GLOBAL -NAME=AIX_58_PAgent -v=5 >/app/odi/work/lastLog.log
    insead of cron job while I am running this code
    /app/odi/oracledi/bin/./startscen.sh CHECK 003 GLOBAL -NAME=AIX_58_PAgent -v=5 >/app/odi/work/lastLog.log
    it's working well and giving it's output also................................
    I am trying to solve this for last few days but unable to solve .............I don't have much more knowledge in UNIX may be for this reason I failed ..................Need your help
    regards,
    Palash Chatterjee

  • Java.lang.ClassCastException while creating array descriptor

    ( This post was moved from SQL / PLSQL forum to here )
    Hi everyone, i used to pass string array from java to plsql. I wrote a java source, then i load db with loadjava. And i wrote java spec. Then i run the function but i am getting this error :
    java.lang.ClassCastException
    at oracle.jdbc.driver.PhysicalConnection.putDescriptor(PhysicalConnection.java:4921)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:208)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:175)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:158)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:125)
    at SplitterOracle3.tokens2(SplitterOracle3.java:29)
    My Java Source is :
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    import oracle.sql.*;
    import oracle.jdbc.driver.OracleConnection;
    import oracle.jdbc.driver.OracleDriver;
    public class SplitterOracle3 {
    public static oracle.sql.ARRAY tokens2(String str,String delim)
    try
    //Class.forName("oracle.jdbc.driver.OracleDriver");
    //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //Connection conn = new OracleDriver().defaultConnection( );
    OracleDriver ora = new OracleDriver();
    OracleConnection conn = (OracleConnection) ora.defaultConnection();
    //ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor("MY_ARRAY", ((conn).getRealConnection());
    //Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    //Connection conn = ((DelegatingConnection) getDataSource().getConnection()).getInnermostDelegate();
    // get an initial context
    //OracleConnection oracleConnection = (OracleConnection)WSJdbcUtil.getNativeConnection((WSJdbcConnection) wsConn);
    ArrayDescriptor arraydesc =
    ArrayDescriptor.createDescriptor ("ARR_VARCHAR_100", conn);
    String strarr[] = new String[47];
    strarr[0]="ahmet";
    strarr[1]="mehmet";
    int curIndex = 0;
    int nextIndex = 0;
    boolean nextIsLastToken = false;
    int i=0;
    while (true)
    nextIndex = str.indexOf(delim, curIndex);
    if (nextIsLastToken)
    //return false;
    break;
    if (nextIndex == -1)
    nextIsLastToken=true;
    nextIndex = str.length();
    strarr[i] = str.substring(curIndex, nextIndex);
    curIndex = nextIndex + 1;
    i++;
    ARRAY dirArray = new ARRAY(arraydesc, conn, strarr);
    return dirArray;*/
    catch(Exception ex)
    System.err.println(ex.getMessage());
    ex.printStackTrace();
    return null;
    public static void main(String[] args)
    String str="2000,2,123553168,1,10,64895,65535,27662,64860,64895,65535,27662,64860,0,,,,,,0,0,2491039806,,,,,,,,,0,0,1,,2491039106,,,,,,,,,,,,";
    String strarr[] = new String[47];
    long l1,l2;
    int j=0;
    l1 = System.currentTimeMillis();
    for ( int i=0; i<20000000; i++)
    strarr = tokens2(str,",");
    l2 = System.currentTimeMillis();
    System.out.println("Fark :"+ (l2-l1));
    The line has "ArrayDescriptor.createDescriptor ("ARR_VARCHAR_100", conn);" causes this error.
    java.lang.ClassCastException
    at oracle.jdbc.driver.PhysicalConnection.putDescriptor(PhysicalConnection.java:4921)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:208)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:175)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:158)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:125)
    at SplitterOracle3.tokens2(SplitterOracle3.java:29)
    But i could not find the solution. Can you help me?
    Thanks for responses.

    Hi,
    Did you try my suggestion from Re: java.lang.ClassCastException while create array descriptor
    Try replacing
    oracle.jdbc.driver.OracleConnectionwith
    oracle.jdbc.OracleConnectionRegards
    Peter

  • Java.lang.StringIndexOutOfBoundsException while deploying webapp

    Hi all,
    I'm trying to deploy an expanded webapp on WebLogic 6.0sp1. It's a
    migration from 5.1, some hundred JSPs, some servlets and custom tags in
    WEB-INF/classes and a few static pages. I placed the web-application
    folder in the applications folder and the server begins the deployment.
    During deployment I get a StringIndexOutOfBoundsException and the
    deployment stops (see log extract below). By the time when this happens,
    there is a new .ear file and a war file (seem to be the same) containing
    my web application. This is a real show-stopper for me, so I'd be glad
    for any recommendations.
    Thanks,
    Daniel
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LastModified)
    modified from (0) to (984590891366).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (null) to (fbsdomain:Name=f
    utuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (fbsdomain:Name=futuna,Type
    =Application) to (fbsdomain:Name=futuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(URI) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(ContextPath) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LoadError)
    modified from (null) to (null).>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading web app: futuna>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading futuna from WAR file:
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\wl_local_comp19242
    .war>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracting classfiles to
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\WEB-INF\_tmp_war_fbsser
    ver_fbsserver_futuna:>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracted classfiles successfully...>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Debug> <HTTP> <Exception
    thrown while loading futuna: java.lang.StringIndexOutOfBoundsException:
    String index out of range: -1>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Error> <J2EE> <Error
    deploying application futuna: Could not load futuna>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(Deployed)
    modified from (true) to (true).>
    [java] <14.03.2001 18:28:36 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna HTTP/1.1". This should not happen unless the default contex
    t failed to deploy.>
    [java] <14.03.2001 18:28:45 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna/ HTTP/1.1". This should not happen unless the default conte
    xt failed to deploy.>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: init>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: Using standard I/O>

    Hi Kumar,
    thanks for the hint, but that did not solve the problem. I reworked
    web.xml and weblogic.xml (some 5.1 things inside) and now it works.
    Daniel
    -----Ursprüngliche Nachricht-----
    Von: Kumar Allamraju [mailto:[email protected]]
    Bereitgestellt: Mittwoch, 14. März 2001 22:35
    Bereitgestellt in: install
    Unterhaltung: java.lang.StringIndexOutOfBoundsException while deploying
    webapp
    Betreff: Re: java.lang.StringIndexOutOfBoundsException while deploying
    webapp
    It appears your default webapp failed to deploy.
    Add the following entry (red ink) in your config.xml (carefully) and see
    if you are able to deploy default webapp
    <Application
    Deployed="true"
    Name="DefaultWebApp_myserver"
    Path="./config/myserver/applications"
    >
    <WebAppComponent
    Name="DefaultWebApp_myserver"
    Targets="myserver"
    WebServers="myserver"
    URI="DefaultWebApp_myserver"
    />
    </Application>
    Daniel Hoppe wrote:
    Hi all,
    I'm trying to deploy an expanded webapp on WebLogic 6.0sp1. It's a
    migration from 5.1, some hundred JSPs, some servlets and custom tags in
    WEB-INF/classes and a few static pages. I placed the web-application
    folder in the applications folder and the server begins the deployment.
    During deployment I get a StringIndexOutOfBoundsException and the
    deployment stops (see log extract below). By the time when this happens,
    there is a new .ear file and a war file (seem to be the same) containing
    my web application. This is a real show-stopper for me, so I'd be glad
    for any recommendations.
    Thanks,
    Daniel
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LastModified)
    modified from (0) to (984590891366).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (null) to (fbsdomain:Name=f
    utuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(Application) modified from (fbsdomain:Name=futuna,Type
    =Application) to (fbsdomain:Name=futuna,Type=Application).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(URI) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
    Attribute=(ContextPath) modified from (null) to (futuna).>
    [java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LoadError)
    modified from (null) to (null).>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading web app: futuna>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
    fbsserver] Loading futuna from WAR file:
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\wl_local_comp19242
    .war>
    [java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracting classfiles to
    c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
    ete\WEB-INF\_tmp_war_fbsser
    ver_fbsserver_futuna:>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <HTTP> <[Default
    WebApp] extracted classfiles successfully...>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Debug> <HTTP> <Exception
    thrown while loading futuna: java.lang.StringIndexOutOfBoundsException:
    String index out of range: -1>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Error> <J2EE> <Error
    deploying application futuna: Could not load futuna>
    [java] <14.03.2001 18:28:17 GMT+01:00> <Info> <Management>
    <MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(Deployed)
    modified from (true) to (true).>
    [java] <14.03.2001 18:28:36 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna HTTP/1.1". This should not happen unless the default contex
    t failed to deploy.>
    [java] <14.03.2001 18:28:45 GMT+01:00> <Error> <HTTP>
    <HttpServer(4062427,null default ctx,fbsserver) found no context for
    "GET /futuna/ HTTP/1.1". This should not happen unless the default conte
    xt failed to deploy.>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: init>
    [java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
    <[WebAppServletContext(4114264,console)] *.html: Using standard I/O>

  • UWL workitem error - java.lang.IndexOutofBoundsException

    Any alternative solutions/workaround are welcome.
    1. e.g. make the UWL refresh faster.
    2.Current Delta Cache validity period or iview is
    disable for UWL.
    3.We encountered the below UWL bugs @ EP 7.0 SPS9, Patched JTECHF level 11 and JTECHS level 12.
    4.Temporary solution, Users need to re-click on inbox
    5. to refresh the workitem after the error below.
    6. steps:
    You will see two or more workitems in your UWL
    inbox.
    Click on the 1st workitem on top. Process the
    workitem by clicking on
    the 'Recommend' button.
    To go back to the UWL, click on the 'Inbox' tab to
    go back to the inbox.
    Click on the second (the last) workitem in the UWL
    list, and the
    error "IndexOutOfBounds" will appear.
    7. error message:
    Internal Server Error
    java.lang.IndexOutofBoundsException
    Steven

    Hi Abhilash,
    Thanks. The code is working fine. Now, I am facing another problem. In back end certain data (sum_hrs) is stored as String. The values are like 7,00. This 7,00 has be converted into 7.00. How we can do it?
    The code is as below. I tried using replace function. However it is not working.
      IPrivateTimesheetView.ICategoriesElement categoryElement;
      String wbs ="h";
      double d =0;
      String sum_hrs ="";
      for (int i=0 ; i<wdContext.nodeWorklist().size() ; i++){
      wdContext.nodeWorklist().setLeadSelection(i);
      categoryElement = wdContext.createCategoriesElement();
      wbs = wdContext.currentWorklistElement().getReciever_Wbs_Element();
      sum_hrs = wdContext.currentWorklistElement().getSum_Hours();
      sum_hrs = sum_hrs.replace(",",".");
      if( sum_hrs != null && sum_hrs.trim().length()>0)
      d = Double.parseDouble(sum_hrs) ;
      categoryElement.setCategoryText(wbs);
      categoryElement.setSeries1Value(d);
      wdContext.nodeCategories().addElement(categoryElement);
      wbs = "";
    The error message is
       java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
        at com.sastech.app.models.TimesheetView.onActionFindRecord(TimesheetView.java:253)
        at com.sastech.app.models.wdp.InternalTimesheetView.wdInvokeEventHandler(InternalTimesheetView.java:365)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
        at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
        at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
        ... 26 more
    Can you please help me?
    Regards,
    S

  • Java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

    We have upgraded from Crystal 10 to 2008.  We are able to run all reports from the admin console but when trying to connect and run from a java based application to the crystal server, we encounter the following error:
    [0000TvbEgjI3QkQAR-cNXc83c5x:-1]2010-06-28 17:13:23,797] [AUDIT]: - Reports - Attempt to schedule - [EXPORT] - Activity_Tag_Change_DB:_E0002046A_PLDB:_LUKETEST_SS:_NEW-V#1-5/06_ACT_RPT-5/6/10 8:37 AM_to_SS:_NEW-V#1-6/26_ACT_RPT-6/26/10 1:17 PM_Run_On:[6-28-2010][17:13:23.797] -- Failed -- Index: 0, Size: 0
    [0000TvbEgjI3QkQAR-cNXc83c5x:-1]2010-06-28 17:13:24,579] [ERROR]: - Index: 0, Size: 0
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.lang.Throwable.<init>(Throwable.java)
         at java.lang.Throwable.<init>(Throwable.java)
         at java.util.ArrayList.RangeCheck(ArrayList.java)
         at java.util.ArrayList.get(ArrayList.java)
         at com.crystaldecisions.sdk.occa.infostore.internal.InfoObjects.get(InfoObjects.java:530)
         at com.acnielsen.arch.crystalreports.ReportManager.scheduleReport(ReportManager.java)
         at com.acnielsen.espec.web.action.activity.ReportParametersAction.export(ReportParametersAction.java:697)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    The query value is: Select SI_PROCESSINFO.SI_PROMPTS From CI_INFOOBJECTS  Where SI_NAME = 'Export_Activity_Tag_Change.rpt' AND SI_PARENT_FOLDER IN (1109,1928,2383)   AND SI_INSTANCE = 0
    The code that generates this error is:
          IInfoObjects infoObjects = infoStore.query(query);
                      IInfoObject infoObject = (IInfoObject) infoObjects.get(0);
    Com.crystaldecisions.sdk.occa.infostore.iinfoobject is the class that I'm calling.
    Any help would be greatly appreciated.
    Thank you

    Hi,
    We need more information from your side to understand this issue better :
    First where from are you  trying to connect is it client machine or server machine ?
    What is the Application server you are using.. ?
    On which server you are trying to configure ?
    Before upgrade was it working perfectly ?
    Thanks
    Shakeel

  • Java.lang.IndexOutOfBoundsException when zipping larger files

    i get the error:
    java.lang.IndexOutOfBoundsException
    at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:261)
    at compress.zipEntry(compress.java:126)
    at compress.Create_Zip_File(compress.java:84)
    at Test.backup(Test.java:101)
    at Test.<init>(Test.java:37)
    at Test.main(Test.java:149)
    when zipping a file which is 349MB in size I think this might be because it trying to store the file in the memory and the file is too large.What can I do to not store it in memory or if im wrong can someone point me in the right direction.
    Thanks.
    FileOutputStream zipFile = null;
        ZipOutputStream zipOut = null;
       private void listContents( File Zip_File, File dir, ZipOutputStream out )
           throws Exception
           // Assume that dir is a directory.  List
           // its contents, including the contents of
           // subdirectories at all levels.
           System.out.println("Directory \"" + dir.getName() + "\""); 
           String[] files ;  // The names of the files in the directory.
           files = dir.list();
           for (int i = 0; i < files.length; i++) {
           File f;  // One of the files in the directory.
           f = new File(dir, files);
    if ( f.isDirectory() )
    // Call listContents() recursively to
    // list the contents of the directory, f.
    listContents(Zip_File, f, out);
    else
    // For a regular file, just print the name, files[i].
    zipEntry(Zip_File, f, out);
    } // end listContents()
    public void Create_Zip_File(File Zip_File,File[] To_Be_Zipped_Files,
    boolean Skip_Dirs)
    try
    // Open archive file
    FileOutputStream stream=new FileOutputStream(Zip_File);
    ZipOutputStream out=new ZipOutputStream(stream);
    for (int i=0;i<To_Be_Zipped_Files.length;i++)
    //if (To_Be_Zipped_Files[i]==null
    // || !To_Be_Zipped_Files[i].exists()
    // || (Skip_Dirs ))
    // continue;
    System.out.println("Adding "+To_Be_Zipped_Files[i].getName());
    zipEntry(Zip_File, To_Be_Zipped_Files[i], out);
    out.close();
    stream.close();
    System.out.println("Finished zipping : "
    + Zip_File.getAbsolutePath());
    catch (Exception e)
    e.printStackTrace();
    System.out.println("Error: " + e.getMessage());
    return;
    private void zipEntry(File Zip_File, File file, ZipOutputStream out)
    throws Exception
    if (file.isDirectory())
    listContents(Zip_File, file, out);
    return;
    int BUFFER_SIZE=10240000; // 10 M
    byte buffer[]=new byte[BUFFER_SIZE];
    // Add archive entry
    ZipEntry zipAdd=new ZipEntry(file.getAbsolutePath());
    //zipAdd.setTime(file.lastModified());
    out.putNextEntry(zipAdd);
    // Read input & write to output
    FileInputStream in=
    new FileInputStream(file.getAbsolutePath());
    int len;
    int nRead=in.available();
    while((count = in.read(buffer, 0, BUFFER_SIZE)) != -1)
    out.write(buffer, 0, nRead);
    // System.out.println("loop ");
    in.close();
    out.closeEntry();

    of course!!Thanks problem solved:DI don't see how - it is very very wrong!
        private void zipEntry(File Zip_File, File file, ZipOutputStream out)
        throws Exception
            if (file.isDirectory())
                listContents(Zip_File, file, out);
                return;
            int BUFFER_SIZE=4094;
            byte buffer[]=new byte[BUFFER_SIZE];
            // Add archive entry
            ZipEntry zipAdd=new ZipEntry(file.getAbsolutePath());
            //zipAdd.setTime(file.lastModified());
            out.putNextEntry(zipAdd);
            // Read input & write to output
            InputStream in= new BufferedInputStream( new FileInputStream(file.getAbsolutePath()), BUFFER_SIZE);            
            for(int count = 0; (count = in.read(buffer)) != -1;)
                out.write(buffer, 0, count);
            in.close();
            out.closeEntry();     
        }Message was edited by:
    sabre150

Maybe you are looking for