ArrayIndexOutOfBoundException

When attempting to parse an XML document, I get this exception.
By rearranging a group of tags, all of a sudden things work.
Unfortunately, since my data is provided by a third-party, I'm
not able to rework things on demand.
Any idea where to look about this. This exception is thrown
during the parse itself. The DTD is an external file and I'm
using the DOMParser.
null

Attachments: "1|type=application/octet-stream|desc=Out of Bounds Array Error|39303|file=epm00018.x
l|"
Interesting, since the web page told me it failed! Anyway, here
it is attached.
Oracle XML Team wrote:
: Scott Sosna (guest) wrote:
: : The XML file is too large to post as the text of the
message,
: : and I have not had success attaching files to these
messages.
: I
: : did mail the XML file to [email protected] (or whatever the
: address
: : is). Please notify me how to get the messages to you.
: : -Scott
: : Oracle XML Team wrote:
: : : Scott Sosna (guest) wrote:
: : : : Version: 2.0.2
: : : : Size: 22K
: : : : Memory: 164MB
: : : : Test Cases: Hopefully Attached
: : : : I'm not sure how to do validating vs. non-validating - I
: : just
: : : : downloaded 2.0.2 yesterday - and I did not have this
: : probablem
: : : : with 1.0.2.0. I am just using DOMNamespace and
DOMSample
: to
: : : : prove the non-working nature of this.
: : : : Thanks
: : : : Oracle XML Team wrote:
: : : : : Scott Sosna (guest) wrote:
: : : : : : When attempting to parse an XML document, I get this
: : : : : exception.
: : : : : : By rearranging a group of tags, all of a sudden
things
: : : work.
: : : : : : Unfortunately, since my data is provided by a
: : third-party,
: : : : I'm
: : : : : : not able to rework things on demand.
: : : : : : Any idea where to look about this. This exception
is
: : : thrown
: : : : : : during the parse itself. The DTD is an external
file
: : and
: : : : I'm
: : : : : : using the DOMParser.
: : : : : A few questions:
: : : : : Which version are you using?
: : : : : What is the size of your document?
: : : : : Does it happen in both validating and non-validating
: : modes?
: : : : : How much memory are you running with?
: : : : : Can you provide us with a test case?
: : : : : Oracle XML Team
: : : : : http://technet.oracle.com
: : : : : Oracle Technology Network
: : : We tried your DTD and it works fine. Can you perhaps post
: : your
: : : XML File?
: : : Oracle XML Team
: : : http://technet.oracle.com
: : : Oracle Technology Network
: The Attach File worked fine as I got your DTD file in the
other
: thread that way.
: Oracle XML Team
: http://technet.oracle.com
: Oracle Technology Network
null

