oracle.jbo.domain.RowID cannot be cast to java.lang.String
JDeveloper 11.1.1.6This error is broadcast in weblogic when I try to create a new detail line in a table
< Utils > < buildFacesMessage > ADF: addition of the following JSF error: oracle.jbo.domain.RowID cannot be cast to java.lang.String
java.lang.ClassCastException: oracle.jbo.domain.RowID cannot be cast to java.lang.String
at model.eoCotizacionDetalleImpl.getTpcio(eoCotizacionDetalleImpl.java:866)
to model.eoCotizacionDetalleImpl$ AttributesEnum$ 27.get(eoCotizacionDetalleImpl.java:660)
at model.eoCotizacionDetalleImpl.getAttrInvokeAccessor(eoCotizacionDetalleImpl.java:1254)
at oracle.jbo.server.EntityImpl.getAttribute(EntityImpl.java:1715)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1815)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1923)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:866)
at oracle.jbo.server.ViewRowImpl.getKey(ViewRowImpl.java:677)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:291)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:299)
at oracle.jbo.uicli.binding.JUIteratorBinding.cacheCreatedRow(JUIteratorBinding.java:432)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1420)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
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.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
to 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)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to 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)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
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:139)
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)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to 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:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
< LifecycleImpl > < _handleException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 6 RENDER_RESPONSE
oracle.jbo.AttrValException: Houston-27019: the get method for attribute "RowID" in eoCotizacionDetalle is not resolved.
at oracle.jbo.server.EntityImpl.getAttribute(EntityImpl.java:1734)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1815)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1923)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:866)
at oracle.jbo.server.ViewRowImpl.getKey(ViewRowImpl.java:677)
at oracle.adf.model.binding.DCIteratorBinding.buildFormToken(DCIteratorBinding.java:4023)
at oracle.adf.model.binding.DCBindingContainerState.buildStringBuffer(DCBindingContainerState.java:92)
at oracle.adf.model.binding.DCBindingContainerState.toString(DCBindingContainerState.java:694)
at oracle.adf.model.binding.DCBindingContainer.getStateToken(DCBindingContainer.java:5031)
at oracle.adfinternal.controller.application.model.SaveStateTokenListener.afterPhase(SaveStateTokenListener.java:62)
to oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$ PagePhaseListenerWrapper.afterPhase (ADFLifecycleImpl.java:531)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:120)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:168)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ PhaseInvokerImpl.dispatchAfterPagePhaseEvent (ADFPhaseListener.java:131)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:74)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
to 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)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to 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)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
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:139)
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)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to 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:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '3' for queue: MSGID 'weblogic.kernel.Default (self-adjusting)' = BEA - 101020 MACHINE = TXID CC-INF-02 = the CONTEXTID = d5376a00c2542e48:7e8a3ab0:139ee0ca119:-8000 - 00000000000004be TIMESTAMP = 1348323991041
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>
OK, where is the issue?
the error message is quite clear that you cannot get an oracle.jbo.domain.RowID to a string type, which is exactly what the code to model.eoCotizacionDetalleImpl.getTpcio(eoCotizacionDetalleImpl.java:866).
Check what you're doing here...
Timo
Tags: Java
Similar Questions
-
oracle.jbo.domain.Number cannot be cast to impossible
Hello
uses db10g jdev11.1.1.5.0 - adfbc-oracle
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2 javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256) at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:214) 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:145) at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:357) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186) 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:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at view.backing.Tuntitled1.soc5_valueChangeListener(Tuntitled1.java:188) 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.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) ... 56 more <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #1 javax.servlet.ServletException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) 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:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at view.backing.Tuntitled1.soc5_valueChangeListener(Tuntitled1.java:188) 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)
public void soc5_valueChangeListener(ValueChangeEvent valueChangeEvent) { // Add event code here... BindingContainer bindings = getBindings(); DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("FinYearsView1Iterator"); Row row = dciter.getCurrentRow(); .. here am did big mistake. please any one correct me. Number s = (Number)row.getAttribute("Attr1s"); // here am getting some numbers Number s1 = 1; if(s != s1 ) // here i want check the value is not equal to one. { FacesMessage fm12 = new FacesMessage(" ho error") ; fm12.setSeverity(FacesMessage.SEVERITY_ERROR); FacesContext context12= FacesContext.getCurrentInstance(); context12.addMessage(null, fm12); } }
Hello
the message is true. Oracle Jbo.domain.Number cannot be cast to the number of Java. Make sure that your cast the object to
oracle.jbo.domain.Number
(just to change the import statement at the top of your Java class)
Frank
-
java.lang.Boolean cannot be cast to java.lang.String
Hi all
I enclose a new field to the existing table. I get this error.
I have added a field to my vo of type varchar2 and I joined the page element then here I get the below error.
Kindly help me its very urgent.
error.
=====
Houston-27019: Get method for the attribute "commercialinvoicenumber" in the original Version cannot be resolved.
java.lang.Boolean cannot be cast to java.lang.String
My point in vo:
Attribute:-commercialinvoicenumber
type:-String
Kindly help to solve them.
Kind regards
Sangu
I found the solution for this problem.
When I join the new filed to VO my voRowImpl file has been altered. Some of the double columns are created.
I deleted the duplicate columns now it works fine.
-Sangu.
-
I have this error:
ViewId treatment < UIXRegion > < _warn > error: / frameworks-designer-task-flow/hand URI: FrameworksDesignerMain.jsff real-URI: EnterpriseProcessExecutionSchedules.jsff.
java.lang.IllegalArgumentException: cannot convert 2 type class to class java.lang.Long oracle.jbo.domain.Number
at com.sun.el.lang.ELSupport.coerceToNumber (unknown Source)
at com.sun.el.lang.ELSupport.equals (unknown Source)
at com.sun.el.parser.AstNotEqual.getValue (unknown Source)
at com.sun.el.ValueExpressionImpl.getValue (unknown Source)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
to oracle.adfinternal.view.faces.renderkit.rich. LabeledInputRenderer.isDisabled (LabeledInputRenderer.java:285)
My question is how do I find in my page jsff? I see that it is on a property of disabled but I don't know which and there are many on this page. I think it's one that looks like this: disabled = ' #{bindings. " "{PGSchedType.inputValue No 5}. If my different EL expression?
Thank you.
Rudy
JDev 11.1.2.4.0
Hi Rudy,.
I guess that you have spotted it right. Instead of 5 in your disabled property, use '5'
I mean, just surround it with quotes like below
disabled="#{bindings.PGSchedType.inputValue ne '5'}"
Thank you
SAIF
-
Hi all
I have deployed the class files compiled the server getting the error JAVA_TOP, below, it happens in one of the instance of the client.
"oracle.jbo.JboException: Houston-29000: Unexpected exception caught: java.lang.NoClassDefFoundError".
What is the Cause for this? Any library is missing in java top serve in this case? Any idea?
Error details:
oracle.apps.fnd.framework.OAException: oracle.jbo.JboException: Houston-29000: Unexpected exception caught: java.lang.NoClassDefFoundError, msg = oracle, classloader, util, AnnotatedClassFormatError
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at _OAErrorPage._jspService(_OAErrorPage.java:221)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
.....
# # 0 in detail
java.lang.NoClassDefFoundError: oracle, classloader, util, AnnotatedClassFormatError
at xxxxxx.oracle.apps.pos.isp.webui.XXXPosHpageRtColCO.XXXXXXGenerateLog(XXXPosHpageRtColCO.java:362)
at xxxxxx.oracle.apps.pos.isp.webui.XXXPosHpageRtColCO.processRequest(XXXPosHpageRtColCO.java:66)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:604)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processRequest(OAFlowLayoutBean.java:353)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
.....
I found the solution, that was the problem because the *.class file moved mode binary transfer to server $Java_Top.
-
With the help of plugin vCAC (5.1) I tried to create an entity PhysicalMachine vCAC. Couple of attributes of the entity PhysicalMachine is numeric.
For example: to create a PhysicalMachineEntity I send you under properties map to createModelEntity
var physicalMachineProps = {}
PhysicalMachineID = "UUID".
MemoryInMB = 1121,
Processor = 2 speed,
Name of the vendor = "Seller,"
AssetTag = "ALEX."
Model = "usrLbl."
ServiceTag = "DN,"
Location = 0
};
createModelEntity always fail with java.lang.Double cannot be cast as a java.lang.Short error. Rhino still get converted to java.lang.Double and its plugin failure looks like number type. How can we force type is short
One has seen elsewhere. Appreciate any inputs on this.
Caused by: java.lang.ClassCastException: java.lang.Double cannot be cast in java.lang.Short
at org.odata4j.core.OSimpleObjects.create(OSimpleObjects.java:38)
at org.odata4j.core.OProperties.simple(OProperties.java:54)
at com.vmware.o11n.plugin.dynamicops.model.support.ODataAccessService.createSimpleProperty(ODataAccessService.java:1012)
at com.vmware.o11n.plugin.dynamicops.model.support.ODataAccessService.populateSimpleArgument(ODataAccessService.java:934)
at com.vmware.o11n.plugin.dynamicops.model.support.ODataAccessService.saveEntity(ODataAccessService.java:843)
at com.vmware.o11n.plugin.dynamicops.model.EntityManager.createModelEntity(EntityManager.java:53)
to com.vmware.o11n.plugin.dynamicops.model.EntityManager$ $FastClassByCGLIB$ $5bb4b803.invoke (< generated >)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
to org.springframework.aop.framework.Cglib2AopProxy$ CglibMethodInvocation.invokeJoinpoint (Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
to com.vmware.o11n.plugin.sdk.spring.impl.CurrentFactoryAnnotationAdvisor$ 1.call(CurrentFactoryAnnotationAdvisor.java:71)
at com.vmware.o11n.plugin.sdk.spring.AbstractSpringPluginFactory.doInCurrent(AbstractSpringPluginFactory.java:193)
at com.vmware.o11n.plugin.sdk.spring.impl.CurrentFactoryAnnotationAdvisor.invoke(CurrentFactoryAnnotationAdvisor.java:67)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
to org.springframework.aop.framework.Cglib2AopProxy$ DynamicAdvisedInterceptor.intercept (Cglib2AopProxy.java:622)
to com.vmware.o11n.plugin.dynamicops.model.EntityManager$ $EnhancerByCGLIB$ $93e675fa.createModelEntity (< generated >)
Thank you, open a support request. For now, workaround is to remove the attribute properties Slot, then I was able to create the PhysicalMachine entity. But there may be other entities with Int16
-
Hello
I have this problem when launching the model to test it. Insert table in detail
[c ode]
java.lang.NullPointerException [123]
to org.codehaus.groovy.runtime.dgmimpl.NumberNumberMultiply$ IntegerLong.call (NumberNumberMultiply.java:336)
at bc4j.uvo_EmpView_tax_null.gs.run(bc4j.uvo_EmpView_tax_null.gs.groovy:1)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1032)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1081)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:911)
at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2135)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1740)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1891)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:834)
at oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(ViewRowImpl.java:916)
at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:864)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.refreshControl(JUCtrlAttrsBinding.java:245)
at oracle.jbo.jbotester.BindingAdapter.refresh(BindingAdapter.java:69)
at oracle.jbo.jbotester.panel.CardPanel.refreshAll(CardPanel.java:128)
at oracle.jbo.jbotester.panel.RowSetPanel.refreshAll(RowSetPanel.java:206)
at oracle.jbo.jbotester.panel.RowSetPanel.navigated(RowSetPanel.java:154)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3660)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3631)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3414)
at oracle.jbo.server.ViewRowSetIteratorImpl.doInsertRow(ViewRowSetIteratorImpl.java:2390)
at oracle.jbo.server.ViewRowSetIteratorImpl.insertRow(ViewRowSetIteratorImpl.java:2333)
at oracle.jbo.server.ViewRowSetImpl.insertRow(ViewRowSetImpl.java:3101)
at oracle.jbo.server.ViewObjectImpl.insertRow(ViewObjectImpl.java:10656)
at oracle.jbo.jbotester.NavigationBar.doInsertAction(NavigationBar.java:137)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:109)
to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[132] DCBindingContainer.reportException: oracle.jbo.JboException
oracle.jbo.JboException [133]: Houston-29000: Unexpected exception caught: java.lang.NullPointerException, msg = null
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1048)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1081)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:911)
at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2135)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1740)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1891)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:834)
at oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(ViewRowImpl.java:916)
at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:864)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
at oracle.jbo.uicli.jui.JULabelBinding.updateValuesFromRow(JULabelBinding.java:114)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:287)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:299)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3660)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3631)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3414)
at oracle.jbo.server.ViewRowSetIteratorImpl.doInsertRow(ViewRowSetIteratorImpl.java:2390)
at oracle.jbo.server.ViewRowSetIteratorImpl.insertRow(ViewRowSetIteratorImpl.java:2333)
at oracle.jbo.server.ViewRowSetImpl.insertRow(ViewRowSetImpl.java:3101)
at oracle.jbo.server.ViewObjectImpl.insertRow(ViewObjectImpl.java:10656)
at oracle.jbo.jbotester.NavigationBar.doInsertAction(NavigationBar.java:137)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:109)
to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NullPointerException
to org.codehaus.groovy.runtime.dgmimpl.NumberNumberMultiply$ IntegerLong.call (NumberNumberMultiply.java:336)
at bc4j.uvo_EmpView_tax_null.gs.run(bc4j.uvo_EmpView_tax_null.gs.groovy:1)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1032)
... 52 more
# # 0 in detail
java.lang.NullPointerException
to org.codehaus.groovy.runtime.dgmimpl.NumberNumberMultiply$ IntegerLong.call (NumberNumberMultiply.java:336)
at bc4j.uvo_EmpView_tax_null.gs.run(bc4j.uvo_EmpView_tax_null.gs.groovy:1)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1032)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1081)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:911)
at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2135)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1740)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1891)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:834)
at oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(ViewRowImpl.java:916)
at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:864)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
at oracle.jbo.uicli.jui.JULabelBinding.updateValuesFromRow(JULabelBinding.java:114)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.updateNavigated(JUCtrlValueBinding.java:287)
at oracle.jbo.uicli.binding.JUIteratorBinding.navigated(JUIteratorBinding.java:299)
at oracle.jbo.common.RowSetHelper.fireNavigationEvent(RowSetHelper.java:264)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3660)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3631)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3414)
at oracle.jbo.server.ViewRowSetIteratorImpl.doInsertRow(ViewRowSetIteratorImpl.java:2390)
at oracle.jbo.server.ViewRowSetIteratorImpl.insertRow(ViewRowSetIteratorImpl.java:2333)
at oracle.jbo.server.ViewRowSetImpl.insertRow(ViewRowSetImpl.java:3101)
at oracle.jbo.server.ViewObjectImpl.insertRow(ViewObjectImpl.java:10656)
at oracle.jbo.jbotester.NavigationBar.doInsertAction(NavigationBar.java:137)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:109)
to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[c ode] -
java.lang.String cannot be cast java.lang.Integer
Hi am navigation based on the lov selection when I select the next button get this error caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer, am in jdebvloper 11.1.1.6.0
follow this example http://tompeez.wordpress.com/2013/02/09/jdeveloper-11-1-1-6-0-use-selection-in-lov-to-navigate-to-detail/
I re - create the problem by using the hr schema can download it hear http://www.datafilehost.com/download-4d2a19c4.html
Published by: adf009 on 25/03/2013 15:08my log error is Caused by: javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190) at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) ... 36 more Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at view.SelectedEmp.showSelectedOrg(SelectedEmp.java:34) 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.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46) ... 43 more am geting error in this line Integer selid = (Integer)attr.getInputValue();
Published by: adf009 on 25/03/2013 15:08
Published by: adf009 on 25/03/2013 15:10User ADF 009. In my view, that it is your third post in the same application...
Also to duplicate the post is not good...
Replace your line of code with the code of shot
AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Empid1"); String attrValue = (String) attr.getInputValue(); Integer selid = null; try { selid = Integer.parseInt(attrValue); }catch(NumberFormatException nfe) { System.out.println("Do whatever handling you want to do"); } if(selid == null) return "";
Thank you
Rajdeep -
java.lang.Integer cannot be cast to oracle.jbo.domain.Number
Hello
I use JDEV 11.1.2.1.0
Here is my code
Number _id; DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("IDView1Iterator");
_id = (Number) iterBind.getCurrentRow () .getAttribute ("Id");
It gives me the error
java.lang.ClassCastException: java.lang.Integer cannot be cast to oracle.jbo.domain.Number
I imported oracle.jbo.domain.Number.
Please notify.
Yes, but your Id attribute is of type java.lang.Integer, and try to throw him to oracle.jbo.domain.Number
try to use following:
Integer Id = (Integer) iterBind.getCurrentRow () .getAttribute ("Id");
_id = new Number (Id.intValue ());
997766 wrote:
_id = (Number) iterBind.getCurrentRow () .getAttribute ("Id");
It gives me the error
java.lang.ClassCastException: java.lang.Integer cannot be cast to oracle.jbo.domain.Number
I imported oracle.jbo.domain.Number.
Please notify.
-
Hello world
I get the following errors when you try to initialize a record:
- setCreatedBy (int) cannot be called setCreatedBy (oracle.jbo.domain.Number) in EOImpl
- setCreationDate (Calendar) cannot call setCreationDate (oracle.jbo.domain.Date) in EOImpl
setCreatedBy (value) must be a FND_USER. USER_ID. He wanders ins the following statement: setCreatedBy(-1);
setCreatedDate (value) must be today's date.
setWeekDate (value) must be the Sunday after today's date.
protected void doDML (int operation, TransactionEvent e) {}
Begin
Calendar date = Calendar.GetInstance ();
If (operation == DML_INSERT) {}
setLineId ((new_SequenceImpl_("tke_tp_cus_cd_14_lines_s",___getDBTransaction()).getSequenceNumber (()));
setBillable ("T");
setCreatedBy(-1);
setCreationDate (date);
setWeekDate (date);
}
End
super.doDML (operation, e);
}
Please be patient... I'm a noob! Thanks in advance!
James
James,
What version of Jdev do you use?
Can you post the code that you use after all the changes?
For the setLineId try new oracle.domain.Number(-1)
Timo
-
Hello
I have the following problem with my ADF application developed in JDeveloper 12.1.3:
In my model, there are two entities MeterEO and MeterTypeEO with the following attributes:
MeterEO
TenantId BigDecimal TENANT_ID NUMBER MeterCode String METER_CODE VARCHAR2 (48) Type Integer TYPE NUMBER MeterTypeEO
ID DBSequence ID NUMBER Name of the vendor String NAME OF THE VENDOR VARCHAR2 (32) Type String TYPE VARCHAR2 (16) Type of MeterEO reference Id in MeterTypeEO.
Appropriate VO of the meter uses a MeterTypeVO LOV to create a list containing the provider and Type as well as the user's selection.
In the ModelTester, everything works well when I try to change a counter, select a new type and validate my changes to the database.
A JSFF, it looks quite different. Selection is made by SelectOneChoice with the LOV list containing the provider and Type. Of the LOV the appropriate values are selected for the (integer) to the meter, then the user gets a readable text instead a few cryptic. But when I change the value by selecting a new choice I always got the error ' Can' oracle.jbo.domain.DBSequence to class java.lang.Integer.
Why it works without problems in the Modeltester but not on the page?
Please see the attached screenshots to make it clearer what I mean.
Any hint is appreciated,
Björn
I solved my problem now in view objects. Maybe someone who has the same problem and is interested in the solution:
In MeterTypeVO - which is the source for the LOV - I added a new transitional field called IntId of type Integer that refers to the field Id of type DbSequence by Expression. DbSequence is automatically converted at length which can be also automatically converted in full.
At the counter, I changed the key of the LOV to IntId instead of code.
It works like charm.
-
Hello!
How can I throw it a data type string or object in numbers (oracle.jbo.domain.Number)?
Thank you.
Please see below the code.
Number of numValue = new (strVal);
BR, 906099
-
Java.lang.Integer cannot be applied to oracle.jbo.domain.number
Hi all
Jdev Version: 11.1.2.3.0
Platfor: Windows 7
I'm trying to implement sequences and followed the following ADF essentials to create the same. For some strange reason, I meet, it throws the error of compilation as below.
[http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADFInsider_sequence/ADFInsider_sequence.html]
Steps to follow:
1. create the DepartmentsEO
2. has generated the Impl class for departments with accessors and Create method
I wrote the following lines in the method Impl to create files and get the error like setDepartmentId (java.lang.Integer) in eo model. DepartmentsImpl can not be applied to the (oracle.jbo.domain.number) *
SequenceImpl Seq = new SequenceImpl("DEPARTMENTS_SEQ",getDBTransaction);
setDepartmentId (seq.getSequenceNumber ()); *
Please help me!
Thank youHello
What Type of Map you selected when creating components trade?
Make sure it is Oracle. Looks like you have selected the Type of card Java takes DepartmentId column as Integer.
It takes so you must import the oracle.jbo.domain.Number class
setDepartmentId (numeric value)
Recommendation: Create business components again with card Type Oracle.
-
Hello world
During playback of Oracle ADF Real World Developer's Guide, I noticed the dates match occurring in JDeveloper is different from what is the list in the book. JDeveloper is failing to oracle.jbo.domain.Date, but according to the book:
DATE java.sql.Date DATE type is mapped to java.sql.Date if the column in the table is a no time didn't need information zone. DATE java.sql.Timestamp DATE type is mapped to java.sql.Timestamp if the column in the table has a component "time" and that the client needs to zone information. TIMESTAMP java.sql.Timestamp The TIMESTAMP type is mapped to java.sql.Timestamp if nanosecond precision is used in the database. In general, is it better to use java.sql.Date and java.sql.Timestamp instead of oracle.jbo.domain.Date? Using java.sql.Date and java.sql.Timestamp could save me some headaches conversion date. And, is there a place in JDeveloper to display these maps? I looked around and didn't see anything.
Thank you.
James
User, what version of jdev we are talking about?
In GR 11, 1 material versions db types date and timestamp are mapped to types of domain data that represents a wrapper for the native data types. The reason was that the framework can work with the domain types regardless of the underlying data type.
Since Oracle 11 GR 2 maps the types DB to java types (default selection, you can change it when you create a model project, you can set the Data Type Mapping). Once the pilot has business components define you cannot change this setting it would break existing components such as eo or vo.
So if you are working wit 11 GR 1 subject, you must use the domain types, if you work with GR 11, 2 or 12 c, you can use the domain types, but it is recommended to use the java type mapping.
Timo
-
Hello world
Work with dates has been harder than I thought! Please take a look at the code; everything compiles, but it fails because I'm not cast properly. Any help would be appreciated.
Imports are:
import java.sql.SQLException;
to import java.text.ParseException;
import impossible;
import java.util.Calendar;
Import oracle.jbo.domain.Date;
Import oracle.jbo.domain.Timestamp;
Here is the method:
public static Date (String sDate, int day, nextDay
SimpleDateFormat String) {}
Date result = null;
java.util.Date date;
If (sDate! = null) {}
try {}
System.out.println ("Try...");
Calendar calendar = Calendar.GetInstance ();
SimpleDateFormat dateFormat =
new SimpleDateFormat (simpleDateFormat);
calendar.setTime (dateFormat.parse (sDate));
Calendar.Set (Calendar.DAY_OF_WEEK, date); day = Calendar.SUNDAY
Calendar.Set (Calendar.HOUR_OF_DAY, 0);
Calendar.Set (Calendar.MINUTE, 0);
Calendar.Set (Calendar.SECOND, 0);
Calendar.Add (Calendar.DATE, 7);
dateFormat.format (calendar.getTime ());
try {}
System.out.println ("try (inside)... ») ;
"System.out.println (" new Timestamp (calendar.getTime () .getTime ()) "):" +.
new Timestamp (calendar.getTime () .getTime ()));
result = new Date (Timestamp (calendar.getTime () .getTime ())) new; Code does not work here.
return the result;
} catch (SQLException e) {}
System.out.println ("catch (SQLException e)... ») ;
e.printStackTrace ();
}
Returns a null value.
} catch (ParseException exception) e {}
System.out.println ("catch exception e ParseException... ») ;
e.printStackTrace ();
}
Returns a null value.
}
Returns a null value.
}
Here is the result:
try...
Try (inside)...
new Timestamp (calendar.getTime () .getTime ())): 2013-12-29 00:00:00.0
catch (SQLException e)...
java.sql.SQLException: failed initialization
to oracle.sql.DATE. < init > (DATE.java:237)
to oracle.jbo.domain.Date. < init > (Date.java:378)
James
try to convert timestamp to jbo.date as
java.sql.Timestamp datetime =
new
java.sql.Timestamp(System.currentTimeMillis());
oracle.jbo.domain.Date daTime =
new
oracle.jbo.domain.Date(datetime);
Maybe you are looking for
-
Webcam always shows the same image
I was wondering if anyone would be able to help me. I recently bought a laptop with a built in camera. However, one of the photos I uploaded to my laptop has frozen, so whenever I try to take a photo or video of the camera, the image appears instead
-
Photoshop 3.0 (old version) is compatible with Windows XP?
I have problems to install an older version of Photoshop 3.0 on my Windows XP computer. Is there a compatibility issue?
-
First, I installed SP2 for Vista x 64 may 27 by a wired LAN connection. This night there I couldn't connect wirelessly to the internet at the hotel. Checked for problems with the ISP and none have been detected. The next day I uninstalled SP2 and the
-
CDR on CUCM 6.1.2 problem
Hi, guys. I need assistance with CDR reports CUCM 6.1.2. I checked for calls within a period of two days, I found a hundred calls have been sent / received but when I checked the statistics of calls, the necessary values (package sent, packet receive
-
Everytime I open an application that uses my audio device system.exe changes from 2% to 50% in a few seconds. Then I checked the thread and it was a thread using all the CPU. This thread is called stdriver64.sys. any help? Rafael Nadal