Workshop 3.2 JPA Tutorial Problem
I think I must be missing a step in my setup/configuration. I've gone through the entire JPA tutorial that's packaged with Workshop Studio 3.2, and am now attempting to test with an Apache Tomcat 5.5 container as described in the directions.
When I attempt to add a customer from the pages/addCustomer.jsf page, I hit an exception in the CustomerDAO_Kodo.java class. Specifically, it's the emf.createEntitityManager() method, and the caught exception appears to be Kodo-related:
No product license key was found. Please ensure that your license key is specified in your configuration file (or in the "General" tab of your IDE''s configuration dialog), that the key has not expired, and that it is the correct key for the version of the product that you are running. If you need to request an evaluation key, please go to http://www.solarmetric.com, or contact [email protected]
Is there an additional step I need to take in order to have the license recognized from w/in my Tomcat server?
Regards,
-jmh
Please describe "...as well as several other places in the packaged application."?
What is the exact version of Tomcat? And what version of Java are you using to run the server?
Try this workaround and update the outcome:
- In Server view, delete the tomcat server configuration
- Recreate and add workshop-jpa-tutorial
- start the server in debug mode
FYI, Kodo license info can be specified in persistence.xml file or in license.bea file (which is placed at root of the classpath).
It is true that the license.bea mechanism used by Studio should work out of the box without any additional configuration.
License workaround:
register at http://www.solarmetric.com/login/login.php
activate & login into the account
http://www.solarmetric.com/Software/Evaluate/ - Click "Kodo JDO 3.4.1" and accept the license - NO NEED TO DOWNLOAD. AN EVALUATION LICENSE KEY WILL BE SENT TO YOUR EMAIL-ID
Open persistence.xml file and add the following property<property name="kodo.LicenseKey" value="<kodo.LicenseKey value>"/>
Try to run the app on tomcat serverNOTE:
Please zip up the tutorial and send it [email protected] to debug the issue.
Similar Messages
-
Kodo License for "Workshop JPA Tutorial" App
Folks,
Wish you a very Happy New Year!
If you run into Kodo license expiration (12/31/2006) with Workshop-JPA-Tutorial example application, please contact [email protected] for an extended license file.
Sorry for the inconvenience.
ThanksAlternatively, you can also obtain the license file by the following steps:
- Create a new Kodo 4.0 web project
- Copy the file from Kodo-4.0\src\license.bea and overwrite at workshop-jpa-tutorial\web\WEB-INF\src\java -
Hi
I've just started to code a small application using JPA, to be precise I've followed steps from http://schuchert.wikispaces.com/JPA+Tutorial+1+-GettingStarted and I get a strange error:
I made a test class:
package entity;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class PersonTest {
private EntityManagerFactory emf;
private EntityManager em;
@Before
public void initEmfAndEm() {
BasicConfigurator.configure();
Logger.getLogger("org").setLevel(Level.ERROR);
emf = Persistence.createEntityManagerFactory("examplePersistenceUnit");
em = emf.createEntityManager();
@After
public void cleanup() {
em.close();
@Test
public void emptyTest() {
}My persistence.xml looks as follows:
<persistence>
<persistence-unit name="examplePersistenceUnit"
transaction-type="RESOURCE_LOCAL">
<properties>
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.format_sql" value="false" />
<property name="hibernate.connection.driver_class"
value="org.hsqldb.jdbcDriver" />
<property name="hibernate.connection.url"
value="jdbc:hsqldb:mem:mem:aname" />
<property name="hibernate.connection.username" value="sa" />
<property name="hibernate.dialect"
value="org.hibernate.dialect.HSQLDialect" />
<property name="hibernate.hbm2ddl.auto" value="create" />
</properties>
</persistence-unit>
</persistence>While running the test I'm getting null pointer exception on line
em.close().
I've surrounded it with try-catch, and the stack-trace is:
java.lang.NullPointerException
at entity.PersonTest.cleanup(PersonTest.java:33)
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 org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
at org.junit.internal.runners.BeforeAndAfterRunner.runAfters(BeforeAndAfterRunner.java:65)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:37)
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)What did I do wrong?
Greetings
MichalIt seems I used some incompatible jars. I still don't know which ones was it, but I've solved it.
-
Adf ejb jpa persistance problem
Hi everyone,
I`m a newbie to adf technology.
I was trying Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces tutorial
([http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html])
I have a problem when I try to run it.
It says;
javax.ejb.EJBException: EJB Exception: ; nested exception is:
Exception [EclipseLink-4002|http://forums.oracle.com/forums/] (Eclipse Persistence Services - 1.0.1 (Build 20080905)): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00904: "EMAİL": geçersiz belirleyici (invalid identifier)
I thing it`s becouse I use a turkish operating system.
I tried to change the encoding settings to windows1252 intead of windows 1254 but same problem occures.
It makes the column EMAIL to EMAİL
Could you please help me abpout this problem?Hi,
can you print out the value that is received in the session facde to see where the conversion happens?
Frank -
ADF Tutorial: problem with chapter 10 (Deploying the Application)
Hi!
I'm learning from ADF Tutorial (http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/index.htm) and I have problem with chapter 10. After deploying finished application on the server (OracleAS10g) I try to test it but I get this error everytime:
500 Internal Server Error
Servlet error: An exception occured. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
I get this error after typing login credentials. I didn't consult the log, because I don't know where to look for it (could you tell me please?). I did everything as described in the Tutorial, but I know there are mistakes (in Tutorial), so I don't know what to do.
Thanks for any advices.Hi,
I'm running Windows XP, JDeveloper version 10.1.3.4.0, Oracle AS 10g version 10.1.3.4.0 with patch. When I tried to deploy same application on Windows Vista and OC4J, it work perfectly, which really confuses me. I think I found log file so I will post it here. It's long, I'm sorry about that:
09/01/23 16:07:07.62 SRTutorial: Servlet error
JBO-30003: Fond aplikace (oracle.srtutorial.datamodel.SRPublicServiceLocal) selhal při odhlášení modulu aplikace z důvodu následující výjimky:
oracle.jbo.JboException: JBO-29000: JBO-29000: Bad version number in .class file
Neplatná třída: oracle.srtutorial.datamodel.SRPublicServiceImpl
Zavaděč: SRTutorial.web.SRTutorial:0.0.0
Code-Source: /C:/OracleAS/j2ee/home/applications/SRTutorial/SRTutorial/WEB-INF/classes/
Konfigurace: WEB-INF/classes/ in C:\OracleAS\j2ee\home\applications\SRTutorial\SRTutorial\WEB-INF\classes
Závislá třída: oracle.jbo.common.java2.JDK2ClassLoader
Zavaděč: adf.oracle.domain:10.1.3.1
Code-Source: /C:/OracleAS/BC4J/lib/adfm.jar
Konfigurace: <code-source> in /C:/OracleAS/j2ee/home/config/server.xml
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1517)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1381)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
at oracle.adf.model.BindingContext.get(BindingContext.java:457)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)
at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
at oracle.adf.model.BindingContext.get(BindingContext.java:483)
at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)
at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)
at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:268)
at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Bad version number in .class file
Neplatná třída: oracle.srtutorial.datamodel.SRPublicServiceImpl
Zavaděč: SRTutorial.web.SRTutorial:0.0.0
Code-Source: /C:/OracleAS/j2ee/home/applications/SRTutorial/SRTutorial/WEB-INF/classes/
Konfigurace: WEB-INF/classes/ in C:\OracleAS\j2ee\home\applications\SRTutorial\SRTutorial\WEB-INF\classes
Závislá třída: oracle.jbo.common.java2.JDK2ClassLoader
Zavaděč: adf.oracle.domain:10.1.3.1
Code-Source: /C:/OracleAS/BC4J/lib/adfm.jar
Konfigurace: <code-source> in /C:/OracleAS/j2ee/home/config/server.xml
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1517)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1381)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
at oracle.adf.model.BindingContext.get(BindingContext.java:457)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)
at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
at oracle.adf.model.BindingContext.get(BindingContext.java:483)
at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)
at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)
at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:268)
at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
oracle.classloader.util.AnnotatedClassFormatError: Bad version number in .class file
Neplatná třída: oracle.srtutorial.datamodel.SRPublicServiceImpl
Zavaděč: SRTutorial.web.SRTutorial:0.0.0
Code-Source: /C:/OracleAS/j2ee/home/applications/SRTutorial/SRTutorial/WEB-INF/classes/
Konfigurace: WEB-INF/classes/ in C:\OracleAS\j2ee\home\applications\SRTutorial\SRTutorial\WEB-INF\classes
Závislá třída: oracle.jbo.common.java2.JDK2ClassLoader
Zavaděč: adf.oracle.domain:10.1.3.1
Code-Source: /C:/OracleAS/BC4J/lib/adfm.jar
Konfigurace: <code-source> in /C:/OracleAS/j2ee/home/config/server.xml
at oracle.classloader.PolicyClassLoader.findLocalClass (PolicyClassLoader.java:1462) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.SearchPolicy$FindLocal.getClass (SearchPolicy.java:167) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.SearchSequence.getClass (SearchSequence.java:119) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1674) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [C:/OracleAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@12700959]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName (JDK2ClassLoader.java:38) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.JBOClass.forName (JBOClass.java:164) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.JBOClass.findCustomClass (JBOClass.java:177) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML (ApplicationModuleDefImpl.java:836) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML (ApplicationModuleDefImpl.java:770) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.MetaObjectManager.loadFromXML (MetaObjectManager.java:534) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject (DefinitionManager.java:579) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.findDefinitionObject (DefinitionManager.java:441) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.findDefinitionObject (DefinitionManager.java:374) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.mom.DefinitionManager.findDefinitionObject (DefinitionManager.java:356) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.MetaObjectManager.findMetaObject (MetaObjectManager.java:700) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject (ApplicationModuleDefImpl.java:232) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule (ApplicationModuleImpl.java:401) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.server.ApplicationModuleHomeImpl.create (ApplicationModuleHomeImpl.java:91) [C:/OracleAS/BC4J/lib/bc4jmt.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule (DefaultConnectionStrategy.java:139) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule (DefaultConnectionStrategy.java:80) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource (ApplicationPoolImpl.java:2468) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.pool.ResourcePool.createResource (ResourcePool.java:536) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule (ApplicationPoolImpl.java:2094) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout (ApplicationPoolImpl.java:1961) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule (ApplicationPoolImpl.java:2793) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule (SessionCookieImpl.java:453) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule (HttpSessionCookieImpl.java:233) [C:/OracleAS/BC4J/lib/adfmweb.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule (SessionCookieImpl.java:424) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule (SessionCookieImpl.java:419) [C:/OracleAS/BC4J/lib/bc4jct.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule (DCJboDataControl.java:1517) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest (DCJboDataControl.java:1381) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCDataControlReference.getDataControl (DCDataControlReference.java:99) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.get (BindingContext.java:457) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCUtil.findSpelObject (DCUtil.java:280) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCUtil.findSpelObject (DCUtil.java:248) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCUtil.findContextObject (DCUtil.java:383) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCIteratorBinding.<init> (DCIteratorBinding.java:127) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.uicli.binding.JUIteratorBinding.<init> (JUIteratorBinding.java:60) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding (JUIteratorDef.java:87) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding (JUIteratorDef.java:51) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding (DCIteratorBindingDef.java:277) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerDef.createExecutables (DCBindingContainerDef.java:296) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer (DCBindingContainerDef.java:425) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer (DCBindingContainerReference.java:54) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer (DCBindingContainerReference.java:44) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.get (BindingContext.java:483) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.findBindingContainer (BindingContext.java:313) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingContext.findBindingContainerByPath (BindingContext.java:633) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingRequestHandler.isPageViewable (BindingRequestHandler.java:268) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.BindingRequestHandler.beginRequest (BindingRequestHandler.java:169) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at oracle.adf.model.servlet.ADFBindingFilter.doFilter (ADFBindingFilter.java:161) [C:/OracleAS/BC4J/lib/adfm.jar (from <code-source> in /C:/OracleAS/j2ee/home/config/server.xml), by adf.oracle.domain:10.1.3.1]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:621) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:370) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:871) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:453) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest (HttpRequestHandler.java:221) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:122) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:111) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303) [C:/OracleAS/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\OracleAS\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06] -
I'm just getting started with Flash and thought I'd work
through the tutorials included in the programs help. The tutorial
I'm stuck on is called: Creating Graphics - Applying Gradients. The
section I'm stuck on is Create a transform gradient with a shape.
I'm having problems applying the radial gradient—either
it doesn't work at all or applies to the fill but not the stoke.
This leads me to the question of what stroke and fill settings I
should have set up—after all I don't really want a stroke! Is
this oval shape drawn with object drawing turn't on or something?
I've looked at the completed .fla file and this shadow oval
shape seems to be a group. Has the person who created it grouped
the stoke and the fill or what? Which ever way the shape is
created, it doesn't say anything in the tutorial about how it
should be selected to apply the radial gradient! Surely it needs to
be selected somehow? Because when I try to apply the radial
gradient nothing happens!
Please can somebody help me figure this out—it's really
bugging me!rename your gallery to something other than galleryinprogress.swf, say gallery.swf.
in flash create a new fla named galleryinprogress.fla with the same stage size and background color as your previous galleryinprogress.swf and attached to frame one of your new galleryinprogress.fla add:
var tf:TextField = this.createTextField("tf",1,0,0,100,40);
tf.autoSize = "center";
tf._x = Stage.width/2;
tf._y = Stage.height/2;
this.createEmptyMovieClip("mc",1);
mc.loadMovie("http://homepage.mac.com/nakean/.Public/swf/gallery.swf");
preloadI=setInterval(preloadF,100);
function preloadF(){
tf.text=mc.getBytesLoaded() +" bytes loaded out of "+mc.getBytesTotal()+" bytes total.";
if(mc.getBytesLoaded()>0&&mc.getBytesLoaded()>=mc.getBytesTotal()){
clearInterval(preloadI);
tf.removeTextField();
publish your new galleryinprogress.swf and upload to the same directory as your previous (but now renamed) galleryinprogress.swf. -
Flash 8 Actionscript Tutorial problem
I have followed the following instructions to the letter
(several times) but the button script won't activate a URL and I
get an error message from Flash 8 which I'll show after this:
1.Select the invisible button on the Stage.
Open the Property inspector (Window > Properties), and
find the Instance Name text box in the Property inspector.
Type inv_btn into the Instance Name text box.
Select Insert > Timeline > Layer to insert a new layer,
and then rename the new layer to actions.
Open the Actions panel (Window > Actions), and then select
Frame 1 of the actions layer.
Type the following ActionScript into the script pane (the
editable text field) in the Actions panel:
inv_btn.onRelease = function(){
getURL("
http://gnome.deseloper.com",
"_blank");
This does not work. Here is the error message:
**Error** Scene=Scene 1, layer=button, frame=1:Line 1:
Statement must appear within on handler
inv_btn.onRelease = function(){
As this script was copied directly from the tutorial text,
and I have never scripted anything before, I am at a loss to
explain this or how to make it work. Can anyone help me?I'll approach this from the opposite end... replace the code
you have with:
on(release){
getURL("
http://gnome.deseloper.com",
"_blank");
If that works, then the problem is that you didn't put the
code where the instructions you show indicated you should. For what
you did, the code I just showed is appropriate (though not a good
practice because it is hidden from easy review). It's better to
keep your code in the timeline where it can be easily found.
You will have selected the button and then typed the code in
the actionscript editor. Instead, you need to
click on the frame in the (separate) actions layer in the
main timeline that you should have made already, not the button
layer, and then place that code from the tutorial in the
actionscript editor window. -
Oracle SOA 11g TP3 - Tutorial problem
Hello!
I am quite new to this whole platform, and while I was following the First step of the tutorial, I ran into a problem, which I have no idea how to solve.
(this tutorial: http://download.oracle.com/otndocs/products/soa/105-end2end-PO-Processing.zip )
As it said I installed the prerequisites,
an Oracle database,
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
the Oracle SOA Suite 11g TP3,
as well as jDeveloper 11.1.1.0.0
After I successfully created and successfully deployed the 'CreditCardValidation Application' following the steps in 105-end2end-PO-Processing_2.pdf (part of the zip, but it's basically a database adapter a mediator and an exposed web service packed together) and I tried to test it, i got this error:
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode
xmlns="">env:Server</faultcode>
<faultstring
xmlns="">null: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'OracleXESelect' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: No suitable driver Error Code: 0. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </faultstring>
<faultactor
xmlns=""/>
<detail
xmlns="">
<exception/>
</detail>
</env:Fault>
</env:Body>
</env:Envelope>
If I understand it correctly, the core of the problem is this:
java.sql.SQLException: No suitable driver Error Code: 0.
now if this is the problem, how to solve it?
Ideally I would start by looking at the configurations of Toplink, but I didn't install Toplink, as such I have no idea where these options are.. (Is it part of the database in this current configuration?)
Thanks in advance!
MikeActually, the tutorial works fine in this version, all the way through. Specifically, the database adapter is working.
The problem you are having has been discussed on this forum. You should do this:
sqlplus sys/system@XE as sysdba
SQL> show parameter session
SQL> show parameter processes
SQL> alter system set sessions=100 scope=spfile;
SQL> alter system set processes=150 scope=spfile;
SQL> shutdown immediate
SQL> startup
SQL> show parameter session
And restart your server. That should fix it. Some people have also restarted Windows.
Heidi. -
ADF 11 - Oracle Developer Day 28.05.2009 Online Tutorial Problem/Bug
Hello
I've downloaded the tutorial [http://events.unisfair.com/index.jsp?eid=394&seid=28] for the Developer Day scheduled for the 28.05.2009. [http://events.unisfair.com/index.jsp?eid=394&seid=28]
I've completed the tutorial and discovered what would seem to be a bug.
I've reproduced the problem in a new simpler application.
Its a bit long but here we go.
The situation is :
Two panel splitters one inside the other, one vertical split and one horizontal split dividing the screen into a 3 parts, a left column and a right column split into a top and a bottom.
ADF BC have been created using the Departmetns and Employees tables from the HR schema.
In the left column there is an adf read only form bound to Departments with navigation controls.
On the right at the top there is a read only table (with row selection) bound to the Employees view in the Departments view (master-detail)
On the right at the bottom there is a form bound to the Employees view in the Departments view (master-detail)
Using the left column read only form I navigate to Department 50 which has employees 120 to 199.
The Employees af:Table shows employees 120 to 191 without scrolling.
Using the scroll bar on the employee table I scroll to the bottom of the employees table (now employees 128 to 199 are showing)
I then select on employee 198
The form at the bottom right correctly positions on employee 198 however the employee table re-positions on employee 190 !
Using the scroll bar I scroll to the bottom of the employees table (now employees 128 to 199 are showing)
Employee 198 is selected.
I select employee 199
The form at the bottom right correctly positions on employee 199 however the employee table re-positions on employee 191 !
I repeat the same process but selection employee 193
The form at the bottom right correctly positions on employee 193 however the employee table re-positions on employee 185 !
It would seem that the employee table scrolls up the exact number of rows that need to be scrolled down in order to show the last table row.
Added to that when the tabel re-positions it would seem to be re-fetching its data...
Can anybody explain what's going on or confirm the above observations?
Regards
PaulHi,
there is an attribute "displayRow" on the table to set what should be shown after refreshing the table. Set this to "selected"
Frank -
Hi everybody,
I try to do the tutorial for "Using EJBs in Web Dynpro".
[Link to Tutorial|/docs/DOC-8061#20 [original link is broken]]
But on page 14 I got problems.
I have to implement the constructor that throws an exception called "CreateException". But this cannot be resolved from my NWDS. I tried it with organizing imports but nothing happened so I tried to import the class manually with the coding
import javax.ejb.createexception;
It failed again. I think the library for this is missing. Anybody did the tutorial and solved the problem?
I am using NWDS 7.1 SP1 with SAP ehp 1.
Thx for any help.Hi Gunter,
thx for your answer but I didn't understand it. Where did you find the point "used DC"? Can you send me a screenshot?
Link with E-Mail-Address
[http://forums.sdn.sap.com/profile.jspa?userID=3821530]
Thx a lot -
Toplink JPA Deployment problem in OC4J
Hi all ,
we are having problem in deployment for an toplink JPA program in OC4J 10.1.3 .. We are using toplink essesntial and our deployed EAR structure is
aaplication.xml
rmwtoplink.war
the content of application.xml is as
<display-name>rmwtoplink</display-name>
<module>
<web>
<web-uri>rmwtoplink.war</web-uri>
<context-root>rmwapplist</context-root>
</web>
</module>
the content of war file as below :
web-inf\web.xml
web-inf\classes\META-INF\persistence.xml
web-inf\classes\<classes>
web-inf\gnf\<jsp pages>
when ever a pages are called those do not use entity manager / jpa call are loading perfectly , but the pages which have used jpa are nt diplayed , we check the error messages , it just halts after following codes :
EntityManagerFactory emf =
Persistence.createEntityManagerFactory(jpaSource);
It seems there is no exception that is even thrown in page or opmn log .
The same program is running fine in Jdveloper 10.1.3 /
Is there any way where we can get the actual error message ?
we are using toplink.jdbc.url for connecting the database .Here is little more insight for the problem , further check reveals that :
start connecting rmwtest
exception occured for connection test , Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
The Connection descriptor used by the client was:
//localhost:1521/ORCL
we do not have any idea how is localhost:1521/ORCL picked up , in our persistence.xml we have
where as rmwtest defined in persistence.xml as
<persistence-unit name="rmwtest" transaction-type="RESOURCE_LOCAL">
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<class>rmw.gnf.entity.ServSesnUser</class>
<class>rmw.gnf.entity.RmwData</class>
<class>rmw.gnf.entity.GnfData</class>
<properties>
<property name="toplink.logging.level" value="FINEST"/>
<property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="toplink.jdbc.url" value="jdbc:oracle:thin:@middb.1dc.com:1621:ukdbins"/>
<property name="toplink.jdbc.user" value="****"/>
<property name="toplink.jdbc.password" value="********"/>
</properties>
</persistence-unit> -
TopLink JPA join problems.
I need a bit of help here, I hope someone can give me a few pointers...
I've been building out an Object Relational mapping in TopLink using the bean-style interfaces. On one of my objects I have a 1:M relationship to another table, so
One Key in T1 -> >1 Keys in T2.
Pretty simple really. I'm doing it like this:
@JoinTable( name=, etc. etc.)
private Set<ObjectForTable2> variableName.
When I call the getVariableName() method, I get back an IndirectSet (as a set) from the method as expected; however, the size of this set is either 0 or 1.
In Table 2 I have approximately a dozen rows which correspond to the join key, and when I run the query toplink is building in my SQL shell, I get back the dozen rows. When TopLink does it, I only get to see the first row. Is there some other trick I need to use with the set returned? Right now when I call mySet.size() on the Set returned from getVariableName() I get a size of 1 or 0. (I only get 0 if I change the key to one that does not exist in table 2.)
if I use the iterator method, such as
for ( final Iterator i = mySet.iterator(); i.hasNext(); ) {
ObjectForTable2 myObj = (ObjectForTable2)i.next();
System.out.println( myObj.getXXX() );
I still only get one result out. Help! What am I doing wrong here? Do I need to configure something to pull back more than one record from the database?
Also, how does one use the Oracle bugtracker for this open-source product, if I don't have a service contract?
Thanks,
RobbieExactly.
In TopLink (and in JPA in general) you need identify the field, or combination of fields that are used to uniquely identify entities. As Doug mentioned, it is most common that these fields are the PK of the database.
Based on your response above I assume that you had a non unique field mapped as the PK of the enitity. This could cause the trouble you are experiencing. Mapping the pk to a unique field (or combination of fields) will likely solve this problem. -
JDeveloper BC4J Programmatic Client Tutorial Problem
I have searched everywhere, but cannot find a correct working solution for this problem.
Description:
I am running the tutorials found under:
Help Menu -> Help Topics -> Tutorial
I can get several tutorials to work, but I am stuck on the tutorial titled:
"Business Components Programmatic Client Tutorial".
The BC4J Standalone Client tutorial is giving me this error after completing Step 3:
oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /OnlineOrders/common/bc4j.xcfg in the classpath
There is no information regarding how to correctly configure the classpath or fix this problem.
I am using JDeveloper 9i RUP7 at the Oracle Support site Knowledgebase 416708.1 for Release 11i:
https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=8751878
My OS is Windows XP
How can this this be resolved, so that I can successfully create a BC4J client in JDeveloper?
Thanks in advance for any help
Edited by: user8115477 on Apr 26, 2010 7:28 AMThanks for clarifying that the package should have multiple names / hierarchy.
I encountered the problem because the JDeveloper9i BC4J tutorial suggested one-level name.
Eventually, I made changes similar to what you suggested, and now I can get the program tutorial to work.
I was able to get the tutorial running by manually changing the package name as below:
Tutorial Suggests:
"OnlineOrders"
What I did:
Gotta have two-levels deep, so I entered "OnlineOrders.bc4j" instead.
Then, I replaced all instances of "OnlineOrders" with "OnlineOrders.bc4j"
This includes updating the code that must be copy-pasted into the Batch Client.
Update all calls of "OnlineOrders.appName" to "OnlineOrders.bc4j.appName" etc... etc...
I will mark this item as answered, since my OP question was answered. -
In another tutorial I get the following compile error:
Error /tutorials/tutorial2.mxml
A file found in an source-path must have the same package
structure '',
as the definition's package, 'samples.contact'.
There is a file called Contact.as, but I don't know where it
should be
located to be in a flex classpath.
The file tutorial2.mxml contains the line:
import samples.contact.Contact;
Anybody know how to solve this problem?
DougYes you are right I think (can't be absolutely certain as I
still have
an error). Adding the mxml files to a correctly defined
project (see
below) gets rid of the error I had before.
I am confused though about the difference between a project
and a package.
I have found that if I use the same name for an mxml file in
different
projects, any errors that occur in either file are all shown
in the
problems panel when either file is selected, and neither will
run. Both
generate a page can't be found error e.g. tutorial1.html
cannot be found
(followed by the location) whereas I can see that this file
definitely
does exist at this location. Deleting either of the files
allows the
other to run correctly.
In the project definition, I had to change from the default
server
(default\flex) to default\samples - I think this is what the
tutorial
writer means when he talks about a 'samples web application'.
For anyone else trying to follow these tutorials:
Put the Contact.as file into a contact folder in the
default\samples
directory and then in that file and any other mxml file where
it is
mentioned, change samples.contact.Contact to just
contact.Contact.
However, I still have an error:
In the completed1.mxml file downloaded from MM, there is the
following code:
public function changeHandler(event:ObjectEvent)
log.text = noteProxy.noteText;
This generates the error:
Type was not found or was not a compile-time constant:
ObjectEvent
I think this tutorial was written for an earlier beta and has
not been
amended to reflect the changes in later betas. It looks as
though there
is no longer a type called ObjectEvent in beta3. Does anyone
know what
this should be changed to?
Doug -
Converter sample from J2EE Tutorial problem
Hello all,
I have built the ConvertApp using the J2EE as shown in the J2EE (which I highly recommend by the way --on-line or book version), but am getting the following error:
(from Verifier log file):
FAILED TESTS :
Test Name : tests.web.elements.WebEjbReferencesElement
Test Assertion : Web archive references to other beans homes test
Test Description : Error: Class [ ConverterHome ] not found in WEB-INF/classes or WEB-INF/lib.
For [ /ConverterWAR ]
Error: class [ ConverterHome ] cannot be found within this jar [ ConverterWAR ].
Error: Class [ Converter ] not found in WEB-INF/classes or WEB-INF/lib.
For [ /ConverterWAR ]
Error: class [ Converter ] cannot be found within this jar [ ConverterWAR ].
======
I'm running Windows 2K (I did see a similar problem someone was having under '98) and I know this tutorial works under W2K. I also have confirmed all my environmental variables are correct.
I am noticing that under the \j2eetutorial\examples\src\ejb\converter directory that I have a number of temp files (intermediate?). Specifically, if I use the Deploytool and select the ConverterApp in the tree view, I see three filenames that appear in the Contents window under the META-INF section:
app-client-ic.jar
ejb-jar-ic.jar
war-ic.war
Well, the temp files look like this (for example):
app-client-temp21282.jar
ejb_temp21276.jar
web_temp21293.war
I don't know if this means anything or not, as I seem to be getting the .ear, .war and .jar files when I deploy the ConverterApp without a problem.
If I try to run the Client from the \j2eetutorial\examples\src\ejb\converter directory using the runclient command, I get the following:
Application threw an exception:java.lang.NoClassDefFoundError: ConverterHome
The tutorial has a specific reference to this (p.43 in book) indicating a problem in the ConverterApp.jar file. I've undeployed, deleted ear, war, jar and temp files, and recompiled with ant (twice), thinking I must have skipped a step somewhere, but to no avail.
Both these problems look suspiciously like environment or path issues, but I cannot see anything obviously wrong. I confirmed that I do have a ConverterHome.class file in the C:\j2eetutorial\examples\build\ejb\converter directory too.
Has anyone seen this before who can share how to fix the issue?
Thanks for the help!
JonI have the same problem when trying to run 'Converter' example on Sun Deployment tool.
When I tried to use verifier for the ConverterApp I got the following message
"Error: Class [ ConverterHome ] not found in WEB-INF/classes or WEB-INF/lib.
For [ /ConverterWAR ]
Error: class [ ConverterHome ] cannot be found within this jar [ ConverterWAR ].
Error: Class [ Converter ] not found in WEB-INF/classes or WEB-INF/lib.
For [ /ConverterWAR ]
Error: class [ Converter ] cannot be found within this jar [ ConverterWAR ]."
When I tried to run the client app using the runclient command I got the
following message
"C:\j2eeDeployPractice\src\ejb\converter\runclient -client converter.ear -name converterClient -testauth
No application client desriptors defined for: converterClient"
Note: I was able to run the web client successfully when
using this URL: "http://localhost:8000/converter/index.jsp"
Any idea how to fix those error message is grealy appreciated.
KH
Maybe you are looking for
-
How to schedule a sql query on Windows
Hi Experts; I got a sql query that I need to put on schedule, (on windows) in order it runs everyday at specific time. I got the query, but I want to know the next: How to invoke SQLPlus from this query? Explain how to include the user/password@SID D
-
HT201209 Can two iphones use the same itune gift card?
My husband and I are new to iphones, and would like to purchase one itunes gift card and both use it on our iphones. I have an apple id set up, he does not yet have one. Can we share an itunes account if we have different apple id's?
-
I have restarted my ipod touch a countless amount of times, and it is stuck on a screen. on the screen it says, "ipod is disabled, connect to itunes". i have also tried connecting it to itunes, and itunes says i have to type my passcode in for it to
-
Does Adobe have actual support for their products?
Or does Adobe actually rely on these forums and/or for the customer figure things out for themselves? First issue is that all video playback within Premiere CS6 stopped working ( periodically it works for a few days then stops again) . After trying a
-
hello, the scenario is my client has one co. code but they have four plants so they want the accounting reports of customer and vendor plant wise which is not possible on accounting basis but possible on sales and purchasing basis. this is because ma