SQLite ADF Mobile HR Sample?

Hello! well I am trying to run the ADF Mobile App for the HR schema (found in here: jdev_install/jdeveloper/jdev/extensions/oracle.adf.mobile/Samples) but I dont know how to create the database the sqlite one, If I am not mistaken a mobile App doesn't connect straight to an oracle database right? It does it through sqlite,
Can you explain me a liitle more of that
and how to create it and use the sample? THANKS A LOT!!

911437 wrote:
Hello! well I am trying to run the ADF Mobile App for the HR schema (found in here: jdev_install/jdeveloper/jdev/extensions/oracle.adf.mobile/Samples) but I dont know how to create the database the sqlite one, If I am not mistaken a mobile App doesn't connect straight to an oracle database right? It does it through sqlite,
Can you explain me a liitle more of that
and how to create it and use the sample? THANKS A LOT!!What exception/error you get when you try to run it?
SQLite is used to create a local database, so it has no remote connection to anything.
If you check the LifeCycleListenerImpl class (located by default in the ApplicationController project) you can see the initDB() method begin called when the application start (in the start method).
The initDB() method check if the .db (the sqlite db) is present. If there isn't a .db file, it will be created by using the .sql script which is located in Application Resources > Descriptors > ADF META INF > hr.sql
The DBConnectionFactory class will manage the connection to the sqlite database.

