JDBC in Eclipse
Hi,
I�m trying to create my first application using JDBC in eclipse. Even I know the language used to create and manipulate tables, I�m having some difficults to acess the driver
I tried this(I saw in the tutorial):
public void stabilishConection()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:file");
catch(Exception e)
System.out.println(e.getMessage());
}I�m usgin Eclipse 3.0 and I didn�t download any driver. When I type sun.jdbc and press ctrl+c, it shows the address that I put in Class.forName(). Though, when I run the program it always throws the exception...
Also, I�d like to know if the file in the getConnection is created automatically or not....
m using Eclipse 3.0 & now i written one programm that
is interract with JDBC API and It is loading
Type1(sun.jdbc.odbc.JdbcOdbcDriver) ,I want to
connect to Oracle 8i. When m executing the programm,
It is giving exceptions as
sun.jdbc.odbc.JdbcOdbcDriver is not existed.That driver is a part of the JDK libraries.
I did't attached any JAR files. Please give the
the stps & attachements of JAR files to work with
Eclipse3.0, M using JDK1.5I would suggest you to use the Oracle thin driver and attach the JAR for that to your project. The Type 1 JDBC-ODBC driver has some limitations.
Similar Messages
-
JDBC-Connection in SQL-Developer via Connection-Manager gives ORA-12529
Hi !
This is a followup of this Thread: https://community.oracle.com/thread/3568462
I have the same problem but I have ConnectionManager 11g (11.2.0.1.0) , which doesn't know the setting for AUTHENTICATION_LEVEL=0
And I have to use JDBC, so the OCI/Thick-driver is no option for me.
The same error is raised when I use JDBC with Eclipse,...
SQL-Plus over the Connection-Manager works without any problems.
The ruleset of my cman.ora is:
(rule_list=
(rule=
(src=*)(dst=*)(srv=*)(act=accept)
(action_list=(aut=off)(moct=0)(mct=0)(mit=0)(conn_stats=on))
The error is:
Listener refused the connection with the following error:
ORA-12529, TNS:connect request rejected based on current filtering rules
Anyone got jdbc-connections over ConnectionManager 11g+ running?
CharlyUsing Windows XP/Vista...
After testing in our environment, it appears that SQL Developer 1.5.1 (5440) does in fact ignore the TNS_ADMIN environment variable and ONLY looks in the Oracle Home directory (network/admin). We define a central network location for our tnsnames file and have the tns_admin setup to point there instead of locally for our users.
When selecting to add a new connection (in 1.5.1, it works in previously releases... meaning 1.2.something) and selecting TNS, the drop-down remains empty. However, if I exit SQL Developer and then copy the tnsnames file to the local network/admin directory I can then re-launch SQL Developer and the drop-down is populated. Exiting SQL Developer again, deleting the local copy of tnsnames, and then launching SQL Developer yet again results in the drop-down being empty.
All other Oracle-related applications function as expected (as they have for years) using the TNS_ADMIN environment variable.
Any suggestions/ideas? -
Enhancer fails in Eclipse, ClassCastException
I have followed the Eclipse / WebSphere Studio Integration instructions
(in Developer's Guide).
When I select the package.jdo file for enhancement, the enhancer fails and
Eclipse logs the following:
!ENTRY kodo 4 0 2005-04-10 22:30:06.968
!MESSAGE The Enhancer failed. The message included was:
{0}
!STACK 0
java.lang.ClassCastException
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at serp.xml.XMLFactory.checkSAXCache(XMLFactory.java:217)
at serp.xml.XMLFactory.getSAXParser(XMLFactory.java:66)
at
com.solarmetric.meta.XMLMetaDataParser.parseNew(XMLMetaDataParser.java:359)
at
com.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:325)
at
com.solarmetric.meta.ClassArgParser.getFromMetaData(ClassArgParser.java:182)
at
com.solarmetric.meta.ClassArgParser.parseClassNames(ClassArgParser.java:98)
at
com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:74)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2657)
at
kodo.jdbc.integration.eclipse.EnhancerAction.handleFiles(EnhancerAction.java:27)
at
kodo.jdbc.integration.eclipse.AbstractMetadataAction.run(AbstractMetadataAction.java:63)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:244)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:220)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:557)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:507)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:421)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2908)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2541)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
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:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
I use Eclipse 3.1.0 and Kodo JDO 3.3.1.
Can anyone explain to me why this occurs?
Best regards
JarlThank you, now everything works as expected.
(A also removed references to these files in relevant plugin.xml file.)
Can you tell me why it was neccessary to remove these files?
Stephen Kim wrote:
You may want to try removing xalan.jar, xml-apis.jar, and xercesImpl.jar
from Kodo Eclipse plugin directory.
Circula wrote:
I have followed the Eclipse / WebSphere Studio Integration instructions
(in Developer's Guide).
When I select the package.jdo file for enhancement, the enhancer fails and
Eclipse logs the following:
!ENTRY kodo 4 0 2005-04-10 22:30:06.968
!MESSAGE The Enhancer failed. The message included was:
!STACK 0
java.lang.ClassCastException
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at serp.xml.XMLFactory.checkSAXCache(XMLFactory.java:217)
at serp.xml.XMLFactory.getSAXParser(XMLFactory.java:66)
at
com.solarmetric.meta.XMLMetaDataParser.parseNew(XMLMetaDataParser.java:359)
at
com.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:325)
at
com.solarmetric.meta.ClassArgParser.getFromMetaData(ClassArgParser.java:182)
at
com.solarmetric.meta.ClassArgParser.parseClassNames(ClassArgParser.java:98)
at
com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:74)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2657)
at
kodo.jdbc.integration.eclipse.EnhancerAction.handleFiles(EnhancerAction.java:27)
at
kodo.jdbc.integration.eclipse.AbstractMetadataAction.run(AbstractMetadataAction.java:63)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:244)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:220)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:557)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:507)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:421)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2908)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2541)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
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:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
I use Eclipse 3.1.0 and Kodo JDO 3.3.1.
Can anyone explain to me why this occurs?
Best regards
Jarl
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Kodo 4.0/ Eclipse Plugin problems
Hi,
I have added Kodo plugin (2.1.0) to Eclipse (3.1.1) plugin folder as
described in the manual. I've also copied all the Kodo libraries and
classes12.jar into Eclipse\plugins\kodo.eclipse_2.1.0 and modified
plugin.xml.
I can see the menu item "Kodo" in Eclipse, but I can't start the Kodo
preferences under Windows->Preferences. Following Error:
Plug-in kodo was unable to load class
kodo.jdbc.integration.eclipse.KodoPlugin.
Does anyone have an idea?
Thanks,
Ingo SchneiderSchneider wrote:
Hi,
I have added Kodo plugin (2.1.0) to Eclipse (3.1.1) plugin folder as
described in the manual. I've also copied all the Kodo libraries and
classes12.jar into Eclipsepluginskodo.eclipse_2.1.0 and modified
plugin.xml.
I can see the menu item "Kodo" in Eclipse, but I can't start the Kodo
preferences under Windows->Preferences. Following Error:
Plug-in kodo was unable to load class
kodo.jdbc.integration.eclipse.KodoPlugin.
Does anyone have an idea?
Thanks,
Ingo SchneiderI use http://www.eclipse.org/dali plugin for EJB3-persistence. It allows
me to have different EJB3 vendors. KODO was ok for me to work with. -
Kodo 3.1.12 and Eclipse
Hi,
I have added Kodo plugin to Eclipse (version 3) . I have added Kodo
enhancer to Build sequence for the project. However when I run build I get
an error and eclipse log file has following exception:
ava.lang.NoClassDefFoundError: org/apache/log4j/Category
at
com.solarmetric.log.Log4JLogFactory.newLogAdapter(Log4JLogFactory.java:19)
at com.solarmetric.log.LogFactoryAdapter.getLog(LogFactoryAdapter.java:25)
at
com.solarmetric.conf.ConfigurationImpl.getLog(ConfigurationImpl.java:115)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2168)
at
kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:198)
at
org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:182)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
I have copied the log4j jar to kodo plugin directory and added libarary
tag to plugin.xml as following:
<library name="log4j-1.2.8.jar"/>
What am I doing wrong?Mark,
Here is my plugin.xml. classes12.jar is in the same directory as the
plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="kodo"
name="%name"
version="1.0.1"
provider-name="%provider-name"
class="kodo.jdbc.integration.eclipse.KodoPlugin">
<runtime>
<!--
Put your jdbc driver in this directory and enter the filename
here (and configure in Preferences the changes you make) -->
<library name="classes12.jar"/>
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<library name="kodo-jdo.jar"/>
<library name="jakarta-commons-collections-2.1.jar"/>
<library name="jakarta-commons-lang-1.0.1.jar"/>
<library name="jakarta-commons-pool-1.0.1.jar"/>
<library name="jakarta-regexp-1.1.jar"/>
<library name="jca1.0.jar"/>
<library name="jdbc2_0-stdext.jar"/>
<library name="jdo-1.0.1.jar"/>
<library name="jta-spec1_0_1.jar"/>
<library name="xalan.jar"/>
<library name="xercesImpl.jar"/>
<library name="xml-apis.jar"/>
<library name="jfreechart-0.9.16.jar"/>
<library name="jcommon-0.9.1.jar"/>
<library name="mx4j-admb.jar"/>
<library name="mx4j-jmx.jar"/>
<library name="mx4j-tools.jar"/>
<library name="jline.jar"/>
<library name="sqlline.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.launching"/>
</requires>
<extension point="org.eclipse.ui.actionSets">
<actionSet id="kodo.jdbc.integration.eclipse.actionSet"
label="%action-set-name"
visible="true">
<menu id="kodo.menu"
label="%group-label">
<separator name="baseGroup"/>
</menu>
<action id="kodo.removeBuilder"
label="%remove-builder-label"
class="kodo.jdbc.integration.eclipse.RemoveBuilderAction"
tooltip="%remove-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.addbuilder"
label="%add-builder-label"
class="kodo.jdbc.integration.eclipse.AddBuilderAction"
tooltip="%add-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.mapping.build"
label="%mapping-build-label"
tooltip="%mapping-build-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$BuildSchema"
icon="icons/BuildSchemaMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.drop"
label="%mapping-drop-label"
tooltip="%mapping-drop-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Drop"
icon="icons/DropMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.refresh"
label="%mapping-refresh-label"
tooltip="%mapping-refresh-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Refresh"
icon="icons/RefreshMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.enhance"
label="%enhance-label"
icon="icons/EnhancerAction.gif"
class="kodo.jdbc.integration.eclipse.EnhancerAction"
tooltip="%enhance-tooltip"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
</actionSet>
</extension>
<!-- lock our actions into the base perspective -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
<actionSet
id="kodo.jdbc.integration.eclipse.actionSet">
</actionSet>
</perspectiveExtension>
</extension>
<!-- put our extensions in -->
<extension point="org.eclipse.ui.preferencePages">
<page name="%preference-name"
class="kodo.jdbc.integration.eclipse.KodoPreferencePage"
id="kodo.jdbc.integration.eclipse.preferences.KodoPreferencePage">
</page>
</extension>
<!-- lock in our eclipse-generated xml editor -->
<extension point="org.eclipse.ui.editors">
<editor name="%mappingeditor-name" extensions="mapping"
icon="icons/mapping.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditorMapping">
</editor>
<editor name="%editor-name" extensions="jdo,schema"
icon="icons/metadata.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditor">
</editor>
</extension>
<!-- lock in our "view" -->
<extension point="org.eclipse.ui.views">
<view id="kodo.jdbc.integration.eclipse.KodoView"
name="%view-name"
category="org.eclipse.jdt.ui.java"
icon="icons/kodosmall.gif"
class="kodo.jdbc.integration.eclipse.KodoView">
</view>
</extension>
<!-- lock in our builder -->
<extension point="org.eclipse.core.resources.builders"
id="kodo.jdbc.integration.eclipse.EnhancerBuilder"
name="%builder-name">
<builder>
<run
class="kodo.jdbc.integration.eclipse.EnhancerBuilder">
</run>
</builder>
</extension>
<!-- put our view onto the bottom bar -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.debug.ui.DebugPerspective">
<view id="kodo.jdbc.integration.eclipse.KodoView"
relative="org.eclipse.debug.ui.ExpressionView"
relationship="stack"/>
<viewShortcut id="org.eclipse.jdt.debug.ui.DisplayView"/>
</perspectiveExtension>
</extension>
</plugin>
Marc Prud'hommeaux wrote:
Genna-
Can you post your plugin.xml file? The majority of the time, this
problem is because of an error in the configuration file.
In article <[email protected]>, Genna Reingold wrote:
Ok,
I have found where log4j was coming from - I have selected my runtime
Kodo property file in Kodo preferences. Removing reference to property
file fixed the problem. However I have another issue now. When I run
refresh mapping I get following error:
<error>-An error occurred running MappingTool
kodo.util.FatalDataStoreException: oracle.jdbc.OracleDriver
NestedThrowables:
java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
I have upgraded to Kodo 3.1.15, I'm using latest Eclipse 3.0. I have
copied classes12.jar to plugin directory and modified plugin.xml as
prescribed in the manual.
Stephen Kim wrote:
Genna,
Also note that the Eclipse plugin uses its own logging mechanism.
Setting a kodo.Log property for the plugin's property file will not
change the way in which the plugin logs messages (you may want to have
an Eclipse specific property file with the Log property removed).
Marc Prud'hommeaux wrote:
Genna-
It sounds like Eclipse might have an older version of the log4j jar
file. Can you check to see if there are any other "log4j" jars in
Eclipse's environment?
Also, what version of Kodo are you using? Can you try with the latest
release (3.1.5)?
Finally, can you ensure that you are using the final 3.0 release of
Eclipse, and not one of the betas? There are some known problems with
some of the 3.0 betas.
In article <[email protected]>, Genna Reingold wrote:
Hi,
I have added Kodo plugin to Eclipse (version 3) . I have added Kodo
enhancer to Build sequence for the project. However when I run build I
get
an error and eclipse log file has following exception:
ava.lang.NoClassDefFoundError: org/apache/log4j/Category
atcom.solarmetric.log.Log4JLogFactory.newLogAdapter(Log4JLogFactory.java:19)
at
com.solarmetric.log.LogFactoryAdapter.getLog(LogFactoryAdapter.java:25)
atcom.solarmetric.conf.ConfigurationImpl.getLog(ConfigurationImpl.java:115)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2168)
at
kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
at
org.eclipse.core.internal.resources.Workspace.build(Workspace.java:198)
atorg.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:182)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
I have copied the log4j jar to kodo plugin directory and added libarary
tag to plugin.xml as following:
<library name="log4j-1.2.8.jar"/>
What am I doing wrong?
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Marc Prud'hommeaux
SolarMetric Inc. -
Kodo 3.1.4 and Eclipse plugin
I'm currently migrating from Kodo 2.5.3 to Kodo 3.1.4, and as I'm using
Eclipse have decided to give the Eclipse plugin a go. I've followed the
documentation (@15.6), and am now attempting the Eclipse Sample from the
documentation (@15.6.4). The documentation has seemed slightly incomplete,
but I assume that's just me using Eclipse 3.0 with the doumentation being
written for WSAD 4.
However, when I clean the project or run the enhancer I get the following
error:
<error>-The Enhancer failed. The message included was:
{0}
org.apache.commons.lang.exception.NestableRuntimeException: Animal
<info>-Done.
This message doesn't seem to be giving me any info that would help me
track down the problem, so hopefully somebody has seen it beforehand in
these circumstances and can help me out?
Cheers,
MattStephen, the stack trace is as below. Apparently the Animal class isn't
being found...? - How does the Kodo plugin look for / find it? - Eclipse
itself has no trouble compiling it. Do I need to somehow configure my
classpath separately for the Kodo plugin?
!MESSAGE Errors running builder "Kodo Enhancer Builder" on project Kodo
Pet Shop.
!SUBENTRY 1 kodo 4 0 Aug 10, 2004 16:27:52.687
!MESSAGE The Enhancer failed. The message included was:
org.apache.commons.lang.exception.NestableRuntimeException: Animal
!STACK 0
java.lang.ClassNotFoundException: Animal
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:49)
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:27)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at serp.util.Strings.toClass(Strings.java:160)
at
com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:77)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2176)
at
kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
rethrown as org.apache.commons.lang.exception.NestableRuntimeException:
Animal
at serp.util.Strings.toClass(Strings.java:164)
at
com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:77)
at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2176)
at
kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Caused by: java.lang.ClassNotFoundException: Animal
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:49)
at
kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:27)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at serp.util.Strings.toClass(Strings.java:160)
... 18 more
==================
Stephen Kim wrote:
Matt,
you should see a stack trace in workspace/.metadata/.log. Can you send
us the error so that we can fix the reproting? -
Eclipse plug-in error - driver not found error with DB2
Hi,
i am using websphere studio developer and the kodo 3.0 implementation.
I have set up the kodo plug in and i get an error when i try to create the
database schema:
kodo.util.FatalDataStoreException: No suitable driver
It can't find the DB2 driver. This is the information I have in the kodo
properties:
javax.jdo.option.ConnectionDriverName: COM.ibm.db2.jdbc.app.DB2Driver
javax.jdo.option.ConnectionURL: jdbc:db2:baokodo
The DB2 driver jar is in the kodo eclipse plugin directory and I am
referencing this jar file in the plugin xml file.The plug in is finding the driver class but it does not like the driver
for some reason. It tells me no suitable driver found.
Here is my plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="kodo"
name="%name"
version="1.0.1"
provider-name="%provider-name"
class="kodo.jdbc.integration.eclipse.KodoPlugin">
<runtime>
<library name="db2java.jar"/>
<library name="kodo-jdo.jar"/>
<library name="jakarta-commons-collections-2.1.jar"/>
<library name="jakarta-commons-lang-1.0.1.jar"/>
<library name="jakarta-commons-logging-1.0.3.jar"/>
<library name="jakarta-commons-pool-1.0.1.jar"/>
<library name="jakarta-regexp-1.1.jar"/>
<library name="jca1.0.jar"/>
<library name="jdbc2_0-stdext.jar"/>
<library name="jdo-1.0.1.jar"/>
<library name="jta-spec1_0_1.jar"/>
<library name="xalan.jar"/>
<library name="xercesImpl.jar"/>
<library name="xml-apis.jar"/>
<library name="jfreechart-0.9.13.jar"/>
<library name="jcommon-0.8.8.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.launching"/>
</requires>
<extension point="org.eclipse.ui.actionSets">
<actionSet id="kodo.jdbc.integration.eclipse.actionSet"
label="%action-set-name"
visible="true">
<menu id="kodo.menu"
label="%group-label">
<separator name="baseGroup"/>
</menu>
<action id="kodo.removeBuilder"
label="%remove-builder-label"
class="kodo.jdbc.integration.eclipse.RemoveBuilderAction"
tooltip="%remove-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.addbuilder"
label="%add-builder-label"
class="kodo.jdbc.integration.eclipse.AddBuilderAction"
tooltip="%add-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.mapping.build"
label="%mapping-build-label"
tooltip="%mapping-build-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$BuildSchema"
icon="icons/BuildSchemaMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="1">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.drop"
label="%mapping-drop-label"
tooltip="%mapping-drop-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Drop"
icon="icons/DropMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="1">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.refresh"
label="%mapping-refresh-label"
tooltip="%mapping-refresh-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Refresh"
icon="icons/RefreshMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="1">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.enhance"
label="%enhance-label"
icon="icons/EnhancerAction.gif"
class="kodo.jdbc.integration.eclipse.EnhancerAction"
tooltip="%enhance-tooltip"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="1">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
</actionSet>
</extension>
<!-- lock our actions into the base perspective -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
<actionSet
id="kodo.jdbc.integration.eclipse.actionSet">
</actionSet>
</perspectiveExtension>
</extension>
<!-- put our extensions in -->
<extension point="org.eclipse.ui.preferencePages">
<page name="%preference-name"
class="kodo.jdbc.integration.eclipse.KodoPreferencePage"
id="kodo.jdbc.integration.eclipse.preferences.KodoPreferencePage">
</page>
</extension>
<!-- lock in our eclipse-generated xml editor -->
<extension point="org.eclipse.ui.editors">
<editor name="%mappingeditor-name" extensions="mapping"
icon="icons/mapping.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditorMapping">
</editor>
<editor name="%editor-name" extensions="jdo,schema"
icon="icons/metadata.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditor">
</editor>
</extension>
<!-- lock in our "view" -->
<extension point="org.eclipse.ui.views">
<view id="kodo.jdbc.integration.eclipse.KodoView"
name="%view-name"
category="org.eclipse.jdt.ui.java"
icon="icons/kodosmall.gif"
class="kodo.jdbc.integration.eclipse.KodoView">
</view>
</extension>
<!-- lock in our builder -->
<extension point="org.eclipse.core.resources.builders"
id="kodo.jdbc.integration.eclipse.EnhancerBuilder"
name="%builder-name">
<builder>
<run
class="kodo.jdbc.integration.eclipse.EnhancerBuilder">
</run>
</builder>
</extension>
<!-- put our view onto the bottom bar -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.debug.ui.DebugPerspective">
<view id="kodo.jdbc.integration.eclipse.KodoView"
relative="org.eclipse.debug.ui.ExpressionView"
relationship="stack"/>
<viewShortcut id="org.eclipse.jdt.debug.ui.DisplayView"/>
</perspectiveExtension>
</extension>
</plugin>
Here is the kodo.properties file:
# Kodo JDO Properties configuration
# To evaluate or purchase a license key, visit http://www.solarmetric.com
kodo.LicenseKey: xxxxxxx
javax.jdo.PersistenceManagerFactoryClass:
kodo.jdbc.runtime.JDBCPersistenceManagerFactory
javax.jdo.option.ConnectionDriverName: COM.ibm.db2.jdbc.app.DB2Driver
javax.jdo.option.ConnectionUserName: db2admin
javax.jdo.option.ConnectionPassword: db2admin
javax.jdo.option.ConnectionURL: jdbc:db2:baokodo
javax.jdo.option.Optimistic: true
javax.jdo.option.RetainValues: true
javax.jdo.option.NontransactionalRead: true
# By default, Kodo stores object-relational mapping information in .mapping
# files. Other common options are storing the information in a special
# database table Kodo creates or as extensions in JDO metadata. Uncomment
# one of the properties below to use one of these options. See the
reference
# guide for a full list of mapping factories to choose from.
#kodo.jdbc.MappingFactory: db
#kodo.jdbc.MappingFactory: metadata
# Kodo provides a management / monitoring capability. It can be enabled
# locally (in the same JVM) by setting the kodo.ManagementUI property to
# "gui". Remote management / monitoring can be enabled by setting the
# kodo.ManagementServer property, and by running the remotemanagementtool
# in another process.
# kodo.ManagementUI: gui
# kodo.ManagementServer: true(host="localhost",port=1234)
Stephen Kim wrote:
Can you post your plugin.xml? We have tested against WebSphere Studio 4
and 5.
TD wrote:
I am specifying a properties file in the preferences pane.
Still not sure why this doesn't work...
Have you been able to get it to work in websphere studio.
Stephen Kim wrote:
The plugin does not use any kodo.properties by default. You have to
configure it through the Preferences pane (which you can point to your
kodo.properties file)
TD wrote:
Hi,
i am using websphere studio developer and the kodo 3.0 implementation.
I have set up the kodo plug in and i get an error when i try to create the
database schema:
kodo.util.FatalDataStoreException: No suitable driver
It can't find the DB2 driver. This is the information I have in the kodo
properties:
javax.jdo.option.ConnectionDriverName: COM.ibm.db2.jdbc.app.DB2Driver
javax.jdo.option.ConnectionURL: jdbc:db2:baokodo
The DB2 driver jar is in the kodo eclipse plugin directory and I am
referencing this jar file in the plugin xml file.
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Hi,
I'm getting the following error when trying to use the mapping tool from
within eclipse 3.0M8:
<error>-An error occurred running MappingTool
kodo.util.FatalDataStoreException: No suitable driver
NestedThrowables:
java.sql.SQLException: No suitable driver
<info>-Done.
I followed the instructions on using the eclipse plugin, including copying
all jars from kodo's lib folder to the plugin folder, copying the MySQL
Connector/J jar to the kodo plugin folder, adding all of those jars to the
project classpath, and even added an entry to the plugin.xml file to
include the MySQL Connector/J jar. If I remove the project reference to
the MySQL Connector/J jar, the error changes to:
<error>-An error occurred running MappingTool
kodo.util.FatalDataStoreException: com.mysql.jdbc.Driver
NestedThrowables:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
<info>-Done.
This would imply that adding a <library> entry for the MySQL Connector/J
jar in my plugin.xml does not have any effect; if I remove it, I see the
same error as above. If I add the MySQL jar back to the project
classpath, the error changes back to 'No suitable driver' as above.
The behavior is the same whether I use the Kodo preferences
(Window\Preferences\Kodo Preferences) individually without a
kodo.properties file, or when I clear all individual properties and
indicate a kodo.properties file.
Help?
Thanks,
Matthew
Here's my kodo.properties file:
# Kodo JDO Properties configuration
kodo.LicenseKey: xxx
javax.jdo.PersistenceManagerFactoryClass:
kodo.jdbc.runtime.JDBCPersistenceManagerFactory
javax.jdo.option.ConnectionDriverName: com.mysql.jdbc.Driver
javax.jdo.option.ConnectionUserName: root
javax.jdo.option.ConnectionPassword:
javax.jdo.option.ConnectionURL: jdbc:mysql://localhost/kodo
javax.jdo.option.Optimistic: true
javax.jdo.option.RetainValues: true
javax.jdo.option.NontransactionalRead: true
kodo.Log: DefaultLevel=WARN, Runtime=INFO, Tool=INFO
Here's my eclipse-3.0M8/plugins/kodo.eclipse_2.1.0/plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="kodo"
name="%name"
version="1.0.1"
provider-name="%provider-name"
class="kodo.jdbc.integration.eclipse.KodoPlugin">
<runtime>
<!--
Put your jdbc driver in this directory and enter the filename
here (and configure in Preferences the changes you make) -->
<!--<library name="jdbc-hsql-1_7_0.jar"/>-->
<library name="mysql-connector-java-3.0.11-stable-bin.jar"/>
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<library name="kodo-jdo.jar"/>
<library name="jakarta-commons-collections-2.1.jar"/>
<library name="jakarta-commons-lang-1.0.1.jar"/>
<library name="jakarta-commons-pool-1.0.1.jar"/>
<library name="jakarta-regexp-1.1.jar"/>
<library name="jca1.0.jar"/>
<library name="jdbc2_0-stdext.jar"/>
<library name="jdo-1.0.1.jar"/>
<library name="jta-spec1_0_1.jar"/>
<library name="xalan.jar"/>
<library name="xercesImpl.jar"/>
<library name="xml-apis.jar"/>
<library name="jfreechart-0.9.16.jar"/>
<library name="jcommon-0.9.1.jar"/>
<library name="mx4j-admb.jar"/>
<library name="mx4j-jmx.jar"/>
<library name="mx4j-tools.jar"/>
<library name="jline.jar"/>
<library name="sqlline.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.launching"/>
</requires>
<extension point="org.eclipse.ui.actionSets">
<actionSet id="kodo.jdbc.integration.eclipse.actionSet"
label="%action-set-name"
visible="true">
<menu id="kodo.menu"
label="%group-label">
<separator name="baseGroup"/>
</menu>
<action id="kodo.removeBuilder"
label="%remove-builder-label"
class="kodo.jdbc.integration.eclipse.RemoveBuilderAction"
tooltip="%remove-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.addbuilder"
label="%add-builder-label"
class="kodo.jdbc.integration.eclipse.AddBuilderAction"
tooltip="%add-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.mapping.build"
label="%mapping-build-label"
tooltip="%mapping-build-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$BuildSchema"
icon="icons/BuildSchemaMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.drop"
label="%mapping-drop-label"
tooltip="%mapping-drop-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Drop"
icon="icons/DropMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.refresh"
label="%mapping-refresh-label"
tooltip="%mapping-refresh-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Refresh"
icon="icons/RefreshMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.enhance"
label="%enhance-label"
icon="icons/EnhancerAction.gif"
class="kodo.jdbc.integration.eclipse.EnhancerAction"
tooltip="%enhance-tooltip"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
</actionSet>
</extension>
<!-- lock our actions into the base perspective -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<actionSet
id="kodo.jdbc.integration.eclipse.actionSet">
</actionSet>
</perspectiveExtension>
</extension>
<!-- put our extensions in -->
<extension point="org.eclipse.ui.preferencePages">
<page name="%preference-name"
class="kodo.jdbc.integration.eclipse.KodoPreferencePage"
id="kodo.jdbc.integration.eclipse.preferences.KodoPreferencePage">
</page>
</extension>
<!-- lock in our eclipse-generated xml editor -->
<extension point="org.eclipse.ui.editors">
<editor name="%mappingeditor-name" extensions="mapping"
icon="icons/mapping.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditorMapping">
</editor>
<editor name="%editor-name" extensions="jdo,schema"
icon="icons/metadata.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditor">
</editor>
</extension>
<!-- lock in our "view" -->
<extension point="org.eclipse.ui.views">
<view id="kodo.jdbc.integration.eclipse.KodoView"
name="%view-name"
category="org.eclipse.jdt.ui.java"
icon="icons/kodosmall.gif"
class="kodo.jdbc.integration.eclipse.KodoView">
</view>
</extension>
<!-- lock in our builder -->
<extension point="org.eclipse.core.resources.builders"
id="kodo.jdbc.integration.eclipse.EnhancerBuilder"
name="%builder-name">
<builder>
<run
class="kodo.jdbc.integration.eclipse.EnhancerBuilder">
</run>
</builder>
</extension>
<!-- put our view onto the bottom bar -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.debug.ui.DebugPerspective">
<view id="kodo.jdbc.integration.eclipse.KodoView"
relative="org.eclipse.debug.ui.ExpressionView"
relationship="stack"/>
<viewShortcut id="org.eclipse.jdt.debug.ui.DisplayView"/>
</perspectiveExtension>
</extension>
</plugin>I am not using Eclipse but am also experiencing problems similar to those
described below. The fact is I cannot validate a configuration file which
specifies either a traditional MySQL driver or a MySQL DataSoure.
I am using what I believe to be the official stable version of MySQL
Connector/J which is 3.0.11 and has been for several months. Are you
saying that 3.0.11 (or even 3.0.8) is not supported?
3.0.12 was recently released as the latest stable version so 3.0.11 should
at least be supported by now.
-Neil
Stephen Kim wrote:
The milestones are not fully supported versions as they are of beta
quality. I would suggest using a proper release instead.
Wolfgang Kundrus wrote:
Hi,
I have excactly the same behaviour here with Eclipse 3.0M8 and MySQL. It
is the same with 3.0.8. and 3.0.11. What is the solution ?
Best regards
Wolfgang Kundrus
Marc Prud'hommeaux wrote:
Matthew-
Everything looks correct to me. If you try an older version of the MySQL
driver (such as 3.0.8, which is what we test with), do you see anything
different?
If you try to run a stand-alone Kodo program using the MySQL driver, do
you see the same exception? If so, can you post the complete stack
trace?
In article <[email protected]>, Matthew T. Adams wrote:
Hi,
I'm getting the following error when trying to use the mapping tool from
within eclipse 3.0M8:
<error>-An error occurred running MappingTool
kodo.util.FatalDataStoreException: No suitable driver
NestedThrowables:
java.sql.SQLException: No suitable driver
<info>-Done.
I followed the instructions on using the eclipse plugin, including copying
all jars from kodo's lib folder to the plugin folder, copying the MySQL
Connector/J jar to the kodo plugin folder, adding all of those jars to the
project classpath, and even added an entry to the plugin.xml file to
include the MySQL Connector/J jar. If I remove the project reference to
the MySQL Connector/J jar, the error changes to:
<error>-An error occurred running MappingTool
kodo.util.FatalDataStoreException: com.mysql.jdbc.Driver
NestedThrowables:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
<info>-Done.
This would imply that adding a <library> entry for the MySQL Connector/J
jar in my plugin.xml does not have any effect; if I remove it, I see the
same error as above. If I add the MySQL jar back to the project
classpath, the error changes back to 'No suitable driver' as above.
The behavior is the same whether I use the Kodo preferences
(WindowPreferencesKodo Preferences) individually without a
kodo.properties file, or when I clear all individual properties and
indicate a kodo.properties file.
Help?
Thanks,
Matthew
Here's my kodo.properties file:
# Kodo JDO Properties configuration
kodo.LicenseKey: xxx
javax.jdo.PersistenceManagerFactoryClass:
kodo.jdbc.runtime.JDBCPersistenceManagerFactory
javax.jdo.option.ConnectionDriverName: com.mysql.jdbc.Driver
javax.jdo.option.ConnectionUserName: root
javax.jdo.option.ConnectionPassword:
javax.jdo.option.ConnectionURL: jdbc:mysql://localhost/kodo
javax.jdo.option.Optimistic: true
javax.jdo.option.RetainValues: true
javax.jdo.option.NontransactionalRead: true
kodo.Log: DefaultLevel=WARN, Runtime=INFO, Tool=INFO
Here's my eclipse-3.0M8/plugins/kodo.eclipse_2.1.0/plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="kodo"
name="%name"
version="1.0.1"
provider-name="%provider-name"
class="kodo.jdbc.integration.eclipse.KodoPlugin">
<runtime>
<!--
Put your jdbc driver in this directory and enter the filename
here (and configure in Preferences the changes you make) -->
<!--<library name="jdbc-hsql-1_7_0.jar"/>-->
<library name="mysql-connector-java-3.0.11-stable-bin.jar"/>
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<!-- ########### do not modify below ######### -->
<library name="kodo-jdo.jar"/>
<library name="jakarta-commons-collections-2.1.jar"/>
<library name="jakarta-commons-lang-1.0.1.jar"/>
<library name="jakarta-commons-pool-1.0.1.jar"/>
<library name="jakarta-regexp-1.1.jar"/>
<library name="jca1.0.jar"/>
<library name="jdbc2_0-stdext.jar"/>
<library name="jdo-1.0.1.jar"/>
<library name="jta-spec1_0_1.jar"/>
<library name="xalan.jar"/>
<library name="xercesImpl.jar"/>
<library name="xml-apis.jar"/>
<library name="jfreechart-0.9.16.jar"/>
<library name="jcommon-0.9.1.jar"/>
<library name="mx4j-admb.jar"/>
<library name="mx4j-jmx.jar"/>
<library name="mx4j-tools.jar"/>
<library name="jline.jar"/>
<library name="sqlline.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.launching"/>
</requires>
<extension point="org.eclipse.ui.actionSets">
<actionSet id="kodo.jdbc.integration.eclipse.actionSet"
label="%action-set-name"
visible="true">
<menu id="kodo.menu"
label="%group-label">
<separator name="baseGroup"/>
</menu>
<action id="kodo.removeBuilder"
label="%remove-builder-label"
class="kodo.jdbc.integration.eclipse.RemoveBuilderAction"
tooltip="%remove-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.addbuilder"
label="%add-builder-label"
class="kodo.jdbc.integration.eclipse.AddBuilderAction"
tooltip="%add-builder-tooltip"
menubarPath="kodo.menu/baseGroup"
enablesFor="1">
</action>
<action id="kodo.mapping.build"
label="%mapping-build-label"
tooltip="%mapping-build-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$BuildSchema"
icon="icons/BuildSchemaMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.drop"
label="%mapping-drop-label"
tooltip="%mapping-drop-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Drop"
icon="icons/DropMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.mapping.refresh"
label="%mapping-refresh-label"
tooltip="%mapping-refresh-tooltip"
class="kodo.jdbc.integration.eclipse.MappingToolAction$Refresh"
icon="icons/RefreshMappingTool.gif"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
<action id="kodo.enhance"
label="%enhance-label"
icon="icons/EnhancerAction.gif"
class="kodo.jdbc.integration.eclipse.EnhancerAction"
tooltip="%enhance-tooltip"
menubarPath="kodo.menu/baseGroup"
toolbarPath="Normal/Kodo"
enablesFor="+">
<selection class="org.eclipse.core.resources.IFile"
name="*.jdo">
</selection>
</action>
</actionSet>
</extension>
<!-- lock our actions into the base perspective -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective">
<actionSet
id="kodo.jdbc.integration.eclipse.actionSet">
</actionSet>
</perspectiveExtension>
</extension>
<!-- put our extensions in -->
<extension point="org.eclipse.ui.preferencePages">
<page name="%preference-name"
class="kodo.jdbc.integration.eclipse.KodoPreferencePage"
id="kodo.jdbc.integration.eclipse.preferences.KodoPreferencePage">
</page>
</extension>
<!-- lock in our eclipse-generated xml editor -->
<extension point="org.eclipse.ui.editors">
<editor name="%mappingeditor-name" extensions="mapping"
icon="icons/mapping.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
>>
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditorMapping">
</editor>
<editor name="%editor-name" extensions="jdo,schema"
icon="icons/metadata.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
>>
class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
id="kodo.jdbc.integration.eclipse.editor.XMLEditor">
</editor>
</extension>
<!-- lock in our "view" -->
<extension point="org.eclipse.ui.views">
<view id="kodo.jdbc.integration.eclipse.KodoView"
name="%view-name"
category="org.eclipse.jdt.ui.java"
icon="icons/kodosmall.gif"
class="kodo.jdbc.integration.eclipse.KodoView">
</view>
</extension>
<!-- lock in our builder -->
<extension point="org.eclipse.core.resources.builders"
id="kodo.jdbc.integration.eclipse.EnhancerBuilder"
name="%builder-name">
<builder>
<run
class="kodo.jdbc.integration.eclipse.EnhancerBuilder">
</run>
</builder>
</extension>
<!-- put our view onto the bottom bar -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.debug.ui.DebugPerspective">
<view id="kodo.jdbc.integration.eclipse.KodoView"
relative="org.eclipse.debug.ui.ExpressionView"
relationship="stack"/>
<viewShortcut id="org.eclipse.jdt.debug.ui.DisplayView"/>
</perspectiveExtension>
</extension>
</plugin>
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Kodoplugin for Eclipse not up to date?
Hi,
when installing the kodo-eclipse plugin (yes i also installed a odbc library) there are just errors in the GUI:
Unable to create view: Plug-in kodo was unable to load class kodo.jdbc.integration.eclipse.KodoView
I searched through all jar files of kodo, but the class KodoView does not exist at all! It seems to me, that the plugin is designed for the old kodo 3. If yes why is this old plugin still shipped with the current version 4 of kodo? And more interesing, when will there be a new version of the eclipse plugin released?
Best Wishes
Sven WeingartnerSven-
Kodo 4.0.0 does not support the old eclipse plugin. Do you see the
Eclipse plugin in Kodo 4.0.0 anywhere? It should no longer be there.
The path to Eclipse integration is now done using Kodo integration in
BEA Weblogic Workshop.
Sven Weingartner wrote:
Hi,
when installing the kodo-eclipse plugin (yes i also installed a odbc library) there are just errors in the GUI:
Unable to create view: Plug-in kodo was unable to load class kodo.jdbc.integration.eclipse.KodoView
I searched through all jar files of kodo, but the class KodoView does not exist at all! It seems to me, that the plugin is designed for the old kodo 3. If yes why is this old plugin still shipped with the current version 4 of kodo? And more interesing, when will there be a new version of the eclipse plugin released?
Best Wishes
Sven Weingartner -
PL/SQL? Call it P/K!
What I want to say for PL/SQL is thus:
1) Functions or procedure of PL/SQL with many parameters are bullshit. Parameter count of normal function should be less than eight.
2) Performance of PL/SQL is said a little better than simple SQL statement of JDBC, but its difficulty of debug is much worse. I don't like blackbox modules.
3) I have seen hundreds of "?" as following in a project of some enterprise's import/export management system.
* Update Exec
* @param edits DomainWrap
* @exception IPOException
public void updateExec( DomainWrap edits ) throws IPOException{
Connection con = null;
OracleCallableStatement cstmt = null;
try {
con = getConnection();
String stmt_str = "{? = call PK_M0902_W.F_M0902(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) }";
if( ((SM0900_App)getAppContext()).isHandlingOldCompanyCode()) {
stmt_str = "{? = call PK_M0902_W.F_M0902(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) }";
log.info("CallableStatement:" + stmtstr );
if( !((SM0900_App)getAppContext()).isHandlingOldCompanyCode()) {
log.info("COMPANYCD = "+getAppContext().getCompanyCd());
DomainWrap dm = getDomainDetail();
_log.info("SHIPPER_CD = "+ dm.getString(SHIPPER_CD));
int arraySize = edits.size();
_log.info("ARRAY_SIZE = "+arraySize);
String[] ArrPoNo = new String[arraySize];
String[] ArrPartsCd = new String[arraySize];
String[] ArrIvQty = new String[arraySize];
String[] ArrIvPrice = new String[arraySize];
String[] ArrCartonToNo = new String[arraySize];
String[] ArrGroupNo = new String[arraySize];
String[] ArrSeq = new String[arraySize];
String[] ArrAa105TukaKbn = new String[arraySize];
String[] ArrAa105JyuchuYmd = new String[arraySize];
String[] ArrDvaiJusinBUpdateDatec14 = new String[arraySize];
for(int i=0; i<arraySize; i++){
DomainWrap edit = edits.getDomainRecord(i);
ArrPoNo[i] = edit.getString(PO_NO_DVAI);
ArrPartsCd[i] = edit.getString(PARTS_CD_DVAI);
ArrIvQty[i] = edit.getString(IV_QTY);
ArrTaniKbn[i] = getNullToSpace(edit,TANI_KBN);//CT0198
ArrNetWeight[i] = edit.getString(NET_WEIGHT_2);
ArrGrossWeight[i] = edit.getString(GROSS_WEIGHT_2);
ArrIvM3[i] = edit.getString(IV_M3_2);
//ArrCartonShu[i] = edit.getString(CARTON_SHU);
ArrCartonShu[i] = getNullToSpace(edit,CARTON_SHU);//CT0198
ArrCartonDepth[i] = edit.getString(CARTON_DEPTH);
ArrCartonWidth[i] = edit.getString(CARTON_WIDTH);
ArrCartonHeight[i] = edit.getString(CARTON_HEIGHT);
ArrHacOlUpdateDateIn[i] = edit.getString(OL_UPDATE_DATE_4);
ArrSoNo[i] = getNullToSpace(edit,PO_NO);//CT0198
ArrGroupNo[i] = getNullToSpace(edit,GROUP_NO);//CT0198
ArrSeq[i] = getNullToSpace(edit,EDA_NO);//CT0198
ArrAa105TukaKbn[i] = edit.getString(TUKA_KBN_2);
ArrAa105JyuchuYmd[i] = edit.getString(JYUCHU_YMD);
ArrDvaiJusinBUpdateDatec14[i] = edit.getString(OL_UPDATE_DATE_3);
_log.info("PO_NO["+i+"] = "+ArrPoNo);
int colcnt = 1;
int COMPANY_CD_COL = 0;
int RET_COL = colcnt++;
if ( !((SM0900_App)getAppContext()).isHandlingOldCompanyCode()) {
COMPANY_CD_COL = colcnt++;
int SHIPPER_CD_COL = colcnt++;
int SHIPPER_CD_F_COL = colcnt++;
int REIV_CD_COL = colcnt++;
int COMP_CD_COL = colcnt++;
int MASTER_BL_COL = colcnt++;
int MASTER_BL_F_COL = colcnt++;
int HOUSE_BL_COL = colcnt++;
int ETA_YMD_COL = colcnt++;
int ETD_YMD_COL = colcnt++;
int FLIGHT_NO1_COL = colcnt++;
int FLIGHT_ETA1_COL = colcnt++;
int FLIGHT_ETD1_COL = colcnt++;
int FLIGHT_NO2_COL = colcnt++;
int FLIGHT_ETA2_COL = colcnt++;
int GRAND_TOTAL_COL = colcnt++;
int PO_NO_COL = colcnt++;
int PARTS_CD_COL = colcnt++;
int IV_QTY_COL = colcnt++;
int SYORI_YMD_COL = colcnt++;
int JOB_ID_COL = colcnt++;
int USER_ID_COL = colcnt++;
int TERMINAL_ID_COL = colcnt++;
int OB_KBN_COL = colcnt++;
int HAC_OL_UPDATE_DATE_IN_COL = colcnt++;
int SO_NO_COL = colcnt++;
int DVAI_JUSIN_H_UPDATE_DATE_COL = colcnt++;
int DVAI_JUSIN_B_UPDATE_DATE_COL = colcnt++;
cstmt = ( OracleCallableStatement )(con.prepareCall(stmt_str));
Connection oraconn = cstmt.getConnection();
ArrayDescriptor descVc01 = ArrayDescriptor.createDescriptor("WRP_VC01", oraconn);
ArrayDescriptor descVc20 = ArrayDescriptor.createDescriptor("WRP_VC20", oraconn);
cstmt.registerOutParameter( 1, OracleTypes.NUMBER );
if (! ((SM0900_App)getAppContext()).isHandlingOldCompanyCode() ) {
cstmt.setString( COMPANY_CD_COL, getAppContext().getCompanyCd() );
cstmt.setString( SHIPPER_CD_COL, dm.getString(SHIPPER_CD) );
//cstmt.setString( SHIPPER_CD_F_COL, dm.getString(SHIPPER_CD) );
cstmt.setString( SHIPPER_CD_F_COL, getNullToSpace(dm,SHIPPER_CD));//CT0198
cstmt.setString( REIV_CD_COL, dm.getString(REIV_CODE) );
cstmt.setString( COMP_CD_COL, dm.getString(COMPANY_CODE) );
cstmt.setString( MASTER_BL_COL, dm.getString(MASTER_BL_NO) );
//cstmt.setString( MASTER_BL_F_COL, dm.getString(MASTER_BL_NO) );
cstmt.setString( MASTER_BL_F_COL, getNullToSpace(dm,MASTER_BL_NO));//CT0198
cstmt.setString( KEIJO_YMD_COL, dm.getString(KEIJYO_YMD) );
cstmt.setString( LCH_OL_UPDATE_DATE_COL, dm.getString(OL_UPDATE_DATE_2) );
//cstmt.setString( MEDIATION_COL, dm.getString(CHUKAI_KBN) );
cstmt.setString( MEDIATION_COL, getNullToSpace(dm,CHUKAI_KBN));//CT0198
cstmt.setString( PRICE_BASIS_COL, dm.getString(TATENE_KBN) );
//cstmt.setString( POL_COL, dm.getString(FNZM_PORT_CD_2) );
//cstmt.setString( POL_EDI_COL, dm.getString(FNZM_PORT_CD) );
//cstmt.setString( POD_COL, dm.getString(NIAGE_PORT_CD_2) );
//cstmt.setString( POD_EDI_COL, dm.getString(NIAGE_PORT_CD) );
cstmt.setString( CNTN2_SYUBETU_COL, getNullToSpace(dm,CNTN_SYUBETU_2));//CT0198
cstmt.setBigDecimal( CNTN2_HONSU_COL, getBigDecimalZero(dm, CNTN_NO_2) );
cstmt.setString( CNTN3_SYUBETU_COL, getNullToSpace(dm,CNTN_SYUBETU_3));//CT0198
cstmt.setBigDecimal( CNTN3_HONSU_COL, getBigDecimalZero(dm, CNTN_NO_3) );
cstmt.setString( TUKA_KBN_COL, dm.getString(TUKA_KBN) );
cstmt.setBigDecimal( GRAND_TOTAL_COL, getBigDecimalZero(dm, TOTAL_AMT) );
//set Arrays
ARRAY poNoArray = new ARRAY(descVc16, oraconn, ArrPoNo);
ARRAY partsCdArray = new ARRAY(descVc11, oraconn, ArrPartsCd);
ARRAY ivQtyArray = new ARRAY(descVc09, oraconn, ArrIvQty);
ARRAY seqArray = new ARRAY(descVc02, oraconn, ArrSeq);
ARRAY aa105TukaKbnArray = new ARRAY(descVc02, oraconn, ArrAa105TukaKbn);
ARRAY aa105JyuchuYmdArray = new ARRAY(descVc08, oraconn, ArrAa105JyuchuYmd);
ARRAY dvaiJusinBUpdateDatec14Array = new ARRAY(descVc14, oraconn, ArrDvaiJusinBUpdateDatec14);
cstmt.setArray( PO_NO_COL, poNoArray );
cstmt.setArray( PARTS_CD_COL, partsCdArray );
cstmt.setArray( CARTON_HEIGHT_COL, cartonHeightArray );
cstmt.setInt( ARRAY_SIZE_COL, arraySize );
cstmt.setString( SYORI_YMD_COL, getAppContext().getOnlineDate() );
cstmt.setString( JOB_ID_COL, SM0900_Const.PGID );
cstmt.setString( USER_ID_COL, getAppContext().getUserId() );
cstmt.setString( TERMINAL_ID_COL, getAppContext().getTerminalId());
cstmt.setString( OB_KBN_COL, IPOConst.OLKBN );
cstmt.setArray( HAC_OL_UPDATE_DATE_IN_COL, hacOlUpdateDateInArray );
cstmt.setArray( SO_NO_COL, soNoArray );
cstmt.setArray( GROUP_NO_COL, groupNoArray );
cstmt.setArray( SEQ_COL, seqArray );
cstmt.registerOutParameter( GRD_ROW_CNT_COL, OracleTypes.NUMBER );
cstmt.registerOutParameter( ERR_IDX_COL, OracleTypes.NUMBER );
cstmt.registerOutParameter( ERR_MSGID_COL, OracleTypes.CHAR );
cstmt.setString( DVAI_JUSIN_H_UPDATE_DATE_COL, dm.getString(OL_UPDATE_DATE) );
cstmt.setArray( DVAI_JUSIN_B_UPDATE_DATE_COL, dvaiJusinBUpdateDatec14Array );
cstmt.execute();
String ret_col = cstmt.getString( RET_COL );
Those are extremely ugly and they resemble as alien's home. Oracle PL/SQL forced such shit-of-fish codes. It doesn't receive any class nor a structure which bundles several simple data types from Java. Parameters must be completely separated and scattered to Integer or String.
In fact, such whole absurd steps mean breaking off of data between Java and P?/?Q? modules.
Debugging the system is playing a chess or othello game with blindfold.
Can you trust on them?
4) Without invention of way of passing any Java class directly as (in and out)parameter, and being away from debugging tool which is (as using Eclipse for regular Java codes) on up-to-date source code level and executable from web application server (I mean that module unit test tool is not enough. Whole application test is needed), then PL/SQL will be exactly no use for rapid and secure development in few years.
5) PL/SQL is just a burden for systems. It will be defeated by Java servlet, JDBC and Eclipse.
6) Oracle should support Java directly as main way of solution and you have to wipe the poor garbage legacy of PL/SQL out. Change them into Java modules.1) Very few PL/SQL programmers would consider it good form to have procedures with excessive numbers of parameters. In any language, though, it's possible to write poor code.
2) Initially, you're right-- the performance of properly defined SQL statements via JDBC is little different than the performance of PL/SQL stored procedures. Frequently, however, SQL statements in Java applications do not take advantage of bind variables, which will significantly limit their scalability. Maintaining SQL statements in client applications makes it significantly more difficult on the support side-- if you find a bug in a stored procedure, you can fix the bug in one place-- if you find a bug in embedded SQL, you have to fix the code everywhere the client is deployed. Maintaining PL/SQL stored procedures also makes optimization easier-- frequently your DBA will be able to boil down a stored procedure to a couple of SQL statements and vastly improve performance (i.e. INSERT INTO <<table name>> SELECT <<column list>> from <<other table>> rather than looping over a cursor doing single-row inserts). Finally, PL/SQL stored procedures enable reuse-- when the next application wants to access the database, it doesn't have to rewrite your SQL.
3) If the alternative to the bind variables (?'s) is a bunch of literals, I'll spend the extra time writing the code for the tremendous increase in scalability.
4-6) You can certainly pass classes from Java to PL/SQL and back. You can also write Java stored procedures, rather than writing PL/SQL stored procedures). Oracle has been one of the leading proponents of Java.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Kodo plug-in and JBuilder:
If I create one class with absolutely nothing in it except one declaration:
private ArrayList test = new ArrayList();
and then compile that class and then right click on the class and select
"Create JDO metadata" it successfully creates the the .jdo file
If I create another class with nothing in it except one declaration:
private ArrayList<String> test = new ArrayList<String>();
and then compile that class and then right click on the class and select
"Create JDO metadata" I get the following Kodo error.
com.borland.jbuilder.jot.JotParseException: <identifier> expected at line
24
at com.borland.jbuilder.jot.src.JotLog.printError(Unknown Source)
at com.borland.compiler.frontend.Report.error(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.a(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.a(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.a(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.k(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.l(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.addDef(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.a(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.a(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.a(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.b(Unknown Source)
at com.borland.jbuilder.jot.src.JotParser.compilationUnit(Unknown Source)
at com.borland.jbuilder.jot.src.SrcFile.elementParse(Unknown Source)
at com.borland.jbuilder.jot.src.k.l(Unknown Source)
at com.borland.jbuilder.jot.src.l.l(Unknown Source)
at com.borland.jbuilder.jot.src.SrcFile.getPackage(Unknown Source)
at
kodo.jdbc.integration.jbuilder.JDOFileNode.getClassName(JDOFileNode.java:286)
at
kodo.jdbc.integration.jbuilder.JDOFileNode.getClassName(JDOFileNode.java:300)
at
kodo.jdbc.integration.jbuilder.JDOFileNode.assignUrl(JDOFileNode.java:247)
at
kodo.jdbc.integration.jbuilder.JDOFileNode.createNewNode(JDOFileNode.java:208)
at
kodo.jdbc.integration.jbuilder.JDOFileCreateAction.perform(JDOFileCreateAction.java:52)
at
kodo.jdbc.integration.jbuilder.SafeBrowserAction.actionPerformed(SafeBrowserAction.java:70)
at com.borland.primetime.ide.BrowserAction.actionPerformed(Unknown
Source)
at
com.borland.primetime.actions.ActionMenuItem$2.actionPerformed(Unknown
Source)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3107)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1825)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)Schneider wrote:
Hi,
I have added Kodo plugin (2.1.0) to Eclipse (3.1.1) plugin folder as
described in the manual. I've also copied all the Kodo libraries and
classes12.jar into Eclipsepluginskodo.eclipse_2.1.0 and modified
plugin.xml.
I can see the menu item "Kodo" in Eclipse, but I can't start the Kodo
preferences under Windows->Preferences. Following Error:
Plug-in kodo was unable to load class
kodo.jdbc.integration.eclipse.KodoPlugin.
Does anyone have an idea?
Thanks,
Ingo SchneiderI use http://www.eclipse.org/dali plugin for EJB3-persistence. It allows
me to have different EJB3 vendors. KODO was ok for me to work with. -
Loads locally but not on server
I am able to run the sample report on our Linux server. I am able to run my report locally, on Windows. However, when I try to run my report on the Linux server, I get:
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC Driver class: com.mysql.jdbc.Driver.Solved. Copied mysql-connector-java-5.1.36-bin.jar to webapps/birt-viewer/WEB-INF/lib/ and then restarted the birt-viewer webapp in Tomcat.
-
Hi.. I'll start off by saying I'm a newbie in Oracle and in this forum. I searched for an answer, and I found lots of posts on connection URLs, but nothing seemed to be what I needed.
What I'm doing is trying to connect to an Oracle database with jdbc through Eclipse. I'm in the New Connection dialog, and I filled out the fields with my best educated guess, but I'm still getting "Invalid Oracle URL specified"
This is what I have:
jdbc:oracle:odbc:@<hostname>:1521:TBNT
where TBNT is the database name. For hostname, I have a typical dotted name notation.
Thanks in advance,
AmyI got it.. thanks all for looking at this post.
The problem was that I need 'thin' where I had 'odbc'
Amy -
Problems with loading native library missing methods ttJdbc1122.dll
Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
Hi,
I have installed TimesTen 11.2.2 64-bit version on 64-bit windows 7.
I have TimesTen 7 64-bit as well installed on my machice
When trying to connect to TimesTen (Direct connection) using jdbc from eclipse, I get the following error "Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform".
The JDK version is 1.6.25 - 64 bit version.
Please help me resolving this error.
Thanks in Advance,
BalamuruganAre you using SQL Developer?
There is or used to be a restriction of only being able to using 32 bit. A suggestion might be to try the 32 bit client. -
Issue using the Eclipse report designer with Derby Client JDBC Driver
All I am trying to do is add a table to a blank report using the Crystal reports Eclipse plugin. The database is connected successfully in Eclipse using the Derby Client JDBC Driver, but when I try to drag a table from the database over to my blank report, I get the following error:
<br />
<br />
<br />
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not Add Object.
java.lang.ExceptionInInitializerError---- Error code:-2147215362 Error code name:unknownError
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:65)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.throwExecFailure(ReportCommand.java:253)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.internalDoCommand(ReportCommand.java:126)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(ReportCommand.java:237)
at com.businessobjects.crystalreports.designer.uibase.gef.commands.CoreCommand.execute(CoreCommand.java:70)
at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(DSEDropHandler.java:114)
at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.ExceptionInInitializerError---- Error code:-2147467259 Error code name:failed
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:741)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.do(Unknown Source)
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2403)
at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
... 16 more
Caused by: java.lang.SecurityException: sealing violation: package org.apache.derby.impl.store.access.sort is sealed
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getImplementations(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.getDefaultImplementations(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
... 36 more
<br/>
<br />
<br />
If anyone can help me figure out what I am doing wrong, it would be much appreciated.
Edited by: cehowell on Jan 28, 2011 3:34 PMTed,
When I connect to the Derby database in Eclipse using the embedded driver, I can successfully drag and drop tables to create a report. This driver uses the derby.jar file and has no package sealing violations popping up.
<br/>
<br/>
When specifying a driver for a new derby database in Eclipse, the default Derby client driver expects to use the derbyclient.jar driver file. If I only specify this as the driver file this is the error I get:
<br/>
<br/>
<br/>
<code>
java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.businessobjects.crystalreports.designer.dseintegration.DataAccessHelper.setupJRCConfiguration(DataAccessHelper.java:124)
at com.businessobjects.crystalreports.designer.dseintegration.DataAccessHelper.createTable(DataAccessHelper.java:188)
at com.businessobjects.crystalreports.designer.dseintegration.DataAccessHelper.createTable(DataAccessHelper.java:78)
at com.businessobjects.crystalreports.designer.dseintegration.TableCreationFactory.getNewObject(TableCreationFactory.java:116)
at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(DSEDropHandler.java:103)
at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
</code>
<br/>
<br/>
<br/>
and:
<br/>
<br/>
<br/>
<code>
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not Add Object.
Unexpected database connector error---- Error code:-2147215362 Error code name:unknownError
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:65)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.throwExecFailure(ReportCommand.java:253)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.internalDoCommand(ReportCommand.java:126)
at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(ReportCommand.java:237)
at com.businessobjects.crystalreports.designer.uibase.gef.commands.CoreCommand.execute(CoreCommand.java:70)
at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(DSEDropHandler.java:114)
at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2305)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:737)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:1861)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1800)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2403)
at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
... 16 more
Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
... 26 more
</code>
<br/>
<br/>
<br/>
The error I initially posted resulted after I added the derby.jar as a driver file in addition to the derbyclient.jar, which I don't think is supposed to be done now that I am thinking about it, but I did it because of the class not found exception above. Is this perhaps simply a bug that it is trying to utilize the derby.jar embedded driver when the client driver should be used instead? Or am I doing something wrong myself?
<br/>
<br/>
Thank you for your help.
Maybe you are looking for
-
Special character " (quote) in inbound proxy
Hi folks, We have a scenario in which inbound proxy is implemented on SAP side. I am getting following error:- Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXS9457077FA0DEC03F30D0 XML Bytepos.: 9
-
How do you configure the af:query to genterate an IN-Clause
How do you declaratively create a multi-select vield in the af:query and create an IN-CLAUSE? I am able to create a view criteria and I found the "support multi select" box on the UI Hints tab, but when the field is rendered in the af:query the opera
-
Payment Template not appearing during Bank Account
Hi, In Oracle R12 Cash Management, Payment Template is not appearing in the list of values of Bank Account Transfer Screen. I have already done the following setups: 1. Set the Profile Option CE:Bank Account Transfre to "Cash Management" 2. Create Tr
-
Hi I have decided to import my store bought cds using the AAC encoder because I understand it is preferable to MP3. It has been suggested to me that 128kbps was intended for listening directly from the Ipod and because I will play my Ipod Video(60) o
-
HELP! i have a hp photosmart c5580 all-in-one printer. my print quality is absolutely horrible. ive had the printer for less than a year and ive been very dissapointed. at first most of the print would be ok except for the left hand side, print quali