Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ADF Mobile Client : PageBinding Error

761579May 20 2010 — edited May 21 2010
Hi all,

I have created a sample ADF Mobile client application with 2 screens. Page1 has a link to Page2. And, Page2 has a URL Data Control for a webservice, which is giving me an XML. I have in place the corresponding XSD in my Model Project too. Now, after deploying the app on BlackBerry / Windows Mobile, I am getting the following error on clicking the Link in Page1.

Am I missing something here?

Please find the corresponding stack trace as below:

initializing default resource loader
adding jar rep
oracle.adfnmc.bindings.dbf.BindingContext.get: [oracle.adfnmc.bindings.dbf.BindingContext.get] BindingContext cannot contain a key for: URLDataControl1, only keys declared in application metadata (*.cpx) are allowed.
[oracle.adfnmc.bindings.dbf.BindingContext.get] Error retrieving BindingContainer: 'mobmgr_mobile_AlertsPageDef'
at oracle.adfnmc.bindings.dbf.BindingContext.get(Unknown Source)
at oracle.adfnmc.bindings.dbf.InitializeBindingContainerVisitor.getDataControl(Unknown Source)
at oracle.adfnmc.bindings.dbf.InitializeBindingContainerVisitor.visit(Unknown Source)
at oracle.adfnmc.bindings.dbf.InitializeBindingContainerVisitor.visit(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.MethodAction.accept(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.PageDefNode.accept(Unknown Source)
at oracle.adfnmc.util.parse.Visitor.visitEach(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.PageDefVisitor.visit(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.Bindings.accept(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.PageDefNode.accept(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.PageDefVisitor.visit(Unknown Source)
at oracle.adfnmc.bindings.dbf.InitializeBindingContainerVisitor.visit(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.PageDefinition.accept(Unknown Source)
at oracle.adfnmc.bindings.xmlmetadata.PageDefNode.accept(Unknown Source)
at oracle.adfnmc.bindings.dbf.InitializeBindingContainerVisitor.populateBindingContainer(Unknown Source)
at oracle.adfnmc.bindings.dbf.BindingContainerImpl.initialize(Unknown Source)
at oracle.adfnmc.bindings.dbf.BindingContext.createAndInitBindingContainer(Unknown Source)
at oracle.adfnmc.bindings.dbf.BindingContext.get(Unknown Source)
at oracle.adfnmc.bindings.dbf.BindingContext.pageChanged(Unknown Source)
at oracle.adfnmc.app.UIModule.loadScreenId(Unknown Source)
at oracle.adfnmc.app.UIModule.showScreenId(Unknown Source)
at oracle.adfnmc.app.Navigation.execute(Unknown Source)
at oracle.adfnmc.component.ui.ExecuteActionHelper$NavigationRunner.run(Unknown Source)
at oracle.adfnmc.util.async.BackgroundWorker.doWork(Unknown Source)
at oracle.adfnmc.util.async.BackgroundWorker.doWork(Unknown Source)
at oracle.adfnmc.util.async.BackgroundWorker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Comments

Sdhamoth-Oracle

Hi,

Did you set TNS_ADMIN environment variable? If not, can you try after setting it?

Thanks,

Senthil

TheVenkster

Senthil:

What should it point to?

Anyway, I re-installed both the 64-bit Oracle DB and the 32-bit client. There are two sets of TNSNames.Ora, Listener.Ora and SQLNet.ora, one for the 64-bit and one for the 32-bit in their respective folders.

I have no problem creating an ODBC DSN for the 64-bit version. The link connects fine to the DB

I have two TNS Listeners defined, one for the 64-bit and one for the 32-bit. While the 64-bit uses Port 1521, I am using Port 1522 for the 32-bit; I also made sure that Listener.ora refers to the same port. But when I use Oracle Net Configuration Assistant to configure Local Net Service Name Configuration to test the Service, it says "TNS:listener does not currently know of the service requested in connect descriptor.

I did check that both the TNS Listener services are running.

venki

TheVenkster

Senthil:

I don't know what happened but now, everything works just as expected. I am able to attach Oracle DB tables to an Access database using ODBC. I am able to also connect to the DB using the 64-bit drivers.

Venki

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 18 2010
Added on May 20 2010
2 comments
758 views