Similar Messages

  • PreparedStatement with 56cols in batch giving ArrayIndexOutOfBoundException

    Hello All,
    PreparedStatement trying to do bath update/inserts in table with 56 columns is giving ArrayIndexOutOfBoundException sporadically with 11.2.0.3 driver. Is it related to Bug 6396242,which was supposed fix in 11.1.0.7.0?
    Here is the stackTrace:
    EXCEPTION ENCOUNTERED:
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 4
    at oracle.jdbc.driver.VarnumBinder.big5pow(OraclePreparedStatement.java:15348)
    at oracle.jdbc.driver.VarnumBinder.constructPow52(OraclePreparedStatement.java:15420)
    at oracle.jdbc.driver.VarnumBinder.dtoa(OraclePreparedStatement.java:15884)
    at oracle.jdbc.driver.DoubleBinder.bind(OraclePreparedStatement.java:17239)
    at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:3137)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2355)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3579)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3665)

    Welcome to the forum!
    >
    PreparedStatement trying to do bath update/inserts in table with 56 columns is giving ArrayIndexOutOfBoundException sporadically with 11.2.0.3 driver. Is it related to Bug 6396242,which was supposed fix in 11.1.0.7.0?
    >
    How would anyone know? You haven't posted the 4 digit Oracle version, the JDK version, the platform or any code for anyone to look at.
    Post the code and other information people need to try to help you.

  • ArrayIndexOutOfBoundException when using Callable Statement in Weblogic 8.1

    Hi all,
    We recently ported our application from 6.1 to 8.1.
    I have noticed the following exception in 8.1 (which was working fine in 6.1)
    java.lang.ArrayIndexOutOfBoundsException: 7
    [ERROR] nfusion.admin.UpdateBureauLogin.5 131575 2003-10-15 16:21:58,385 Exception
    caught
    java.lang.ArrayIndexOutOfBoundsException: 7
    at oracle.jdbc.dbaccess.DBDataSetImpl._getDBItem(DBDataSetImpl.java:303)
    at oracle.jdbc.dbaccess.DBDataSetImpl._createOrGetDBItem(DBDataSetImpl.java:542)
    at oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:1642)
    at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:745)
    at oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1083)
    at weblogic.jdbc.wrapper.PreparedStatement.setString(PreparedStatement.java:415)
    at com.ecredit.nfusion.businessobject.bureau.dao.DefaultBureauLoginDao.store(DefaultBureauLoginDao.java:200)
    at com.ecredit.nfusion.businessobject.bureau.BureauManagerBean.updateBureauLogins(BureauManagerBean.java:940)
    at com.ecredit.nfusion.businessobject.bureau.BureauManagerBean.setDetails(BureauManagerBean.java:424)
    at com.ecredit.nfusion.businessobject.bureau.BureauManagerBean_lptk9u_EOImpl.setDetails(BureauManagerBean_lptk9u_EOImpl.java:46)
    at com.ecredit.nfusion.businessservice.admin.UpdateBureauLoginHandler.execute(UpdateBureauLoginHandler.java:73)
    at com.ecredit.nfusion.platform.requestproxy.RequestProxyBean.execute(RequestProxyBean.java:155)
    at com.ecredit.nfusion.platform.requestproxy.RequestProxyBean_vc5299_EOImpl.execute(RequestProxyBean_vc5299_EOImpl.java:46)
    at com.ecredit.nfusion.platform.requestdelegate.AbstractRequestDelegate.invokeProxy(AbstractRequestDelegate.java:135)
    at com.ecredit.nfusion.platform.requestdelegate.HTMLRequestDelegate.execute(HTMLRequestDelegate.java:240)
    at com.ecredit.nfusion.platform.inboundadapter.HTTPInboundAdapter.service(HTTPInboundAdapter.java:184)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    I am not able to figure out why this is happening in WL 8.1 and is working fine
    in 6.1.
    We are using Oracle 8.1.7 database. I have downloaded the thin driver for 8.1.7
    (classes12.zip) and have included it before the weblogic jar files (in the startWeblogic.sh
    file).
    Any help would be greatly appreciated.
    Regards,
    -Rajan

    Rajan Desai wrote:
    I already have classes12.zip for Oracle 8.1.7 in my class path (before weblogic.jar
    file).
    Inspite of that it is giving this error.
    Any other suggestion to resolve this problem?Yes, but just to be sure, would you show us the first 20 or so lines of the server log?
    It should have a line describing the actual java command that starts the server, including
    the class path that the startup script assembles for this line.
    Thanks,
    Joe
    >
    >
    -RD
    Mitesh Patel <[email protected]> wrote:
    In 8.1, default oracle thin driver is changed from 817 to 920. This might
    be bug in new oracle driver.
    Please put classes12.zip file from oracle 817 version, that might resolve
    your problem.
    Thanks,
    Mitesh
    Rajan Desai wrote:
    Hi all,
    We recently ported our application from 6.1 to 8.1.
    I have noticed the following exception in 8.1 (which was working finein 6.1)
    java.lang.ArrayIndexOutOfBoundsException: 7
    [ERROR] nfusion.admin.UpdateBureauLogin.5 131575 2003-10-15 16:21:58,385Exception
    caught
    java.lang.ArrayIndexOutOfBoundsException: 7
    at oracle.jdbc.dbaccess.DBDataSetImpl._getDBItem(DBDataSetImpl.java:303)
    at oracle.jdbc.dbaccess.DBDataSetImpl._createOrGetDBItem(DBDataSetImpl.java:542)
    at oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:1642)
    at oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:745)
    at oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1083)
    at weblogic.jdbc.wrapper.PreparedStatement.setString(PreparedStatement.java:415)
    at com.ecredit.nfusion.businessobject.bureau.dao.DefaultBureauLoginDao.store(DefaultBureauLoginDao.java:200)
    at com.ecredit.nfusion.businessobject.bureau.BureauManagerBean.updateBureauLogins(BureauManagerBean.java:940)
    at com.ecredit.nfusion.businessobject.bureau.BureauManagerBean.setDetails(BureauManagerBean.java:424)
    at com.ecredit.nfusion.businessobject.bureau.BureauManagerBean_lptk9u_EOImpl.setDetails(BureauManagerBean_lptk9u_EOImpl.java:46)
    at com.ecredit.nfusion.businessservice.admin.UpdateBureauLoginHandler.execute(UpdateBureauLoginHandler.java:73)
    at com.ecredit.nfusion.platform.requestproxy.RequestProxyBean.execute(RequestProxyBean.java:155)
    at com.ecredit.nfusion.platform.requestproxy.RequestProxyBean_vc5299_EOImpl.execute(RequestProxyBean_vc5299_EOImpl.java:46)
    at com.ecredit.nfusion.platform.requestdelegate.AbstractRequestDelegate.invokeProxy(AbstractRequestDelegate.java:135)
    at com.ecredit.nfusion.platform.requestdelegate.HTMLRequestDelegate.execute(HTMLRequestDelegate.java:240)
    at com.ecredit.nfusion.platform.inboundadapter.HTTPInboundAdapter.service(HTTPInboundAdapter.java:184)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    I am not able to figure out why this is happening in WL 8.1 and isworking fine
    in 6.1.
    We are using Oracle 8.1.7 database. I have downloaded the thin driverfor 8.1.7
    (classes12.zip) and have included it before the weblogic jar files(in the startWeblogic.sh
    file).
    Any help would be greatly appreciated.
    Regards,
    -Rajan

  • ArrayIndexOutOfBoundException on calling SessionSave

    Hi all,
    I am working on web Dynpro Java & have developed an application to create some activity & finally save it to the DB.
    I have called 2 methods to execute 2 RFC (one RFC for creating an activity(Test_Activity_Creation_Input) & one for saving it to DB(session_save)).
    The first gets executed successfully, but session_save RFC execution generates the as mentioned error
    I tried to debugged the RFC at backend & found that it is being called more than once.
    But i had called it only once(i.e. on press of Submit button).
    Any suggestions would be of great help
    Thanks & Regards,
    Ankur.

    Hi KK,
    calling only the first RFC would not save the data to the DB, it takes the data from frontend & stores it in P.O.(persistent manager)
    Now from moving data from P.O. to DB, i need to call session_save.
    Hence,without giving the call to session_save, data would not be getting saved to the DB.
    Thanks & Regards,
    Ankur

  • Error on deleting a record

    Hi,
    I got an ArrayIndexOutOfBOundException when I try to delete a record from table.
    Caused by: oracle.jbo.domain.GenericDomainException: JBO-25028: Domain object type Number.bigDecimalValue cannot be created: java.lang.ArrayIndexOutOfBoundsException: 0.
         at oracle.jbo.domain.Number.bigDecimalValue(Number.java:573)
         at oracle.jbo.domain.Number.hashCode(Number.java:445)
         at oracle.jbo.Key.hashCode(Key.java:433)
         at oracle.jbo.common.WeakHashtableImpl.get(WeakHashtableImpl.java:192)
         at oracle.jbo.common.WeakHashtable.get(WeakHashtable.java:94)
         at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:721)
         at oracle.jbo.server.EntityCache.add(EntityCache.java:523)
         at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:3024)
         at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:3632)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5596)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3528)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3387)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2188)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5016)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2935)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2791)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3032)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2726)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1221)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1035)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2774)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2751)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1906)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3441)
         at oracle.jbo.server.ViewObjectImpl.updateReferenceEntities(ViewObjectImpl.java:14476)
         at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:13252)
         at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:13640)
         at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1488)
         at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1504)
         at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1560)
         at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7270)
         at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:7251)
         at oracle.jbo.server.EntityImpl.notifyAttributesAndBlgChanged(EntityImpl.java:7260)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3549)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3197)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1934)
         at oracle.jbo.server.AttributeDefImpl.resolveSet(AttributeDefImpl.java:3406)
         at oracle.jbo.server.EntityImpl.setAttrInvokeAccessor(EntityImpl.java:1915)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:1842)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:2222)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:2036)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1421)
         at com.gm.vstar.model.report.queries.GroupSearchVORowImpl.setGroupName(GroupSearchVORowImpl.java:100)
         at com.gm.vstar.model.report.queries.GroupSearchVORowImpl$AttributesEnum$1.put(GroupSearchVORowImpl.java:23)
         at com.gm.vstar.model.report.queries.GroupSearchVORowImpl.setAttrInvokeAccessor(GroupSearchVORowImpl.java:130)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:1057)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:997)
         at com.gm.vstar.ui.manage.bean.manageGroups.removeGroup(manageGroups.java:86)
         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:597)
         ... 51 more
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3315)
         at oracle.sql.NUMBER.toBigDecimal(NUMBER.java:666)
         at oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:2196)
         at oracle.jbo.domain.Number.bigDecimalValue(Number.java:569)
    I am using Studio Edition Version 11.1.1.4.0. I got JBO-25028: Domain object type Number.bigDecimalValue cannot be created while running the AM itself.
    Please advise.
    Abhishek

    Hi Kumar,
    I did the same thing but again got the same error:
    DCBindingContainer> <reportException> [19586] oracle.jbo.domain.GenericDomainException: JBO-25028: Domain object type Number.bigDecimalValue cannot be created: java.lang.ArrayIndexOutOfBoundsException: 0.
         at oracle.jbo.domain.Number.bigDecimalValue(Number.java:573)
         at oracle.jbo.domain.Number.hashCode(Number.java:445)
         at oracle.jbo.Key.hashCode(Key.java:433)
         at oracle.jbo.common.WeakHashtableImpl.get(WeakHashtableImpl.java:192)
         at oracle.jbo.common.WeakHashtable.get(WeakHashtable.java:94)
         at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:721)
         at oracle.jbo.server.EntityCache.add(EntityCache.java:523)
         at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:3024)
         at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:3632)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5596)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3528)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3387)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2188)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5016)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2935)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2791)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3032)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2726)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1221)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1035)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2774)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2751)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1906)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3441)
         at oracle.jbo.server.EntityImpl.vetoRemoveWithDetails(EntityImpl.java:8554)
         at oracle.jbo.server.EntityImpl.remove(EntityImpl.java:8711)
         at oracle.jbo.server.ViewRowImpl.doRemove(ViewRowImpl.java:3280)
         at oracle.jbo.server.ViewRowImpl.remove(ViewRowImpl.java:3325)
         at oracle.jbo.server.QueryCollection.doRemove(QueryCollection.java:2480)
         at oracle.jbo.server.QueryCollection.remove(QueryCollection.java:2503)
         at oracle.jbo.server.ViewRowSetImpl.removeRowAt(ViewRowSetImpl.java:2413)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doRemoveCurrentRow(ViewRowSetIteratorImpl.java:2469)
         at oracle.jbo.server.ViewRowSetIteratorImpl.removeCurrentRow(ViewRowSetIteratorImpl.java:2494)
         at oracle.jbo.server.ViewRowSetImpl.removeCurrentRow(ViewRowSetImpl.java:3301)
         at oracle.jbo.server.ViewObjectImpl.removeCurrentRow(ViewObjectImpl.java:10707)
         at oracle.adf.model.binding.DCIteratorBinding.removeCurrentRow(DCIteratorBinding.java:2712)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1293)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2143)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         at com.gm.vstar.ui.manage.bean.manageGroups.removeGroup(manageGroups.java:105)
         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:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.rich.component.UIXDialog.broadcast(UIXDialog.java:97)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3315)
         at oracle.sql.NUMBER.toBigDecimal(NUMBER.java:666)
         at oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:2196)
         at oracle.jbo.domain.Number.bigDecimalValue(Number.java:569)
    There seems to be soem issue in DB mappings.
    Abhishek

  • Reading file in a 2d Array

    Hi there
    I was wondering if anyone has some suggestions on how i can read a tab limited file in a two dimensional array. heres some i was trying but doesn't seem to get me the results i want
    1) Read one line at a time into an array
    2) Add the array to a list
    3) convert the list to a twoD array.
    the code is
    List lines = new ArrayList();
    int rowscount = 0;
    String[] colHeader = new String[]{};
    BufferedReader br = new BufferedReader(new FileReader(inFile));
    String line = br.readLine();
    while(line != null)
         //the first line contains column headers
         if (rowsCount == 0)
             colHeader = line.split("\t");
        else
             String[] tempVal = line.split("\t");
             lines.add(tempVal); //add to the list
             rowscount++;
             line = br.readLine();
    String data[][] = new String[lines.size()][colHeader.length];
    for (int i=0; i<lines.size(); i++)
         data[i] = (String[]) lines.get(i);
         for (int j = 0; j < colHeader.length; j++)
             logger.debug("DATA: "+data[i][j]);
         // this gives me arrayindexoutofboundexception
       } Well the error is coz the columnheaders are 16, but the actual data below column headers has only 10 columns and rest 6 are empty tabs...I want to include those empty tabs in the array(tempVal). Can anyone suggest me a better solution or modify this one so it works
    Thanking you

    Something like:
    while (...) {
      String [] rowContents = line.split("\t");
      if (rowsCount == 0) {
        colHeader = rowContents;
      else {
        int numRemaining = colHeader.length - rowContents.length;
        if (numRemaining > 0) {
          List list = new ArrayList(Arrays.asList(rowContents));
          list.addAll(Collections.nCopies(numRemaining, ""));
          rowContents = (String [])list.toArray(rowContents);
          lines.add(rowContents);
      rowsCount++;
      line = br.readLine();
    }

  • Converting flat file to XML

    Hi
    i just want to read flat file and convert it into xml but there are some problem ,it throws a ArrayIndexOutOfBoundException.Here is code.
    import java.io.*;
    import java.util.*;
    class FlatXMLBudget {
      public static void convert(List data, OutputStream out)
       throws IOException {
        Writer wout = new OutputStreamWriter(out, "UTF8");
        wout.write("<?xml version=\"1.0\"?>\r\n");
        wout.write("<Budget>\r\n");
        Iterator records = data.iterator();
        while (records.hasNext()) {
          wout.write("  <LineItem>\r\n");
          Map record = (Map) records.next();
          Set fields = record.entrySet();
          Iterator entries = fields.iterator();
          while (entries.hasNext()) {
            Map.Entry entry = (Map.Entry) entries.next();
            String name = (String) entry.getKey();
            String value = (String) entry.getValue();
            // some of the values contain ampersands and less than
            // signs that must be escaped
            //value = escapeText(value);
            wout.write("    <" + name + ">");
            wout.write(value);       
            wout.write("</" + name + ">\r\n");
          wout.write("  </LineItem>\r\n");
        wout.write("</Budget>\r\n");
        wout.flush();
      public static String escapeText(String s) {
        if (s.indexOf('&') != -1 || s.indexOf('<') != -1
         || s.indexOf('>') != -1) {
          StringBuffer result = new StringBuffer(s.length() + 4);
          for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if (c == '&') result.append("&");
            else if (c == '<') result.append("<");
            else if (c == '>') result.append(">");
            else result.append(c);
          return result.toString(); 
        else {
          return s;  
      public static void main(String[] args) {
        try {
            /*if(args.length<1)
            System.out.println("Usage: FlatXMLBudget infile outfile");
            return;
          InputStream in = new FileInputStream("d:\\file.txt");
          OutputStream out;
          int a=in.available();
          System.out.println("dd:"+a);
         /*if (args.length < 2) {
            out = System.out;
          else {*/
          List results = BudgetData.parse(in);
          int aa=results.size();
          System.out.println("dd:"+aa);
          out = new FileOutputStream("d:\\flattoxml.xml");
          convert(results, out);
        catch (IOException e) {
          System.err.println(e);      
    import java.io.*;
    import java.util.*;
    class BudgetData
    public static List parse(InputStream src) throws IOException
             // The document as published by the OMB is encoded in Latin-1
             InputStreamReader isr = new InputStreamReader(src, "8859_1");
              BufferedReader in = new BufferedReader(isr);
              List records = new ArrayList(); 
              String lineItem;
              while ((lineItem = in.readLine()) != null)
                 records.add(splitLine(lineItem));
            return records;
      // the field names in order
      public final static String[] keys = {
        "AgencyCode",
        "AgencyName",
        "BureauCode",
        "BureauName",
        "AccountCode",
        "AccountName",
        "TreasuryAgencyCode",
        "SubfunctionCode",
        "SubfunctionTitle",
        "BEACategory",
        "On-Off-BudgetIndicator",
        "FY1976", "TransitionQuarter", "FY1977", "FY1978", "FY1979", 
        "FY1980", "FY1981", "FY1982", "FY1983", "FY1984", "FY1985", 
        "FY1986", "FY1987", "FY1988", "FY1989", "FY1990", "FY1991", 
        "FY1992", "FY1993", "FY1994", "FY1995", "FY1996", "FY1997", 
        "FY1998", "FY1999", "FY2000", "FY2001", "FY2002", "FY2003",
        "FY2004", "FY2005", "FY2006"
      private static Map splitLine(String record)
                  record = record.trim();
                          int index = 1;
             Map result = new HashMap();
              for (int i = 1; i < keys.length; i++)
                      //find the next comma   
                    StringBuffer sb = new StringBuffer();
             char c;
               boolean inString = false;
               while (true)
                 c = record.charAt(index);
                 if (!inString && c == '"') inString = true;
                 else if (inString && c == '"') inString = false;
                 else if (!inString && c == ',') break;
                 else sb.append(c);
                 index++;
                 if (index == record.length()) break;
          String s = sb.toString().trim();
          result.put(keys, s);
    index++;
    return result;
    [output/error]
    java.lang.StringIndexOutOfBoundsException: String index out of range: 71
    at java.lang.String.charAt(String.java:444)
    at BudgetData.splitLine(BudgetData.java:55)
    at BudgetData.parse(BudgetData.java:16)
    at FlatXMLBudget.main(FlatXMLBudget.java:79)
    Exception in thread "main"
    [output/error]
    Can any one help me about this problem.

    Off-by-one error.
    In a String of length 70, for example, the characters are numbered from 0 to 69 in Java. Your program is written as if they were numbered from 1 to 70. So when you try to get #70, the exception occurs.
    But if you want to use commas as a delimiter to break a string into substrings, it's much easier just to use the split() method of String than to write all that code you have there.

  • Help with reflection in java

    hi
    i am new to java .I write my program in myeclipse4.0 while running the code it gives error dialogbox like javavirtualMachine says that fatal error came so program is exited.after that ArrayIndexOutOfBoundException is came. I am unable to understand this error.can any one help me.
    code is as follows
    import java.lang.reflect.*;
    public class RefTest1
         public static void Listsuperclass1(String name)
              try
              Class c = Class.forName(name);
              Class sc = c.getSuperclass();
              String cname = c.getName();
              String sname = sc.getName();
              System.out.println("\t\t"+cname+"extends"+sname);
              catch(ClassNotFoundException cnf)
                   cnf.printStackTrace();
              catch(Exception e)
                   e.printStackTrace();
         public static void main(String[] args)
              Listsuperclass1(args[0]);
    Thank you

    njb7ty wrote:
    I suggest dropping that example program and concentrating on reading a book on Java such as 'Head First in Java'. Otherwise, you will spend a lot of time trying to get something to work and gain little value from it.Likewise... Jumping into reflections before you can [read a stack-trace|http://www.0xcafefeed.com/2004/06/of-thread-dumps-and-stack-traces/] is like signing up a toddler for the New York Marathon... it's probably simply beyond your skill level... so step back... go read a book, do some tutorials, get your head around just the process of the designing, writing, compiling, running, and debugging java programs... and what the different diagnostics mean... Then, equipped with your nose-clip and your trusty stone ;-) you contemplate leaping into the deep end ;-)
    Cheers. Keith.

  • Error when RFC adapter calling the BAPI

    Hi freinds
    Today when I was executing my scenario ( File -- XI -- RFC ), I got following error ::
    Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling Z_BAPI_POS_AUTOMATION in remote system (RfcClient[RFC_Connection_SAPR3_DEV]):com.sap.mw.jco.JCO$Exception:(104) RFC_ERROR_SYST
    Before this error I executed my scenario 2-3 times without any errors.
    I found that in RWB the message status was "Waiting". SO I checked the Component monitoring & found this error in Self Test Status ( the symbol was RED )-->
    java.lang.ArrayIndexOutOfBoundException: -1  ( Not copied from the original error message )
    I clicked the "Repeat Self Test" button & the status become green so I checked my message again. Now it was successfull but in 2 retries it was giving the JCO error & after the Self test ( 3rd retry) it went fine.
    I didn't change anything else other than Self test.
    This happened two times with me today. Can anyone tell me the reason behind this & what will be the permanent solution of
    this. Is this related to some memory dumping ? Is their anything like clearing memory for adpaters in XI.
    Best Regards
    Lalit

    Could you pls check whether a short dump occured in the target system.
    Go to ST22 in the target system and check.
    Thanks,
    Renjith

  • Error in downloading .gif image

    hi frndz
    I am writing an application which downloads the image from server
    for .jpeg, .jpg, .png its working fine but for .gif images it gives me the error: ArrayIndexOutOfBoundException
    Code for downloading Image is:
    ContentConnection connection = (ContentConnection) Connector.open(url);
    DataInputStream iStrm = connection.openDataInputStream();
    // two methods are used to download IMAGE
    // (I) If length available , (II) If length not available
    int length = (int) connection.getLength();
    // (Method I :) ContentConnection includes a length method
    if (length != -1)
    imageData = new byte[length];
    iStrm.readFully(imageData);
    // (Method II :) If Length not available...
    else
    ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
    int ch;
    while ((ch = iStrm.read()) != -1) bStrm.write(ch);
    imageData = bStrm.toByteArray();
    if (bStrm != null) bStrm.close();
    // Create the image from the byte array
    img = Image.createImage(imageData, 0, imageData.length-1);
    When I print Image length its zero and also imageData length is zero
    is there any other method to download .gif images
    thanks
    alpesh

    the problem is not in displaying image
    and by the way i am testing this on N70
    problem is in downloading
    i.e. image length is zero as well asif I dont consider image length the downloaded bytes are zero
    alpesh

  • Hi i need the explanation for the code below.

    public class RMIClient_CipherKey
    public RMIClient_CipherKey()
    public boolean changeKey(String s)
    int ai[] = new int[s.length()];
    for(int i = 0; i < ai.length; i++)
    switch(s.charAt(i))
    case 65: // 'A'
    ai[i] = 1;
    break;
    case 66: // 'B'
    ai[i] = 2;
    break;
    case 67: // 'C'
    ai[i] = 3;
    break;
    case 68: // 'D'
    ai[i] = 4;
    break;
    case 69: // 'E'
    ai[i] = 5;
    break;
    case 70: // 'F'
    ai[i] = 6;
    break;
    case 71: // 'G'
    ai[i] = 7;
    break;
    case 72: // 'H'
    ai[i] = 8;
    break;
    case 73: // 'I'
    ai[i] = 9;
    break;
    case 74: // 'J'
    ai[i] = 10;
    break;
    case 75: // 'K'
    ai[i] = 11;
    break;
    case 76: // 'L'
    ai[i] = 12;
    break;
    case 77: // 'M'
    ai[i] = 13;
    break;
    case 78: // 'N'
    ai[i] = 14;
    break;
    case 79: // 'O'
    ai[i] = 15;
    break;
    case 80: // 'P'
    ai[i] = 16;
    break;
    case 81: // 'Q'
    ai[i] = 17;
    break;
    case 82: // 'R'
    ai[i] = 18;
    break;
    case 83: // 'S'
    ai[i] = 19;
    break;
    case 84: // 'T'
    ai[i] = 20;
    break;
    case 85: // 'U'
    ai[i] = 21;
    break;
    case 86: // 'V'
    ai[i] = 22;
    break;
    case 87: // 'W'
    ai[i] = 23;
    break;
    case 88: // 'X'
    ai[i] = 24;
    break;
    case 89: // 'Y'
    ai[i] = 25;
    break;
    case 90: // 'Z'
    ai[i] = 26;
    break;
    case 32: // ' '
    ai[i] = 27;
    break;
    case 33: // '!'
    case 34: // '"'
    case 35: // '#'
    case 36: // '$'
    case 37: // '%'
    case 38: // '&'
    case 39: // '\''
    case 40: // '('
    case 41: // ')'
    case 42: // '*'
    case 43: // '+'
    case 44: // ','
    case 45: // '-'
    case 46: // '.'
    case 47: // '/'
    case 48: // '0'
    case 49: // '1'
    case 50: // '2'
    case 51: // '3'
    case 52: // '4'
    case 53: // '5'
    case 54: // '6'
    case 55: // '7'
    case 56: // '8'
    case 57: // '9'
    case 58: // ':'
    case 59: // ';'
    case 60: // '<'
    case 61: // '='
    case 62: // '>'
    case 63: // '?'
    case 64: // '@'
    default:
    key = defaultKey;
    return false;
    if(ai.length > 0)
    key = ai;
    else
    return false;
    return true;
    public String encryptLine(String s)
    String s1 = "";
    int i = 0;
    for(int j = 0; j < s.length(); j++)
    int k = s.charAt(j) + key;
    if(k > 126)
    k -= 95;
    s1 = s1 + (char)k;
    if(++i >= key.length)
    i = 0;
    return s1;
    public String decryptLine(String s)
    String s1 = "";
    int i = 0;
    for(int j = 0; j < s.length(); j++)
    int k = s.charAt(j) - key[i];
    if(k < 32)
    k += 95;
    s1 = s1 + (char)k;
    if(++i >= key.length)
    i = 0;
    return s1;
    private final int defaultKey[] = {
    9, 27, 12, 15, 22, 5, 27, 10, 1, 22,
    1
    private int key[] = {
    9, 27, 12, 15, 22, 5, 27, 10, 1, 22,
    1

    Hi.
    The first method is confusing as most of it doesn't do anything. You could replace it with a one liner. ;)
    It returns true if and only if the string has one or more characters and none of those characters are one of the special characters. The special characters include digits but not letters such as [ ] { } \
    The second and third methods implement a simple rotation encryption for up to 11 character strings. (Longer strings result in an ArrayIndexOutOfBoundException)

  • How to create a array with variables dimensions?

    I try to create a array like that:
    Object[][] data;
    data = new Object[] [];
    But that's doesn't work!
    Apparently I must specify the dimension of my array
    So I have done like that :
    Object[][] data;
    data = new Object[3] [3];
    And that work!
    But the problem is when I need to add extra elements to my array.
    If I write :
    data[4][1] = "123";
    I have the error message :
    java.lang.ArrayIndexOutOfBoundsException
    So, how can I defined a array with variables dimensions OR how can I add a dimension to a array?

    if you have:
    Object[][] data;
    data = new Object[3] [3];you end yo getting ArrayIndexOutOfBoundException if you try to point to some other Indexes. You can increase the size by doing new:
    Object[][] data;
    data = new Object[4] [3];and then copy the old Arrays to this one... this is heavy.
    Other thing to consider then is using some other datastructure, such as Vector, which grows along you add elements to it.
    P_trg

  • Database to table

    Dear Paul Bull!
    I am new to java programming. I have created a JList containing the names of some
    persons ( initally) and I want to know how to associate this name from the details of
    that person. The user should be able to click on the name of that person and retrieve
    the details associated with him in a form of JTable. The user should be able to add new
    names to the list and associate with corresponding details like name, age, sex, &c.
    Please help me!
    Please send me the the answer in form of working source code.
    I do not want to use JDBC.
    Thanks!

    Dear !
    Before your suggestion I had created the application in the following way which did not work because there was run time error saying
    "ArrayIndexOutOfBoundException".
    But even if this exception had not occured, I do not think this code will work the way I want.
    // This code does not work
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    class LMODEL extends DefaultListModel
         LMODEL( )
              addElement( "Bacchan Amitabh" );
              addElement( "Khan Shahrukh" );
              addElement( "Deol Sunny" );
              addElement( "Shetty Shilpa" );
    class LIST2 extends JList
         LIST2( )
              super( new LMODEL( ) );
    class N_FRAME extends JFrame
         N_FRAME( )
              this( "" );
         N_FRAME( String title )
              super( title );
    public class STORE_TABLE5 extends JFrame implements ActionListener
         static LMODEL     model     = new LMODEL( );
         static LIST2      list      = new LIST2( );     
         static N_FRAME      frame     = new N_FRAME( );
         static JButton button     = new JButton( "insert info" ),
                        button2     = new JButton( "update info" );               
         STORE_TABLE5( )
              populate_frame( );
              show_frame( );
         void populate_frame( )
              getContentPane( ).add( new JScrollPane( list ), BorderLayout.NORTH );
              getContentPane( ).add( panel( ), BorderLayout.SOUTH );
         JPanel panel( )
              JPanel      panel      = new JPanel( );
                        panel     . add( button );
                        panel     . add( button2 );
                        button     . addActionListener( this );
                        button2     . addActionListener( this );
              return     panel;
         public void actionPerformed( ActionEvent e )
              if(e.getSource( ) == button ) insert( );
              if(e.getSource( ) == button2 ) update( );
         void insert( )
              JPanel     p          = new JPanel( );
              JButton     b          = new JButton( "save" );
                        p          .add( b );
                        b          .addActionListener( new TMODEL.SAVE( ));
              String      s           = (String)model.getElementAt( list.getSelectedIndex ());
                        frame     .setTitle( s );
                        frame     .getContentPane( ).add( new JScrollPane( table( )), BorderLayout.NORTH );
                        frame     .setDefaultCloseOperation( N_FRAME.DISPOSE_ON_CLOSE);
                        frame     .setSize( 500, 500 );
                        frame     .show( );
                        frame     .getContentPane( ).add( p, BorderLayout.SOUTH );
         void update( )
              TMODEL t = new TMODEL( );
              LMODEL model = new LMODEL( );
              LIST2 list = new LIST2( );
              if( list.getSelectedIndex () != -1 )
                        String      s           = (String)model.getElementAt( list.getSelectedIndex ());
                        HashMap hmap = new HashMap( );
                        hmap.get( s );
         JTable table( )          
              JTable table = new JTable( new TMODEL( ));
              return table;
         void show_frame( )
              setTitle( "hash map" );
              setDefaultCloseOperation( EXIT_ON_CLOSE );
              pack( );
              show( );
         public static void main( String s[] )
              new STORE_TABLE5( );
    class TMODEL extends AbstractTableModel
              LMODEL model = new LMODEL( );
         LIST2 list = new LIST2( );
         Object [][]row                =      {
                                                           "NAME",
                                                           model.getElementAt( list.getSelectedIndex( ))
                                                           "AGE",
         String col_headings[]     =     {
                                                      "PARAMTERS",
                                                      "VALUES"
         public int getColumnCount()
              return col_headings.length;
         public int getRowCount()
         return row.length;
         public String getColumnName( int col )
              return col_headings[col];
         public void setValueAt(Object value, int rows, int col)
              row[rows][col] = value;
         fireTableCellUpdated(rows, col);
         public Object getValueAt(int rows, int col)
         return row[rows][col];
         public Class getColumnClass(int c)
         return getValueAt(0, c).getClass();
         public boolean isCellEditable(int rows, int col)
              return true;
         static class SAVE implements ActionListener               
              TMODEL t = new TMODEL( );
              LMODEL model = new LMODEL( );
              LIST2 list = new LIST2( );
                        public void actionPerformed( ActionEvent e )
                   if( list.getSelectedIndex () != -1 )
                        String      s           = (String)model.getElementAt( 0);
                        HashMap hmap = new HashMap( );
                        hmap.put( s, t );
              

  • XML Signature signing the keyinfo

    Hi,
    I have a requirement to generate enveloping XML Signature for a XML document. Using JSR 105 i was able to achieve enveloping signature, however one more requirement is to sign the KeyInfo element. Can someone please help in figuring out how to sign the KeyInfo element.
    The requirement is to achieve:
    <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Id="Signature001">
    <dsig:SignedInfo>
    <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
    <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
    <dsig:Reference URI="#KeyInfo001">
    <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
    <dsig:DigestValue>lidrMtTOohEypP9i9KcrY9+MrbI=</dsig:DigestValue>
    </dsig:Reference>
    <dsig:Reference URI="#Resource1">
    <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
    <dsig:DigestValue>hUHy5l7iki/Xks3V0bzz7kamGlU=</dsig:DigestValue>
    </dsig:Reference>
    </dsig:SignedInfo>
    <dsig:SignatureValue>GufDaAGCgjTfLKFZhK8/6Sb9KbqnKFQdaQ4SZ4ftoOySmYuYvLAh7wmYdiqqx7ykpWnvfejP+6wT
    SamsvB6xotqkUgC3p1ZsJubq9Wc4kKZeaTJfEmeq0vIWjCWFXu3pofJJSyecmBWmTQK+WezMwRIX
    aE4oHWJsXDBw8CarlmI=</dsig:SignatureValue>
    <dsig:KeyInfo Id="KeyInfo001">
    <dsig:KeyValue>
    <dsig:RSAKeyValue>
    <dsig:Modulus>xm9N3kv/MNfsYOoN48vhy3xiCyJuZl5nxEb2ya8+ItvwI+73IjSjVlqfkdxIAH4vBpjVhLfpV+p+
    GUqpuN6kb2/ynnXAcRzM/YGkIsVYBHZZsUK6BSfIxo/IDmPC2cv866W6NG8DQlnzRhOYBLpdtc3P
    XlRdkm6SlDLv8/ck+FE=</dsig:Modulus>
    <dsig:Exponent>AQAB</dsig:Exponent>
    </dsig:RSAKeyValue>
    </dsig:KeyValue>
    </dsig:KeyInfo>
    <dsig:Object Id="Resource1">
    ...

    Can you post the full stack trace of the ArrayIndexOutOfBoundException please? Also, what version/update of the JRE are you using?

  • UIX/XML BC4J - Controlling page flow in event handlers

    We have an event handler that executes some data processing using bc4j tags, and need to redirect the flow to another page, based on the value of some parameters. For example, we have a checkbox Prepare for another insert, and we want to check for its state in the event handler to determine which page to display.
    We tried the following code
    UIX page event handler:
    <event name="saveEvent" >
         <bc4j:findRootAppModule name="TipoPunteggioViewAppModule" >
              <bc4j:findViewObject name="TipoPunteggioView" >
                   <bc4j:findRow name="CreateTipoPunteggioView" >
                        <bc4j:setPageProperty name="keyTipoPunteggio" >
                             <bc4j:stringKey />
                        </bc4j:setPageProperty>
                        <bc4j:setAttribute name="FlgObsoleto" />
                        <bc4j:setAttribute name="Firma" />
                        <bc4j:setAttribute name="TitTipoPunteggio" />
                        <bc4j:insertRow/>
                        <bc4j:commit/>
                        <bc4j:executeQuery/>
                        <ctrl:method class="com.websiteitalia.valutazioni.handlers.Handlers"
                             method="anotherInsertEventHandler" />
                   </bc4j:findRow>
              </bc4j:findViewObject>
         </bc4j:findRootAppModule>
    </event>
    Java method event handler:
    public static EventResult anotherInsertEventHandler(BajaContext bCtx,
                                       Page page,
                                       PageEvent event) {
         // AnotherInsert is the name of the checkbox on the page
    if ("on".equals(event.getParameter("AnotherInsert"))) {
              return new EventResult(page);
         } else {
              return new EventResult(new Page("ListPage"));
    When we return the same page, things work fine, but when we return another page we get an ArrayIndexOutOfBoundException. We have also noticed that if we return a simple page, without data scopes and bc4j tags, we get the correct result. We are probably wrong in the manner we do the redirect inside of a java event handler, because seems that the page we return is not completely processed.
    Can anyone explain the available techniques to control the page flow, using UIX XML tags or Java APIs alone or both of these together? For example, how can be replicated the <ctrl:go> behavior using Java APIs?

    The UIX page works correctly if loaded directly, the error takes place only when we redirect in this manner from a page that has a different application module / view object scopes. In fact, when we redirect to a page that have the same scopes of the first (or when the second page has not scopes at all the simple page) the error doesnt occur. Thats why we suppose that some step of the page rendering process arent executed correctly, it seems that the new page still finds some of the old page (the scopes)..
    To redirect to a page from a java event handler we have returned an event result with the next page (see above post for a code snippet), is this the correct way? Can we simulate the ctrl:go tag from the java code (with the redirect=true option)? There are any other?

Maybe you are looking for

  • Mail showing blank screen after iOS 8.2 upgrade

    after upgading to iOS 8.2 today, my mail is showing what seems to be a blank gmail screen, then goes dark, then transparent. Not able to get any email.  Tried deleting gmail account,  still getting same screen.

  • Output issue with Matrox MXO2 Mini

    Hi folks, We have just installed AE CS5 working on a new PC at work. it has an output to a PAL or HD broadcvast monitor via the Matrox MXO2 Mini. If there are transparent parts of the image it shows an unexpected result. For instance, if you have the

  • I cannot move the sreen since some update as of 9/22/2014

    This just began and I have never had this problem before. I do not have this problem with anything else on my computer - safari, mail, iphoto etc.

  • Build error importing MyFaces 1.0.7

    Hi, I'm trying to use the MyFaces components in SJSC, but when I import myfaces-components.jar into JSCS I get the following build-error: compile-beaninfo: Compiling 35 source files to C:\Documents and Settings\Iwan\.Creator\1_0\components\jars\beani

  • Help me make a digital "stamp"

    Here is my 1st, but very sad attempt at making my rendition of my digital "stamp" I am trying to make a digital logo to look like an actual stamp mark. You know when you use a real stamp and somtimes all of the ink doesnt hit and its blotchy or spott