Similar Messages

  • Deploying ADF Mobile Browser Sample App in JDeveloper 11.1.2.3

    Hi,
    I had problem in deploying the sample app for ADF Mobile Browser in JDeveloper 11.1.2.3.
    I had tried every solution such as replacing web.xml for the Sample App with web.xml created in JDeveloper 11.1.2.3.
    I could not find the Jar file for the oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler in the web also.
    Please help to solve this problem as I had tried for many days.
    Thank you very much! =)
    ADF Mobile Browser Sample App URL:
    [ADF Mobile Browser Sample App|http://www.oracle.com/technetwork/developer-tools/adf/adf-mobile-browser-1864237.html]
    Error Log:_
    *<ConfigureListener> <contextInitialized> Critical error during deployment:*
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:357)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         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)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.ClassNotFoundException: oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at com.sun.faces.util.Util.loadClass(Util.java:303)
         at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass(FaceletTaglibConfigProcessor.java:420)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:371)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:314)
         at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:340)
         ... 38 more
    <Dec 10, 2012 12:20:15 PM IST> <Warning> <HTTP> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler.
    java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:293)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
         Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:357)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         Truncated. see log file for complete stacktrace
    >
    <FactoryFinder$FactoryManager> <getFactory> Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
    <ConfigureListener> <contextDestroyed> Unexpected exception when attempting to tear down the Mojarra runtime
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
         at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:996)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:331)
         at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131)
         at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:329)
         at 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:3224)
         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:1535)
         at weblogic.servlet.internal.WebAppModule.deactivate(WebAppModule.java:507)
         at 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)
         at 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)
         at weblogic.application.internal.BaseDeployment$2.previous(BaseDeployment.java:642)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:63)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         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)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <Dec 10, 2012 12:20:15 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1355122207762' for task '3'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: oracle.adfinternal.view.faces.bi.facelets.graph.RichSeriesSetHandler
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         Truncated. see log file for complete stacktrace
    >
    Edited by: 975879 on Dec 9, 2012 10:56 PM

    Hi Frank,
    Thanks for the fast response.
    Based on your advice, I had try to comment out all usage of graph in jsp, web.xml, and data binding file.
    But even after perform these, I still facing the same problem.
    For your information, RichSeriesSetHandler does not exist in the oracle.adfinternal.view.faces.bi.facelets.
    I suspecting RichSeriesSetHandler is configured in the app and it occur this error as it could not find the class.
    I had try to search this usage of this class in the app but there is no results found.

  • Error when starting ADF Mobile Browser Sample Application

    I had successfully deployed the Sample App downloaded from the Oracle ADF Mobile Browser Website in JDeveloper 11.1.2.2.
    This sample app is deployed successfully in IntegratedWebLogicServer as EAR.
    But when I trying to access the app in browser, it omit the following error:
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at oracle.adfinternal.controller.util.AdfvInterfaceImpl.updateQueryParameters(AdfvInterfaceImpl.java:211)
         at oracle.adfinternal.controller.state.RequestState.updateUrlStateToken(RequestState.java:677)
         at oracle.adfinternal.controller.state.RequestState.setCurrentStateInstance(RequestState.java:188)
         at oracle.adfinternal.controller.state.RequestState.setCurrentViewPortContext(RequestState.java:215)
         at oracle.adfinternal.controller.state.ControllerState.setRequestState(ControllerState.java:877)
         at oracle.adfinternal.controller.state.ControllerState.initializeRootViewPort(ControllerState.java:646)
         at oracle.adfinternal.controller.state.ControllerState.synchronizeStatePart1(ControllerState.java:302)
         at oracle.adfinternal.controller.application.SyncNavigationStateListener.beforePhase(SyncNavigationStateListener.java:219)
         at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:550)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchBeforePagePhaseEvent(LifecycleImpl.java:147)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchBeforePagePhaseEvent(ADFPhaseListener.java:119)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:63)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
         at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
         at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         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:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at 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)
         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)

    Hi Sashank, Thank for your reply and advice.
    This is a mobile ADF browser which it is deployed in EAR in Weblogic.
    ADF Mobile browser is different with ADF Mobile as one is access through mobile browser and one is access as mobile app.
    Please correct me if I'm wrong in this.
    Thanks

  • ADF Mobile HR Sample

    Hi all im new of this... I've been working on the adfmobile sample HR which creates a sqlite DB but I´m not able to connect with the HR data base
    i try to connect with a main class because when i deploying the emulator don't show me anything .. so when i run the main class show me this error
    [http://imageshack.us/f/11/444444yl.jpg/] .. somebody can tell me how connect the ADFmobile Sample Hr with the Local DataBase HR. i Dont want the app work with the hr.sql script. i want work with a localdatabase. THANKS A LOT

    Hi,
    before you start with what you don't want, just get the sample deployed and working. The local script populates the SQLite database schema, which is required to save data. Hi note that you don't +"run the main class"+ as the SQLite database is populated from a Lifecycle listener
    Frank

  • ADF Mobile : sample no Vegas

    hi
    Please consider this tweet by Duncan Mills
    " @fnimphiu so it's like Vegas - "what happens in a region - stays in a region" "
    at https://twitter.com/DuncanMills/status/255318833412308992
    I wonder how much this translates to bounded task-flows and using managed-beans in a bounded task-flow that are defined in a wider scope outside the bounded task-flow.
    In the ADF Mobile CompGallery sample application [1] the bounded task-flow "general-taskflow" has a view configured for the page "commandButton.amx".
    That "commandButton.amx" page has this button component:
    <amx:commandButton id="back" action="__back" text="General">
         <amx:setPropertyListener to="#{AmxProperties.commandButtonProperties.text}" from="#{pageFlowScope.pText}" type="action"/>
         <amx:setPropertyListener to="#{AmxProperties.commandButtonProperties.rendered}" from="#{pageFlowScope.pRendered}" type="action"/>
         <amx:setPropertyListener to="#{AmxProperties.commandButtonProperties.icon}" from="#{pageFlowScope.pIcon}" type="action"/>
         <amx:setPropertyListener to="#{AmxProperties.commandButtonProperties.iconPosition}" from="#{pageFlowScope.pIconPosition}" type="action"/>
         <amx:setPropertyListener to="#{AmxProperties.commandButtonProperties.styleClass}" from="#{pageFlowScope.pStyleClass}" type="action"/>
         <amx:setPropertyListener to="#{AmxProperties.commandButtonProperties.inlineStyle}" from="#{pageFlowScope.pInlineStyle}" type="action"/>
         <amx:setPropertyListener to="#{AmxProperties.commandButtonProperties.disabled}" from="#{pageFlowScope.pDisabled}" type="action"/>
    </amx:commandButton>The #{AmxProperties} managed-bean has been defined in adfc-mobile-config.xml like:
        <managed-bean id="__37">
            <managed-bean-name>AmxProperties</managed-bean-name>
            <managed-bean-class>mobile.AmxProperties</managed-bean-class>
            <managed-bean-scope>application</managed-bean-scope>
        </managed-bean>- (q1) Is using (depending on) an application-scoped managed-bean in a bounded task-flow view/page good practice (in ADF Mobile)?
    - [1] http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/demoapps.htm#BACGDHDJ
    many thanks
    Jan Vervecken

    Hi,
    First let's forget region for a sec (or a while), since ADF Mobil has no region support. :-)
    Now, ADF Mobile primarily supports 3 types of scopes for managed bean: application, pageFlow, and view. The definition and scope for these scope variables are basically the same as the "big" ADF cousin, except "application" takes on a little more significance. In ADF Mobile applications, we introduced a concept called "features", where each feature can be implemented either in AMX, local HTML, or Remote HTML. To pass state between features, you would need to use application scope variables. This is how, for example, you can pass data from a Remote HTML feature into an app scope variable, and then have the AMX feature to consume it.
    Otherwise, the best practice is the same - application is to share data across the entire mobile app/between features, pageFlow is for a task flow, and view is for a view.
    In this case below, the intent for the property related managed beans is simply to retain property values as user select between different components (and corresponding task flows) to view how component behaves. The managed beans for DVT component data are set to be application scope, also to allow multiple DVT components and corresponding task flows to share the same data.
    Thanks,
    Joe Huang

  • Need pointers on how to use SQLite in  ADF Mobile applications

    Hey,
    I am trying to develop an ADF mobile App. I am new to ADF mobile. I went through some of the tutorials but still need some clarification on how to use SQLite inside the application. Can i get a Data control out of it? Or is it just to read and write data .
    that brings me to the other question, Is the 'demo.db' i.e the db file which represents the Database, supposed to be packaged as a resource with the application?
    Pls give me some info abt this.. If you can provide me links with this information, it would be of great help.
    Thanks,
    Jithesh

    You can expose a java class containing methods (select, update, ...) as a Data Control.
    Yes, you need to add your .db as a resource.
    Here a blog post about SQLite in ADF Mobile:
    http://adf4beginners.blogspot.be/2013/03/adf-mobile-sqlite-in-adf-mobile.html

  • ADF Mobile: Read-write access to local DB using SQLite

    I am developing an android mobile app using ADF Mobile. To create the .db file i am choosing the location as
                String Dir = AdfmfJavaUtilities.getDirectoryPathRoot(AdfmfJavaUtilities.ApplicationDirectory); 
                String connStr = "jdbc:sqlite:" + Dir + "/CONTRACTS.db";
    The problem is that when i want to access this db from another app, it gives read-only permission. I am unable to perform any write operations.
    Can someone suggest how to change these permissions OR give an alternate path to save the .db file(perhaps, a directory)....that could be common to both the apps?
    -Thanks in advance

    Hi.
    There is no straightforward way to accomplish this even with a standard iOS or Android application. Some hacks exist for each platform, but could result in weaker security in some cases. My recommendation would be to have separate databases for each application, and to implement server-side synchronization mechanisms for data that must be shared between the two. That said, you didn't say much about your use case. Care to provide a bit more detail?
    Best Regards,
    Frédéric Desbiens
    ADF Product Manager
    Twitter: @BlueberryCoder
    blog: http://blogs.oracle.com/blueberry

  • ADF MOBILE: Storing images into sqlite DB

    Can someone please show me how to store and retrieve images and other file types into the local sqliteDB.
    I know I have to use blobs, but what is the process of converting a file into a blob and converting a blob into a specific file (an image or pdf or word for example) and then displaying that image,pdf,word on an amx page.
    It is necessary i store these files in the local sqlite DB.
    Thanks,

    Hi,
    this is not really an ADF Mobile but a SQLite problem. So quickly Googling for it you find a couple of hints, for example
    http://stackoverflow.com/questions/6090170/cannot-save-image-as-blob-to-sqlite
    See if the provided solution works for you
    Frank

  • ADF Mobile: Apple App Store: Encryption Registration Number for Sqlite

    When submitting apps to Apple App Store, you have to declare whether or not your app uses encryption. This is for export compliance reasons. If you answer Yes, you need to provide an Encryption Registration Number (ERN). I assume that since the Sqlite DB in ADF Mobile is encrypted, I need to answer Yes. I've gotten a lot of differing opinions on this, but I'm looking for a definitive answer from either Apple or Oracle. Has anyone been through this already?
    Thanks

    Hi, Mike, here is our response on this question. First thank you for your inquiry around Apple AppStore’s Encryption Export question. The exact question from Apple’s iTunesConnect portal is “Have you added or made changes to encryption features since you last uploaded a binary for this product?”. While we will do our best to suggest an answer based on our understanding of the situation, ultimately any answer that relates to an Apple process or website needs to come from Apple.
    Our understanding of the question is that it pertains to the functionality or features of the application you developed using Oracle ADF Mobile and Apple iOS SDK, not to the capabilities of the development tools nor the framework. Furthermore, the question focus on changes between previous (there may be none) and current version of the application. Therefore, for the following scenarios:
    •     V1– no encrypted database nor secured SSL communication to the backend services.
    o     Based on our understanding of the question, the answer would be “No” as you have not added any encryption feature.
    •     V2 – adds encrypted local database and/or secured SSL communication to backend service
    o     Based on our understanding, the answer would be “Yes” as there are changes in the encryption features
    •     V3 – same database encryption and SSL communication as v2.
    o     Based on our understanding, the answer would be “No” as there is no change in the encryption features between v2 and v3.
    Hope this helps, and please let me know if you have any questions.
    Thanks,
    Joe Huang

  • ADF Mobile sample - palm simulator and jar problem

    Hello.
    I got a few problems with ADF mobile tutorial. (http://www.oracle.com/technology/products/jdev/101/tutorials/wireless/mobile2.html)
    1.     Palm Simulator has no web browser.
    As per description under ‘Prerequisites’ I downloaded the newest Palm Simulator (and some older version too). My Palm Simulator has no web browser. I found nothing how to add or enable web browser. In tutorial screenshots the Palm Simulator has always a browser.
    Where can I get a Palm Simulator with web browser or where can I get a free PPC Simulator for testing my application?
    2.     Incompatible jar-files.
    I’m using JDeveloper 10.1.3.0.4.3673. I think this is the newest version. Mobile.zip contains adf-faces-impl.jar and jsf-impl.jar. Both files have version 10.1.3.0.5. JDeveloper contains this files too. But version is 10.1.3.0.4! On starting oc4j I got an error with information about this version conflict.
    What is wrong on my environment? Did I miss important files? I found no newer ADF files at oracle web site. My solution is to replace the files in Mobile.zip with the older files from JDeveloper.
    With best regards
    C. Schmülling

    Hello Christian,
    The Palm simulator doesn't include a Web browser by default, You have to install it> Here is the URL where you can download the software: http://www.palmos.com/dev/tech/webbrowser/
    Concerning the jar-files it shouldn't be a problem. Just use the jar versions delivered with the Mobile.zip and it should run.
    Regards

  • ADF mobile : How to insert new rows in shopping cart application

    Hi All,
    I'm developing a shopping cart sample application.
    The first page shows 3 rows(with item and quantity columns) and "Add Row" & "save to shopping cart " buttons . On clicking add row button i want to add 4th row to the table  and on clicking "save" button all the items should add to cart.
    Can somebody tell me how to add dynamic rows in adf mobile and access the data in DC to save the data.
    Thanks,
    Prashanth.

    Are you talking about working with the local SQLite database on the device or with a remote database on the server?
    For local DB - check out the HR ADF Mobile sample.
    http://www.oracle.com/technetwork/developer-tools/adf/adf-mobile-samples-1865088.html

  • ADF mobile Data sync and sql lite usage

    Hi,
    We are working on ADF mobile POC.(Jdev version 11.1.2.3.0)
    Following Oracle mobile developer guide we generated "Webservice data control" which creates process(object) method to work with Webservice. We created the data-controls and used them in our Java code and are able to get the Webservice response also.
    However we want to implement the offline mode feature and for this we are not able to get any document reference for implementation.
    With offline mode support is it the application's responsibility to store the data locally using SQL Lite and do the data sync (using Web Service) OR will the framework would do the data sync automatically. Can someone please provide the implementation hint on how to do the Offline mode support in the mobile application using ADF.
    Thanks
    Pavan

    Hi,
    With offline mode support is it the application's responsibility to store the data locally using SQL Lite and do the data sync (using Web Service) OR will the framework would do the data sync automatically.
    This is all you. In this version of ADF Mobile there is no automatic data synchronization between local data and the server side. The sample that come with the ADF Mobile extension have a SQLLIte example as well, which is in the HR application. Look for the "DBConnectionFactory" file
    package application;
    import java.sql.Connection;
    import java.sql.SQLException;
    import oracle.adfmf.framework.api.AdfmfJavaUtilities;
    public class DBConnectionFactory {
        public DBConnectionFactory() {
            super();
        protected static Connection conn = null;
        public static Connection getConnection() throws Exception {
            if (conn == null) {
                try {
                    // create a database connection
                    String Dir = AdfmfJavaUtilities.getDirectoryPathRoot(AdfmfJavaUtilities.ApplicationDirectory);
                    String connStr = "jdbc:sqlite:" + Dir + "/HR.db";
                    conn = new SQLite.JDBCDataSource(connStr).getConnection();
                } catch (SQLException e) {
                    // if the error message is "out of memory",
                    // it probably means no database file is found
                    System.err.println(e.getMessage());
            return conn;
    }The LifeCycleListenerImpl class in the same demo shows how to use this SQL Lite connection
    package application;
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    import javax.el.ValueExpression;
    import oracle.adfmf.application.LifeCycleListener;
    import oracle.adfmf.framework.api.AdfmfJavaUtilities;
    public class LifeCycleListenerImpl implements LifeCycleListener {
        public LifeCycleListenerImpl() {
         * The start method will be called at the start of the application. Only the
         * Application Lifecycle Event listener will be called on start up.
        public void start() {
            System.out.println("!!!!!!!!!!!!!! App Start !!!!!!!!!!!!!!");
            //InitDB();
            try {
                Statement stat = DBConnectionFactory.getConnection().createStatement();
                ResultSet rs = stat.executeQuery("SELECT * FROM EMPLOYEES;");
            } catch (SQLException e) {
                // if the error message is "out of memory",
                // it probably means no database file is found
                System.err.println(e.getMessage());
                System.out.println("Database does not exist, creating it");
                InitDB();
            } catch (Exception e) {
                System.err.println(e.getMessage());
            System.out.println("!!!!!!!!!!!!!! Done App Start !!!!!!!!!!!!!!");
         * The stop method will be called at the termination of the application. Only
         * the Application Lifecycle Event listener will be called on start up.
         * NOTE: Depending on how the application is being shutdown, this method may
         * or may not be called. Features should save off their state in the deactivate
         * handler.
        public void stop() {
            // Add code here...
         * The activate method will be called when the feature is activated. The
         * Application Lifecycle Event listener will be called on application
         * being started and resumed.
        public void activate() {
            // Add code here...
         * The deactivate method will be called when the feature is deactivated. The
         * Application Lifecycle Event listener will be called on application
         * being hibernated.
        public void deactivate() {
            // Add code here...
        private void InitDB() {
            try {
                System.out.println("!!!!!!!!!!!!!!InitDB Start!!!!!!!!!!!!!!");
                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                InputStream is = cl.getResourceAsStream(".adf/META-INF/hr.sql");
                if (is == null) {
                    System.err.println("###### Could not look up : /META-INF/hr.sql");
                    return;
                BufferedReader bReader = new BufferedReader(new InputStreamReader(is));
                List stmts = new ArrayList();
                String strstmt = "";
                String ln = bReader.readLine();
                while (ln != null) {
                    if (ln.startsWith("REM") || ln.startsWith("COMMIT")) {
                        ln = bReader.readLine();
                        continue;
                    strstmt = strstmt + ln;
                    if (strstmt.endsWith(";")) {
                        System.out.println(strstmt);
                        stmts.add(strstmt);
                        strstmt = "";
                        ln = bReader.readLine();
                        continue;
                    ln = bReader.readLine();
                DBConnectionFactory.getConnection().setAutoCommit(false);
                for (int i = 0; i < stmts.size(); i++) {
                    Statement pStmt = DBConnectionFactory.getConnection().createStatement();
                    pStmt.executeUpdate((String)stmts.get(i));
                DBConnectionFactory.getConnection().commit();
                System.out.println("!!!!!!!!!!!!!!InitDB Done!!!!!!!!!!!!!!");
            } catch (Exception e) {
                e.printStackTrace();
    }Hope this is what you were looking for
    Frank

  • Saving Captured picture from ADF Mobile Application into Remote Database

    Hi,
    I am developing adf mobile application by using Device Demo Application from ADF Mobile Samples.I had deployed this application into Android mobile and capturing picture.
    My Question is how can i save this captured pictured into Remote Database.
    Could any one help on this!!!
    Thanks in advance!!
    Regards
    Amar
    Edited by: 973755 on Nov 28, 2012 7:46 AM
    Edited by: 973755 on Nov 28, 2012 7:47 AM

    Hi Joe,
    Thanks for the reply!!
    As per your instructions i created two classes 1.GetConnection.java and 2.PictureBean.java
    in GetConnection.java i written following code
    package Picture;
    import java.sql.Connection;
    import java.sql.SQLException;
    import oracle.adfmf.framework.api.AdfmfJavaUtilities;
    public class GetConncetion {
    public GetConncetion() {
    super();
    protected static Connection conn = null;
    public static Connection getConnection() throws Exception {
    if (conn == null) {
    try {
    // create a database connection
    String Dir = AdfmfJavaUtilities.getDirectoryPathRoot(AdfmfJavaUtilities.ApplicationDirectory);
    String connStr = "jdbc:oracle:thin:@fusion.networks.com:1521:fusion"+Dir+"/DeviceDemo.db" ;
    conn = new SQLite.JDBCDataSource(connStr).getConnection();
    System.out.println("connection*******"+conn);
    } catch (SQLException e) {
    // if the error message is "out of memory",
    // it probably means no database file is found
    System.err.println(e.getMessage());
    return conn;
    and in PictureBean.java the following code i modified..
    package Picture;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import oracle.adf.model.datacontrols.device.DeviceManager;
    import oracle.jdbc.pool.OracleDataSource;
    public class PictureBean {
    public PictureBean() {
    super();
    String src;
    private int quality = 25;
    private int destination = DeviceManager.CAMERA_DESTINATIONTYPE_FILE_URI;
    private int source = DeviceManager.CAMERA_SOURCETYPE_PHOTOLIBRARY;
    private boolean allowEdit = false;
    private int encoding = DeviceManager.CAMERA_ENCODINGTYPE_JPEG;
    private int targetWidth = 0;
    private int targetHeight= 0;
    public void setQuality(int quality) {
    this.quality = quality;
    public int getQuality() {
    return quality;
    public void setDestination(int destination) {
    this.destination = destination;
    public int getDestination() {
    return destination;
    public void setSource(int source) {
    this.source = source;
    public int getSource() {
    return source;
    public void setAllowEdit(boolean allowEdit) {
    this.allowEdit = allowEdit;
    public boolean getAllowEdit() {
    return allowEdit;
    public boolean isAllowEdit() {
    return allowEdit;
    public void setEncoding(int encoding) {
    this.encoding = encoding;
    public int getEncoding() {
    return encoding;
    public void setTargetWidth(int targetWidth) {
    this.targetWidth = targetWidth;
    public int getTargetWidth() {
    return targetWidth;
    public void setTargetHeight(int targetHeight) {
    this.targetHeight = targetHeight;
    public int getTargetHeight() {
    return targetHeight;
    public String GetSource(String result) {
    String src = "";
    if( getDestination() == DeviceManager.CAMERA_DESTINATIONTYPE_DATA_URL ) {
    src = "data:image/gif;base64,";
    src = src + result;
    System.out.println("src value in GetSource is "+src);
    return src;
    public void setSource(String result) {
    PictureBean pb1=new PictureBean();
    String src = "data:image/gif;base64,";
    if( getDestination() == DeviceManager.CAMERA_DESTINATIONTYPE_DATA_URL ) {
    src = "data:image/gif;base64,";
    src = src + result;
    public String GetSource(){
    return src;
    public boolean savePicture() throws Exception {       
    boolean ret=false;
    PictureBean pb=new PictureBean();
    String pic= pb.GetSource();
    try{
    Connection conn=GetConncetion.getConnection();
    conn.setAutoCommit(false);
    String insertSQL ="INSERT INTO IMAGE(ID,PIC) VALUES(?,?)";
    PreparedStatement pStmt = conn.prepareStatement(insertSQL);
    pStmt.setInt(1, 1);
    pStmt.setString(2,pic);
    pStmt.execute();
    conn.commit();
    ret = true;
    }catch (SQLException e) {
    System.err.println(e.getMessage());
    } catch (Exception e) {
    System.err.println(e.getMessage());
    return ret;
    and i created one button in Result.amx page and in Action Listener i had given #{bindings.savePicture.execute} and deployed into Android mobile.But i am neither getting error nor getting save picture into database.
    while i run PictureBean.java class alone the following exception occurred.
    "E:\ADF R2\jdk160_24\bin\javaw.exe" -client -classpath "C:\JDeveloper\mywork\DeviceDemo\.adf;C:\JDeveloper\mywork\DeviceDemo\ViewController\classes;E:\OracleJdbc\ojdbc14_g.jar;E:\OracleJdbc\ojdbc14.jar;E:\OracleJdbc\ojdbc.jar;C:\Users\Amar\Downloads\ojdbc6_g.jar;C:\Users\Amar\Downloads\ojdbc6.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-databinding-rt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;E:\ADF R2\oracle_common\modules\oracle.idm_11.1.1\identitystore.jar;E:\ADF R2\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar;E:\ADF R2\oracle_common\modules\groovy-all-1.6.3.jar;E:\ADF R2\oracle_common\modules\oracle.ldap_11.1.1\ojmisc.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\oracle-el.jar;E:\ADF R2\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;E:\ADF R2\oracle_common\modules\oracle.bali.share_11.1.1\share.jar;E:\ADF R2\modules\com.bea.core.apache.xercesImpl_2.8.1.jar;E:\ADF R2\modules\javax.activation_1.1.0.0_1-1.jar;E:\ADF R2\modules\javax.mail_1.1.0.0_1-4-1.jar;E:\ADF R2\modules\glassfish.jaxb_1.0.0.0_2-1-12.jar;E:\ADF R2\modules\javax.xml.bind_2.1.1.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adftransactionsdt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-dt-at-rt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adfdt_common.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adflibrary.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\db-ca.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\jdev-cm.jar;E:\ADF R2\oracle_common\modules\oracle.adf.security_11.1.1\adf-share-security.jar;E:\ADF R2\oracle_common\modules\oracle.adf.security_11.1.1\adf-controller-security.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adfsharembean.jar;E:\ADF R2\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;E:\ADF R2\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\bc4j-mbeans.jar;E:\ADF R2\oracle_common\modules\oracle.javatools_11.1.1\resourcebundle.jar;E:\ADF R2\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-api.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-common.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-ee.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-internal.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-manifest.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.jar;E:\ADF R2\oracle_common\modules\oracle.pki_11.1.1\oraclepki.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_core.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_cert.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_ws_sx.jar;E:\ADF R2\oracle_common\modules\oracle.iau_11.1.1\fmw_audit.jar;E:\ADF R2\modules\javax.security.jacc_1.0.0.0_1-1.jar;E:\ADF R2\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;E:\ADF R2\oracle_common\modules\oracle.mds_11.1.1\oramds.jar;E:\ADF R2\modules\javax.servlet_1.0.0.0_2-5.jar;E:\ADF R2\modules\javax.jsp_1.2.0.0_2-1.jar;E:\ADF R2\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;E:\ADF R2\oracle_common\jlib\commons-cli-1.0.jar;E:\ADF R2\oracle_common\modules\oracle.dms_11.1.1\dms.jar;E:\ADF R2\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;E:\ADF R2\oracle_common\modules\oracle.javacache_11.1.1\cache.jar;E:\ADF R2\oracle_common\modules\oracle.ucp_11.1.0.jar;E:\ADF R2\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;E:\ADF R2\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;E:\ADF R2\modules\javax.management_1.2.1.jar;E:\ADF R2\modules\javax.management.j2ee_1.0.jar;E:\ADF R2\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;C:\Users\Amar\Downloads\commons-codec-1.7-bin.zip;C:\Users\Amar\Downloads\commons-codec-1.7-src.zip;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\dvt-databindings-mds.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\dvt-databindings.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\dvt-facesbindings.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-api.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-impl.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-api-11.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-impl-11.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-dynamic-faces.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-changemanager-rt.jar;E:\ADF R2\oracle_common\modules\oracle.facesconfigdt_11.1.1\facesconfigmodel.jar;E:\ADF R2\oracle_common\modules\oracle.facesconfigdt_11.1.1\taglib.jar;E:\ADF R2\modules\glassfish.el_1.0.0.0_2-1.jar;E:\ADF R2\oracle_common\modules\oracle.jsf_2.0\jsf-api.jar;E:\ADF R2\oracle_common\modules\oracle.jsf_2.0\jsf-impl.jar;E:\ADF R2\modules\glassfish.jstl_1.2.0.1.jar;C:\Users\Amar\Downloads\jndi-properties.jar.zip;C:\Users\Amar\Downloads\jndi-1.2.1.jar.zip;C:\Users\Amar\Downloads\h2-1.3.149.jar.zip;C:\Users\Amar\Downloads\Android\h2-1.3.149.zip;C:\Users\Amar\Downloads\Android\android\app;C:\Users\Amar\Downloads\Android\android;C:\Users\Amar\Downloads\Android" -Djavax.net.ssl.trustStore=C:\Users\Amar\AppData\Local\Temp\trustStore7108102737679976193.jks Picture.PictureBean
    Source value is null
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/adfmf/framework/api/AdfmfJavaUtilities
         at Picture.GetConncetion.getConnection(GetConncetion.java:24)
         at Picture.PictureBean.savePicture(PictureBean.java:140)
         at Picture.PictureBean.main(PictureBean.java:189)
    Caused by: java.lang.ClassNotFoundException: oracle.adfmf.framework.api.AdfmfJavaUtilities
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         ... 3 more
    Process exited with exit code 1.
    i already imported AdfmfJavaUtilities package dont know why it showing exception.
    and while i am debugging the GetConnection.java value of 'Dir' is null.i am not getting what is the AdfmfJavaUtilities.ApplicationDirectory?
    Could you help on this!!
    Thanks & Regards
    Amar

  • While consuming Fusion CRM web service in ADF mobile throwing an error

    Hi,
    I am developing ADF Mobile using JDeveloper
    11.1.2.3 and consuming Fusion CRM ADF Web Services.
    While executing CRUD operations with these web services
    in ADF mobile app, I am getting SOAP response as *Error in getting response
    and got result nothing *.
    And also noticed as using JDeveloper ADF mobile App, unable to create URL service
    Data Control - REST based for FUsion CRM web services. Where as I am able to
    create SOAP based web services data control. It' strange or surprise.
    Did anyone face the above problems. Kindly let me know any suggestions or
    samples to the below contacts
    Regards
    Bhaskara Reddy S
    00919008466722
    bhaskara.sannapureddy at Crmit.com

    Dear Frank,
    Based on below links, Fusion CRM also supports REST also apart from regular SOAP Web Services.
    http://niallcblogs.blogspot.in/2012/10/204-calling-rest-service-from-fusion-crm.html AND
    http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e20388/F412758AN17B21.htm
    (For e.g one of linked in profile :http://www.linkedin.com/in/minalkhodani , many teams are developing using SOAP & REST)
    Designed and developed integration services using SOAP and REST web services for Oracle Fusion CRM Marketing Modules.)
    When creating URL based data control, getting an Error as "Forbidden" , (Does it mean NOT SUPPORTED??) . Kindly advice.
    I am calling WEB SERVICE thru SOAP in AMX PAGE code as below after creating Web Services Data Control from ADF Mobile UI thru JDeveloper IDE.
    == CODE SNIPPET OF AMX PAGE CALLING SOAP FUSION CRM WEB SERVICE =======
    <?xml version="1.0" encoding="UTF-8" ?>
    <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
    xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
    <amx:panelPage id="pp1">
    <amx:panelFormLayout id="pfl2">
    <amx:inputText value="#{bindings.name.inputValue}" label="Person First Name" id="it1"/>
    <amx:inputText value="300000001210220" label="Person Object Id" id="it2"/>
    </amx:panelFormLayout>
    <amx:facet name="header">
    <amx:outputText value="Create Person in Fusion CRM" id="ot1"/>
    </amx:facet>
    <amx:facet name="primary">
    <amx:commandButton id="cb1" text="Back" action="__back"/>
    </amx:facet>
    <amx:facet name="secondary">
    <amx:commandButton id="cb2"/>
    </amx:facet>
    <amx:panelFormLayout id="pfl1">
    </amx:panelFormLayout>
    <amx:outputText value="#{bindings.message.inputValue}" id="ot2"/>
    <amx:outputText value="#{bindings.code.inputValue}" id="ot3"/>
    *<amx:commandButton actionListener="#{bindings.createPerson.execute}" text="createPerson"*
    *disabled="#{!bindings.createPerson.enabled}" id="cb3"/>*
    <amx:iterator var="row" value="#{bindings.personParty1.collectionModel}" id="i1">
    <amx:panelLabelAndMessage label=" 300000001210220" id="plam2">
    <amx:outputText value="#{row.PartyId}" id="ot5">
    <amx:convertNumber groupingUsed="false"/>
    </amx:outputText>
    </amx:panelLabelAndMessage>
    <amx:panelLabelAndMessage label="#{bindings.name.inputValue}" id="plam1">
    <amx:outputText value="#{row.PersonFirstName}" id="ot4"/>
    </amx:panelLabelAndMessage>
    </amx:iterator>
    </amx:panelPage>
    </amx:view>
    Regards
    Bhaskara Reddy

  • ADF Mobile - insert data into oracle db from oracle adf mobile application

    Hi,
    I have to insert data from mobile into oracle database 11g(not in local sqlite database), can somebody tell me how to do it?
    Thanks,
    Anshul

    Hi, Anshul, one common way is to expose DB data as ADF BC, and then add a service interface on top of ADF BC. This would allow the ADF Mobile app to access server DB through ADF BC. There may be other mechanisms to access server-side DB - I think APEX also expose some REST interface to Oracle DB as well. Another option is to use TopLink - TopLink can also expose some REST services.
    Thanks,
    Joe Huang

Maybe you are looking for

  • Recording TV Shows directly from cable...

    With Windows Media Center, I was able to hook my cable up directly to my computer and record tv shows for later viewing. Am I able to do the same with Apple TV? Or does it only allow me to purchase tv shows?

  • To build dynamic SQL Query using some conditions: Pseudo code required

    Hi, I have a requirement where in i have to build a dynamic query based on one count. Some details on requirement: 1) It's a Proc where i need to return some columns 2) There are some fix set of columns 3) Based on one Count column, i have to decide

  • Running vbscript as os command

    Hi All, In a process chain, can I use a process type of OS Command to execute a vbscript (.vbs  file)? I tried this and it did not work. Was wondering if it's even possible to execute any thing other than a .cmd file. Thanks.

  • Ability to call selection profiles in planning book using popup box

    Hello does anyone know if it is possible to call a selection profile in a planning book using a popup box? i.e. perhaps using a macro ? Any help is greatly appreciated. Thanks Edited by: Ballance Agri-Nutrients on Feb 17, 2009 3:10 AM

  • Under Yosemite Spotlight doesn´t find my files

    Under Yosemite Spotlight doesn´t find my files on the computer and connected hard drives. What can I do?