Cannot be cast to ConnectionWrapper to oracle.jdbc.OracleConnection
Hello community,
I have a problem to get a custom of my database object.
Exception:
Java.lang.ClassCastException
org. Apache.Tomcat.DBCP.dbcp2.PoolingDataSource$ PoolGuardConnectionWrapper
cannot be cast to oracle.jdbc.OracleConnection to
oracle.sql.scruptdescriptor.createDescriptor)
My Code:
Class.forName("oracle.jdbc.OracleDriver"); Context contextEnv = (Context) new InitialContext().lookup("java:/comp/env"); DataSource dataSource = (DataSource) contextEnv.lookup("xxxx/xxx/xxxx_xxx"); Connection connectionDB = dataSource.getConnection(); System.out.println("-- 1 --"); System.out.println("Type: " + connectionDB.unwrap(oracle.jdbc.OracleConnection.class)); final StructDescriptor structDescriptor_Mitglied = StructDescriptor.createDescriptor("KPZ.RECTYPE_MITGLIED", connectionDB); final ResultSetMetaData metaData_Mitglieder = structDescriptor_Mitglied.getMetaData(); System.out.println("-- 2 --"); Struct recMitglied = connectionDB.createStruct("KPZ.RECTYPE_MITGLIED",new Object[] { itemMitglied.getItemProperty("bname_id").getValue() ,itemMitglied.getItemProperty("bvorgang_id").getValue() ,itemMitglied.getItemProperty("mnr").getValue() ,itemMitglied.getItemProperty("bnr").getValue() ,itemMitglied.getItemProperty("anrede").getValue() ,itemMitglied.getItemProperty("titel").getValue() ,itemMitglied.getItemProperty("vorname").getValue() ,itemMitglied.getItemProperty("nachname").getValue() ,itemMitglied.getItemProperty("name1").getValue() ,itemMitglied.getItemProperty("name2").getValue() ,itemMitglied.getItemProperty("name3").getValue() ,itemMitglied.getItemProperty("strasse").getValue() ,itemMitglied.getItemProperty("haus_nr").getValue() ,itemMitglied.getItemProperty("plz").getValue() ,itemMitglied.getItemProperty("ort").getValue() ,itemMitglied.getItemProperty("telefon").getValue() ,itemMitglied.getItemProperty("email").getValue() ,itemMitglied.getItemProperty("status_kurz").getValue() }); System.out.println("-- 3 --"); CallableStatement cs; cs = connectionDB.prepareCall("BEGIN KPZ.PCK_MITGLIED.PRC_LESE_MITGL_ADRESSE(?,?,?); END;"); cs.setObject(1, recMitglied); cs.registerOutParameter(2, Types.STRUCT,"KPZ.RECTYPE_TECHINFOS"); cs.registerOutParameter(3, Types.ARRAY,"KPZ.TABTYPE_MITGLIED"); cs.execute();
Context.Xml
<Resource name="xxxx/xxx/xxxxx" auth="Container" type="oracle.jdbc.pool.OracleDataSource" driverClassName="oracle.jdbc.OracleDriver" factory="oracle.jdbc.pool.OracleDataSourceFactory" url="jdbc:oracle:thin:@xx.xx.xxx.xxxx:xxxx:AAAAAA" user="xxxxx" password="xxxx" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/>
If someone has an idea, id would be great.
THX
Hi, Yes. You get a connection regrouped, which naturally is a wrapper around naked OracleConnection
and pass you (still packed connection) to a method of Oracle that in their own country is expected to benefit from a nude
OracleConnection.
Try this:
OracleConnection oconn = connectionDB.unwrap (OracleConnection);
final StructDescriptor structDescriptor_Mitglied = StructDescriptor.createDescriptor ("KPZ. RECTYPE_MITGLIED", oconn);
Struct recMitglied = oconn.createStruct ("KPZ. RECTYPE_MITGLIED", new Object []...
oConn = null; do not use for standard JDBC, and * do not close TI *.
Tags: Java
Similar Questions
-
Hello
I'm on jdev 11.1.2.4 and mysql db.
My application works well, but quite often I get this error. ususally when you sign out of it.
<RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5 JBO-30003: Application pool model.services.SmsAppModuleLocal fails to check out an application module due to the following exception: java.lang.ClassCastException: weblogic.jdbc.wrapper.PoolConnection_com_mysql_jdbc_JDBC4Connection cannot be cast to oracle.jdbc.OracleConnection at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:5534) at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5329) at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1167) at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838) at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298) at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329) at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203) at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600) at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417) at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053) at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606) at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536) at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346) at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245) at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571) .... ....... and so on.....
no idea why I get this error and how to get rid of?
Thank you
HI EmAr,
This is my answer to another question:
We have seen this error, when we use one database other than Oracle. When error occurs, disconnect the session and try to connect again.
We had to create root application module (by calling Configuration.createRootApplicationModule) when connecting (and release after use). I thought what happens because of AOS pooling, it tries to use invalidated (last session) AM. (this is just guessing).
Now, we have no problem with other databases (mysql, postgresql, oracle).
Earlier, I found these links. In my view, it has solved the problem basically... (I didn't try it)
After answering this question, I have tried the links, he solved the problem completely...
You create a servlet context listener which affects jbo.sqlbuilder system config and put this context listener in the Web.XML (as mentioned in the links)
Kind regards
Sara. -
How to import oracle.jdbc.OracleConnection
I'm sure it's something that I'm supposed to know but it's been about a year that I've worked with JDeveloper and I forgot a few things.
I'm looking for a code that includes import oracle.jdbc.OracleConnection with a red wavy line that gives the message 'import oracle.jdbc.OracleConnection not found.'
Where should I start looking for how to fix this?
Thank you
GregoryIn your project properties, in libraries and classpath section, add the 'Oracle JDBC' library.
-
How to avoid using oracle.jdbc.driver.OracleConnection
I am new to Java, but recently, I have a project on support.
Problem:
solution worked on the 1.4 jvm, now on 1.7.
Respectively, the oracle.jdbc.driver.OracleConnection class has been used.
Now, I need class oracle.jdbc.OracleConnection to use CLOB.createTemporary (), but... I can't.
According to the docs, just replace in the code and config files a declaration of the class on another. But I replaced all in all the files of configuration of no. and anyway, no there wasn't that oracle.jdbc.driver.OracleConnection was created. (there is no explicit declaration of the type of connection in the code, everything is configured in the config files)
Project uses marven, mybatis - 3.1.1. Database: oracle 9
Driver: ojdbc14 - 9.2.0.5.jar contains two classes: the oracle.jdbc.driver.OracleConnection (for backward compatibility) and oracle.jdbc.OracleConnection.
The question is what do I need to use a second instead of the first.
Maybe there are a few java cache? I do not know...
Everyone knows?
I solved the problem!
This thread helped me: https://forums.oracle.com/thread/556426 ("I have to use classes12.zip for this work.")
The main problem was the jdbc driver - I tried all the ones I found on the page of download of oracle and the only factor that does the job was classes12.jar (Oracle Database 10g Release 2 (10.2.0.1.0)). I replaced it in 'ORACLE_HOME\jdbc\lib\' and 'apache-tomcat\lib\.
Each driver has its own bugs, and I also did different things, so I can't say that any replacement driver is enough. Te I changed the time zone database, run the tzupdater, vm set param - Duser.timezone = ""-07:00 ", may be something else."
Thank you very much for the answer so detailed!
-
Hello
I noticed that the following errors appear often in my custom portals managed servers. Can anyone tell why these errors appear as I applied all the necessary patches?
Oracle WebCenter Suite 11 g 11.1.1.8.0 portal applied Patch 21281035
< 11 November 2015 11:00:08 SGT > < error > < oracle.webcenter.content.integration.spi.ucm.UCMCacheUpdateTimer > < WCS-55198 > < Cache update - unexpected error of blocking for the repository.
java.lang.ExceptionInInitializerError
at oracle.webcenter.content.internal.stellent.VCRConfigProvider.getRepositoryConfig(VCRConfigProvider.java:99)
at oracle.webcenter.content.integration.federated.internal.delegate.RepositoryHelper.getRepositoryConfig(RepositoryHelper.java:601)
at oracle.webcenter.content.integration.federated.internal.delegate.CacheHelper.getBinaryCache(CacheHelper.java:56)
at oracle.webcenter.content.integration.federated.internal.delegate.CacheHelper.flushAllBinaryCacheEntries(CacheHelper.java:254)
at oracle.webcenter.content.integration.federated.ContentCacheHelper.flushAllBinaryCacheEntries(ContentCacheHelper.java:54)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheHelper.invalidateNodeEntry(UCMCacheHelper.java:175)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheHelper.invalidateCacheEntries(UCMCacheHelper.java:138)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheUpdater.updateCaches(UCMCacheUpdater.java:83)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheUpdateTimer.run(UCMCacheUpdateTimer.java:105)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.util.MissingResourceException: can't find oracle.webcenter.content.integration.internal.logging.VCRLogger bundle
at java.util.logging.Logger.setupResourceInfo(Logger.java:1537)
to java.util.logging.Logger. < init > (Logger.java:267)
at java.util.logging.LogManager.demandLogger(LogManager.java:433)
at java.util.logging.Logger.demandLogger(Logger.java:346)
at java.util.logging.Logger.getLogger(Logger.java:442)
at oracle.adf.share.logging.ADFLoggerFactory.getADFLogger(ADFLoggerFactory.java:63)
at oracle.adf.share.logging.ADFLogger.createADFLogger(ADFLogger.java:221)
to oracle.webcenter.content.integration.RepositoryException. < clinit > (RepositoryException.java:31)
at oracle.webcenter.content.internal.stellent.VCRConfigProvider.getRepositoryConfig(VCRConfigProvider.java:99)
at oracle.webcenter.content.integration.federated.internal.delegate.RepositoryHelper.getRepositoryConfig(RepositoryHelper.java:601)
at oracle.webcenter.content.integration.federated.internal.delegate.CacheHelper.getBinaryCache(CacheHelper.java:56)
at oracle.webcenter.content.integration.federated.internal.delegate.CacheHelper.flushAllBinaryCacheEntries(CacheHelper.java:254)
at oracle.webcenter.content.integration.federated.ContentCacheHelper.flushAllBinaryCacheEntries(ContentCacheHelper.java:54)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheHelper.invalidateNodeEntry(UCMCacheHelper.java:175)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheHelper.invalidateCacheEntries(UCMCacheHelper.java:138)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheUpdater.updateCaches(UCMCacheUpdater.java:83)
at oracle.webcenter.content.integration.spi.ucm.UCMCacheUpdateTimer.run(UCMCacheUpdateTimer.java:105)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
< 11 November 2015 11:01:07 SGT > < WARNING > < oracle.webcenter.notification.internal.model.util.FrameworkUtils > < BEA-000000 > <
java.lang.ClassCastException: oracle.webcenter.framework.service.RepositoryVersion cannot be cast to oracle.webcenter.framework.service.RepositoryVersion
at oracle.webcenter.framework.service.ServiceContext.getRepositoryVersionObject(ServiceContext.java:1283)
at oracle.webcenter.framework.service.ServiceContext.getRepositoryVersion(ServiceContext.java:1185)
at oracle.webcenter.framework.service.ServiceContext.isRepositoryVersionGreaterThanOrEqualTo(ServiceContext.java:1221)
at oracle.webcenter.peopleconnections.profile.internal.extension.ProfileService.isConfigured(ProfileService.java:41)
at oracle.webcenter.framework.service.ServiceRegistry.getAllConfiguredServices(ServiceRegistry.java:213)
at oracle.webcenter.notification.internal.model.util.FrameworkUtils.loadServiceActivityTypes(FrameworkUtils.java:94)
to oracle.webcenter.notification.internal.model.NotificationServiceImpl. < init > (NotificationServiceImpl.java:109)
at oracle.webcenter.notification.NotificationServiceFactory.getNotificationService(NotificationServiceFactory.java:89)
at oracle.webcenter.notification.internal.model.LifecycleListener.contextDestroyed(LifecycleListener.java:68)
at oracle.webcenter.framework.internal.view.WCFrameworkContextListener.contextDestroyed(WCFrameworkContextListener.java:208)
to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:482)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(EventsManager.java:200)
at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:3225)
at weblogic.servlet.internal.ServletContextManager.destroyContext(ServletContextManager.java:247)
at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:461)
at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:1545)
at weblogic.servlet.internal.WebAppModule.deactivate(WebAppModule.java:509)
to weblogic.application.internal.flow.ModuleStateDriver$ 2.previous(ModuleStateDriver.java:387)
at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)
at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:215)
at weblogic.application.internal.flow.ModuleStateDriver.deactivate(ModuleStateDriver.java:141)
at weblogic.application.internal.flow.ScopedModuleDriver.deactivate(ScopedModuleDriver.java:206)
at weblogic.application.internal.flow.ModuleListenerInvoker.deactivate(ModuleListenerInvoker.java:261)
to weblogic.application.internal.flow.DeploymentCallbackFlow$ 2.previous(DeploymentCallbackFlow.java:547)
at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)
at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:215)
at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:192)
at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:184)
to weblogic.application.internal.BaseDeployment$ 2.previous(BaseDeployment.java:677)
at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)
at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:215)
at weblogic.application.internal.BaseDeployment.deactivate(BaseDeployment.java:234)
at weblogic.application.internal.EarDeployment.deactivate(EarDeployment.java:59)
at weblogic.application.internal.DeploymentStateChecker.deactivate(DeploymentStateChecker.java:198)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.deactivate(AppContainerInvoker.java:98)
at weblogic.deploy.internal.targetserver.operations.DeactivateOperation.deactivate(DeactivateOperation.java:78)
at weblogic.deploy.internal.targetserver.operations.RemoveOperation.removeDeployment(RemoveOperation.java:306)
at weblogic.deploy.internal.targetserver.operations.RemoveOperation.doCommit(RemoveOperation.java:114)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
in weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$ 100 (DeploymentReceiverCallbackDeliverer.java:13)
to weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$ 2.run(DeploymentReceiverCallbackDeliverer.java:68)
to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>
Hello
Please apply the MLR 14 and check the box.
If the problem persists, please update us with the WCC and newspapers of WCP.
-
Dear,
I created a new portal application and run it... It has worked well. Then, I created a new page template and deployed the application in order to add these files appear in the War file.
then deploy the application. After running the application, I got this exception of non-performance
java.lang.ClassCastException: oracle.mds.core.MetadataObject cannot be cast to oracle.webcenter.framework.view.support.jaxb.DevicesMDMO
I use jdev 11.1.1.7 with 11.1.1.8 extension.
Also, I followed these discussions without hope
Error in the webCenter portal deployment
java.lang.ClassCastException: oracle.webcenter.framework.service.WebCenterConfig cannot be cast to oracle.webcenter.framework.service.WebCenterConfig
at oracle.webcenter.framework.service.WebCenterConfig.instance(WebCenterConfig.java:146)
at oracle.webcenter.framework.service.config.analytics.ConfigUtils.getADFConfig(ConfigUtils.java:77)
at oracle.webcenter.framework.service.config.analytics.ConfigUtils.instance(ConfigUtils.java:145)
at oracle.webcenter.framework.service.config.analytics.OpenUsageHelper.initialize(OpenUsageHelper.java:118)
to oracle.webcenter.framework.service.AnalyticsUtil. < clinit > (AnalyticsUtil.java:105)
at oracle.webcenter.framework.service.WebCenterLoginCountFilter.doFilter(WebCenterLoginCountFilter.java:87)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
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:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
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:163)
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)
< ConfigUtils > < getADFConfig > oracle.webcenter.framework.service.WebCenterConfig cannot be cast to oracle.webcenter.framework.service.WebCenterConfig
< DeviceSupportUtils > < getAllDevices >
java.lang.ClassCastException: oracle.mds.core.MetadataObject cannot be cast to oracle.webcenter.framework.view.support.jaxb.DevicesMDMO
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.getAllDevices(DeviceSupportUtils.java:2235)
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getAllDevices(DeviceSupportImpl.java:97)
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getDeviceByUserAgent(DeviceSupportImpl.java:397)
at oracle.webcenter.framework.view.support.DeviceAgent.getDevice(DeviceAgent.java:286)
at oracle.webcenter.framework.view.support.DeviceAgent.getDeviceGroups(DeviceAgent.java:313)
at oracle.webcenter.framework.view.support.DeviceAgent.getCurrentScopeDeviceGroup(DeviceAgent.java:417)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.qualifySessionScopeId(SiteStructureContext.java:759)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.generateCacheKey(SiteStructureContext.java:1070)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getSiteStructure(SiteStructureContext.java:318)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getSiteStructure(SiteStructureContext.java:281)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getDefaultSiteStructure(SiteStructureContext.java:363)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getCurrentModel(SiteStructureContext.java:1002)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.getCurrentSiteStructure(CustomViewHandler.java:349)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.findNavigationViewId(CustomViewHandler.java:315)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.createView(CustomViewHandler.java:115)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:831)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:422)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
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.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
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:128)
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)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:74)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
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:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
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:163)
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)
< DeviceSupportUtils > < getAllDeviceGroups >
java.lang.ClassCastException: oracle.mds.core.MetadataObject cannot be cast to oracle.webcenter.framework.view.support.jaxb.DevicesMDMO
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.getAllDeviceGroups(DeviceSupportUtils.java:3308)
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.getEnabledDeviceGroups(DeviceSupportUtils.java:3418)
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getEnabledDeviceGroups(DeviceSupportImpl.java:168)
at oracle.webcenter.framework.view.support.DeviceAgent.getCurrentScopeDeviceGroup(DeviceAgent.java:418)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.qualifySessionScopeId(SiteStructureContext.java:759)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.generateCacheKey(SiteStructureContext.java:1070)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getSiteStructure(SiteStructureContext.java:318)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getSiteStructure(SiteStructureContext.java:281)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getDefaultSiteStructure(SiteStructureContext.java:363)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getCurrentModel(SiteStructureContext.java:1002)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.getCurrentSiteStructure(CustomViewHandler.java:349)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.findNavigationViewId(CustomViewHandler.java:315)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.createView(CustomViewHandler.java:115)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:831)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:422)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
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.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
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:128)
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)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:74)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
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:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
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:163)
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)
< DeviceSupportUtils > < getAllDeviceGroups >
java.lang.ClassCastException: oracle.mds.core.MetadataObject cannot be cast to oracle.webcenter.framework.view.support.jaxb.DevicesMDMO
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.getAllDeviceGroups(DeviceSupportUtils.java:3308)
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getAllDeviceGroups(DeviceSupportImpl.java:134)
at oracle.webcenter.framework.view.support.impl.DeviceSupportImpl.getDefaultDeviceGroup(DeviceSupportImpl.java:298)
at oracle.webcenter.framework.view.support.DeviceAgent.getCurrentScopeDeviceGroup(DeviceAgent.java:456)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.qualifySessionScopeId(SiteStructureContext.java:759)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.generateCacheKey(SiteStructureContext.java:1070)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getSiteStructure(SiteStructureContext.java:318)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getSiteStructure(SiteStructureContext.java:281)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getDefaultSiteStructure(SiteStructureContext.java:363)
at oracle.webcenter.portalframework.sitestructure.SiteStructureContext.getCurrentModel(SiteStructureContext.java:1002)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.getCurrentSiteStructure(CustomViewHandler.java:349)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.findNavigationViewId(CustomViewHandler.java:315)
at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.createView(CustomViewHandler.java:115)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:831)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:422)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
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.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
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:128)
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)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:74)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
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:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
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:163)
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)
< SkinFactoryImpl > < getSkin > cannot find a skin that fits the family portal and version v1. We will use the portal.desktop of the skin.
You must install the latest patch bundle for WebCenter portal.
I believe that this error is a bug caused by certain features that are available in the portal Builder, but not in a framework application.
Basically, WebCenter is throwing items of metadata to specific models of devices. In the portal Builder, you can create different templates depending on the device, but this feature is not available in the framework where the error.
Just install the latest patch bundle and your problem should be solved.
Also... Note that Oracle recommendation is to use the portal generator and not to develop any new application with the framework.
-
Hello world
LM l and map creation using table list as the data collection for the leaf theme of points to specify a given location. The problem l get here is that, after setting up the collection of data on the theme tab, the choice address and longtude & latitudes remain disabled. LM using JDeveloper 12 c last version & weblogic 12 c. When l run my lm project this error: java.lang.ClassCastException: java.util.ArrayList cannot be cast to oracle.adf.view.faces.bi.model.GeoMapDataModel. Here is the source code of my page and the Bean managed that define the ArrayList
kdario Thanks for your comment, no. l didn't download the demo of component, but l did it right now. l use developer J 12 c to see how GeoMapDataModel is created .it will come back to you if any problem arises.
-
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.
-
oracle.jbo.domain.RowID cannot be cast to java.lang.String
JDeveloper 11.1.1.6
This 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
-
Hello
I am currently check why I encounter this error in a line graph?
Basically I have the managed bean
In the code, I have this defined graphic line.public class TestMB { private List<Object[]> tabularData = new ArrayList<Object[]>(); public void setTabularData(List<Object[]> tabularData) { this.tabularData = tabularData; } public List<Object[]> getTabularData() { return tabularData; } }
But I continued to encounter this error.<dvt:lineGraph id="lineGraph1" subType="LINE_VERT_ABS" emptyText="No Data To Display" value="#{backingBeanScope.TestMB.tabularData}" contentDelivery="immediate"> <dvt:background> <dvt:specialEffects/> </dvt:background> <dvt:graphPlotArea/> <dvt:seriesSet> <dvt:series/> </dvt:seriesSet> <dvt:o1Axis/> <dvt:y1Axis/> <dvt:legendArea automaticPlacement="AP_NEVER"/> </dvt:lineGraph>
My thought is that I would be able to display the emptytext attribute.java.lang.ClassCastException: java.util.ArrayList cannot be cast to oracle.adf.view.faces.bi.model.DataModel
JDeveloper 11.1.1.6
Published by: Neliel Sep 9, 2012 23:51Neliel,
You must link to the tabularData property and not to the value property.
Arun-
-
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
-
Hi all
Please help-
I got this exception when trying to retrieve a row in the table of my grain of support:
Caused by: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding cannot be cast to oracle.jbo.uicli.binding.JUCtrlValueBindingRef
The line of code in the bean to support caused the error:
oracle.jbo.uicli.binding.JUCtrlValueBindingRef tableRowRef = this.getTable1 () .getRowData () (oracle.jbo.uicli.binding.JUCtrlValueBindingRef);
What bothers me is that the same code works very well in the bean to another support page (see * 1) and I can't know the difference.
My environment:
I use JDeveloper 11. The application that I am has been upsized a JDeveloper 10 g app, so that the components are for the most part, Trinidad. We had to do a lot of adjustment to get the app to work on 11g. The work page I mentioned above has been made in 10g app (* 1).
Now, I add more things in this app. The application configuration is now EJB session beans and components of Trinidad.
Jspx page, I have a table that was formed for the purpose of the database (NOT of VO). I have a command to bind to a column in this table and I would like to get an Id of the row in the table. The error code line above causes is in the method of the command link.
Please help if you have the slightest idea.
Thank you very much!
Sophie
Published by: user12876081 on January 12, 2011 14:40Hello
the exception indicates that it is
this.getTable1 () .getRowData (); Returns FacesCtrlHierNodeBinding and should be cast to JUCtrlHierNodeBinding
Frank
-
Hello world
running mapviewer Ver11_1_1_7_3_B140717 we met the error above in newspapers trying to create maptiles.
Installation program:
-Table with a column of type ordimage (no available georaster here, we have to keep the files in the file system)
-Spatial index for column in mbr, metadata are
-All the files using the 31466 (Gauss-Krueger 2) coordinate system
-Image theme in mapbuilder shows images
-Bottom of mapbuilder card shows images
Trying to create the maptiles by using mapviewer administration - manage tile layers creates the above error (same details in the excerpts above).
AM PIZZABOTEN: Query [p ImageTheme] = SELECT ROWID, RAS_DOB MBR WHERE MDSYS. SDO_FILTER (MBR, MDSYS. SDO_GEOMETRY (2003, 31466, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1, 1003, 3), MDSYS. SDO_ORDINATE_ARRAY(:mvqboxxl,:mvqboxyl,:mvqboxxh,:mvqboxyh)), 'querytype = WINDOW') = 'TRUE' AND (pyramid = 25)
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImagesFromDBCached
FEINER: Fetch size: 100
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImageBlock
AGAIN: Ungultiger Spaltentyp (invalid column type?): getCustomDatum not implemented for the oracle.jdbc.driver.T4CNamedTypeAccessor class
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImagesFromDBCached
WARNUNG: unable to load keyframe: AAAVuOAAMAAAACFAAB
August 14, 2015 15:36:37 oracle.sdovis.theme.ImageThemeProducer loadImagesFromDBCached
INFORMATION: Exec sql [RAS_DOB_2014_TEST] time: 7ms, 0 images of loading time: 1 ms.
August 14, 2015 15:36:37 oracle.sdovis.DBMapMaker renderEm
INFORMATION: * the time spent on the loading features: 14ms.
MapTiles records only show the background color.
Has anyone else experienced this problem?
Best regards
NilsO
Hi Nils
12.1.3 WebLogic jdbc libraries are located in the MW_HOME/oracle_common/modules/oracle.jdbc_12.1.0 directory level.
For this WLS jdbc driver is ojdbc7.jar which is loaded on startup of WLS.
As mentioned on the post preceding this is is not compatible with the 11.1.1.7.3 MapViewer to display the ORDIMAGE. Seems that even the ojdbc6.jar that exists in this directory cannot be used.
What to do is make the WLS Server uses the ojdbc6.jar for 11.1.1.7.3. There are different ways to use a different pot in WebLogic.
This page http://docs.oracle.com/middleware/1212/wls/JDBCA/third_party_drivers.htm was noted in this regard.
As a quick test, you can try to make the ORDIMAGE with the following steps;
(1) on page MapViewer OTN, Oracle Fusion Middleware MapViewer access downloads and download the quick start for the 11.1.1.7.3 Version.
You will find the glassfish3/glassfish/domains/Domain1/lib folder a file jdbc ojdbc6.jar.
(2) on your installation of a WebLogic domain:
Navigate to the oracle_common/modules/oracle.jdbc_12.1.0 directory
make a backup of ojdbc7.jar
copy the ojdbc6.jar on top of ojdbc7.jar
(3) start Weblogic server and try to make your theme ORDIMAGE.
As I mentioned before, there are different ways to add a jar to WebLogic classpath. The quick test above is just replace the original ojdbc7.jar in a facility that is not good, as you lose you original ojdbc7.jar.
Best regards.
João
-
I have a batch process that performs the Bulk UPDATE statement.
After the lot via Spring JDBC helper 4.1.6 Oracle Jdbc Driver (ojdbc7 and ucp), the number of records affected for update requests (in the lot) is always recovered as -2 (Statement.SUCCESS_NO_INFO).
Is it possible to know the lines for individual cases, I have to repeat the same argument with an INSERT statement after that. Technically trying to develop it as a UPSERT implementation
I tried this update in batches of three different ways, and in the three methods, the results are same--(il me dit juste déclaration. ) SUCCESS_NO_INFO-(2))
Method 1 - connection direct UCP and PreparedStatement
connectionPoolMgr.startConnectionPool ("mgr_pool");
Connection connection = pds.getConnection ();
PreparedStatement pstmt = connection.prepareStatement (dmlSQL);
pstmt.setInt (1, pkId);
pstmt.setInt (2, idx * 10);
pstmt.addBatch ();
EACH ELEMENT in THIS ARRAY IS ALWAYS returned as -2
int updatedRows [] = pstmt.executeBatch ();
Method 2 - Spring JdbcTemplate and batchUpdate()
MapSqlParameterSource[] paramsArray = getSqlParameterList().toArray(new MapSqlParameterSource[0]);
EACH ELEMENT in THIS ARRAY IS ALWAYS returned as -2
int[] batchUpdateResult = getNamedParameterJdbcTemplate().batchUpdate(sqlStatement, paramsArray);
Method 3 - implementation of spring BatchSqlUpdate
BatchInsert batchInsert = new BatchInsert (dataSource);
for (int i = 0; i < count; i ++) {}
MapSqlParameterSource param = new MapSqlParameterSource();
param.addValue ("ID", i + 100);
param.addValue ("Name", "Name" + i);
batchInsert.updateByNamedParam (param.getValues ());
}
batchInsert.flush ();
int rowsAffected [] = batchInsert.getRowsAffected ();
class BatchInsert extends BatchSqlUpdate {}
private public static final String SQL = "(UPDATE t_customer_test SET prenom =: prenom) ' WHERE id =: ID"; "
BatchInsert (DataSource dataSource) {}
Super (data source, SQL);
declareParameter (new SqlParameter (Types.VARCHAR));
declareParameter (new SqlParameter (Types.INTEGER));
setBatchSize (100);
Compile();
}
}
I have a batch process that performs the Bulk UPDATE statement.
After the lot via Spring JDBC helper 4.1.6 Oracle Jdbc Driver (ojdbc7 and ucp), the number of records affected for update requests (in the lot) is always recovered as -2 (Statement.SUCCESS_NO_INFO).
Is it possible to know the lines for individual cases, I have to repeat the same argument with an INSERT statement after that. Technically trying to develop it as a UPSERT implementation
Yes--but it's an improvement for 12 c. See the JDBC Dev guide for 12 c:
https://docs.Oracle.com/database/121/JJDBC/oraperf.htm
Number of rows per table LMD iteration
From database Oracle 12 c Release 1 (12.1), the
executeBatch
method has been improved so that it returns an array of int size which is the same as the number of records in the batch and each element of the returned array is the number of rows in the database affected by the corresponding batch record. For example, if the batch size is 5, then theexecuteBatch
method returns an array of size 5. Error between the execution of the batch, theexecuteBatch
method cannot return a value, instead, it throws aBatchUpdateException
. In this case, the exception itself has a table size intn
its form, wheren
is the number of successful Records executions. For example, if the batch is size 5 and the error occurs at the 4th record, then theBatchUpdateException
has an array of size 3 (3 disks properly executed) and each element of represents it table how many rows were affected by each of them.Oracle MERGE statement allows you to "upserts". You will need to check with Spring or Hibernate to see if they support this statement.
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_9016.htm
Use of the
MERGE
statement to select rows in one or more sources for the update or insertion into a table or view. You can specify conditions to determine whether to update or insert into the target table or view.This statement is a convenient way to combine several operations. It allows you to avoid the multiple
INSERT
,UPDATE
, andDELETE
the DML statements. -
Hallo,
in my page, I have a table based on VO istance.
I open a workflow in the dialog box when the user clicks a button.
I spend a whole param through the SetPropertyListener in the button configured this way...
In the called workflow, I read the param in a bean managed through this code...
Long protocol = (Long) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("protToOpen");
And everything works fine.
The is problematic if I change the From the SetPropertyListener property set with a bind var....
... I have also display in an inputText.
(runtime)
(designtime)
The framework throws this exception...
oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast in java.lang.Long
I don't understand why it only works when the From of the SetPropertyListener property is configured with a fixed value, but not when I use the link vars.
You could you kindly help me find the error?
Thank youFederico
If your value not be #{bindings.prot.inputValue} instead of #{bindings.prot}?
Maybe you are looking for
-
Problems with restart, turn off, finder app and desktop missing files
I put my macbook (Pro 15 inch Retina 13 end) on 'sleep' last weekend and didn't use it for a few days. Came home and found that my office files have disappeared and the "finder" icon does not work and will not restart. Tried to download El Capilan to
-
When you try to print in Firefox and when the scale to the size of the page in the page layout, the first page prints correctly, but the following pages do not scale correctly and are too large for the paper, with the parts of the text are cut off at
-
Satellite L755 - failures of recovery appeared in audit mode
Chess appeared in audit mode in the 4 DVDs + environment (DVD 5) made 2 attempts throughout the DVD s, all DVDs have folders and files stored on it.no more impressed with a machine which is only 2 weeks, I could take a chance and guess the stuff on t
-
HP ProBook Hibernate problem (he wakes up suddenly)
Hi all!I have a HP ProBook s 4530 using Windows 7 64 - bit OS, Intel Core i3 - 2310 M (2.10 GHz) processor.My laptop is around the age of 21 months and I am facing some problems when put my laptop into hibernation. Everything was going well for a lon
-
HP Psc 1610 all-in-one: Hp psc 1610 without Windows installation
I'm trying to see if my printer will be able to work without the Windows installation disc. I have a HP PSC 1610 all-in-one printer. I'll buy the cable from Sun to hang it to the top, but I can't find the drive mentioned in the installation program.