Home » Eclipse Projects » Dali » Error: Schema "MARCOS" cannot be resolved for table "GE_FUNCIONARIOS"
| |
Re: Error: Schema "MARCOS" cannot be resolved for table "GE_FUNCIONARIOS" [message #434455 is a reply to message #434452] |
Mon, 11 June 2007 13:35 |
Marcos Messages: 68 Registered: July 2009 |
Member |
|
|
Hello, Neil!
> It looks like MARCOS is the user name of your connection and therefore the
default schema.
Yes, MARCOS is the user name of my connection. I just didn't know that
would be
the name of the default schema. Here is my connection settings:
Database.: DBTESEUS
URL......: jdbc:sqlserver://SERVDEG;databaseName=DBTESEUS
User name: MARCOS
Password.: ---
> Are you able to browse this schema in the Data Source Explorer?
Yes, and it is connected there. The Data Source Explorer shows:
Databases -> SQL Server (Microsoft SQL Server v. 8.0.2039) -> DBTESEUS ->
Catalogs -> DBTeseus -> Schemas
There are other Catalogs too other than DBTeseus, but there's nothing
under Schemas.
> Also, click on the Schema combo box in the Entity UI in the JPA Details View
> and see if there are other schema choices displayed.
I have to say that the project where are my entities is not a JPA Project,
but
an EJB Project. But I choose to the JPA Development perspective and there's
nothing in the JPA Details View, only the message
"Details are not available for the current selection", even though I'm
with the
entity Funcionario selected in the Package Explorer and in the editor.
However,
the entity is listed in the JPA Structure, but when I click on it I get a
dialog
with this error message:
An error has ocurred. See error log for more details.
Reason:
java.util.NoSuchElementException
and the .log file reports this for the error:
!ENTRY org.eclipse.jface 4 2 2007-06-11 10:23:48.468
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.util.NoSuchElementException
at
org.eclipse.jpt.db.internal.DTPDatabaseWrapper.getDefaultCat alogName(DTPDatabaseWrapper.java:197)
at
org.eclipse.jpt.ui.internal.mappings.details.CatalogCombo.po pulateDefaultCatalogName(CatalogCombo.java:243)
at
org.eclipse.jpt.ui.internal.mappings.details.CatalogCombo.po pulateCatalogCombo(CatalogCombo.java:223)
at
org.eclipse.jpt.ui.internal.mappings.details.CatalogCombo.do Populate(CatalogCombo.java:197)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.mappings.details.TableComposite. doPopulate(TableComposite.java:111)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.mappings.details.EntityComposite .doPopulate(EntityComposite.java:185)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.details.PersistentTypeDetailsPag e.populateMappingPage(PersistentTypeDetailsPage.java:223)
at
org.eclipse.jpt.ui.internal.details.PersistentTypeDetailsPag e.populateMappingComboAndPage(PersistentTypeDetailsPage.java :216)
at
org.eclipse.jpt.ui.internal.details.PersistentTypeDetailsPag e.doPopulate(PersistentTypeDetailsPage.java:179)
at
org.eclipse.jpt.ui.internal.details.BaseJpaDetailsPage.doPop ulate(BaseJpaDetailsPage.java:52)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.details.BaseJpaDetailsPage.popul ate(BaseJpaDetailsPage.java:47)
at
org.eclipse.jpt.ui.internal.views.JpaDetailsView.setCurrentP age(JpaDetailsView.java:135)
at
org.eclipse.jpt.ui.internal.views.JpaDetailsView.select(JpaD etailsView.java:60)
at
org.eclipse.jpt.ui.internal.selection.JpaDetailsSelectionPar ticipant.selectionChanged(JpaDetailsSelectionParticipant.jav a:31)
at
org.eclipse.jpt.ui.internal.selection.SelectionManager.fireS electionChange(SelectionManager.java:178)
at
org.eclipse.jpt.ui.internal.selection.SelectionManager.selec t(SelectionManager.java:157)
at
org.eclipse.jpt.ui.internal.selection.JpaStructureSelectionP articipant$StructureViewSelectionListener.selectionChanged(J paStructureSelectionParticipant.java:53)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:850)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 3)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2044)
at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1138)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1168)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:221)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
I would like to have your help to solve this problem
(the error Schema "MARCOS" cannot be resolved for table "GE_FUNCIONARIOS")
as I'm stuck with it and unable to proceed. It seems like a simple
problem, but
the solution is getting hard to appear. Another user advised me to create
an
orm.xml file with this content:
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" version="1.0">
<persistence-unit-metadata>
<persistence-unit-defaults>
<schema>MARCOS</schema>
</persistence-unit-defaults>
</persistence-unit-metadata>
</entity-mappings>
but it also didn't help. The error message didn't disappear.
Thank you very much.
Marcos
|
|
| | |
Re: Error: Schema "MARCOS" cannot be resolved for table "GE_FUNCIONARIOS" [message #434461 is a reply to message #434459] |
Tue, 12 June 2007 13:44 |
Neil Hauge Messages: 475 Registered: July 2009 |
Senior Member |
|
|
Marcos,
You should take this thread over to the eclipse.dtp newsgroup so we can
get to the root of the issue. I am unable to cross post it from here, but
I recommend you take the information that we have gathered here and post
to eclipse.dtp with this information and ask for help. You can cross post
to the dali newsgroup as well. The DTP group won't be able to help you
with Dali specific problems, but can better help you specific database
metadata related issues it seems you are having.
Hope this helps,
Neil
Marcos wrote:
> Neil Hauge wrote:
>> You say there is nothing under Schemas. Are you able to browse the Tables
>> you are interested in mapping in the Data Source Explorer? I just want to
>> make sure I understand what you are seeing. It is possible that the DTP
>> component isn't functioning correctly for some reason.
>> Neil
> Hello, Neil!
> Yes, in my last reply there was nothing under Schemas, but for some reason
> there are now. I can see now many schemas (user names) listed there,
> inclusive the "MARCOS" schema, but there is nothing in the schema folders
> of the "MARCOS" schema (the same with the other schema folders). I mean
> that the Tables folder under the schema folder has nothing. There are not
> tables there. The same happens with the Dependencies, Stored Procedures,
> User-Defined Functions and Views folders. Do you know the reason why it's
> happaning and what I can do to make the tables appear?
> Thank you.
> Marcos
|
|
| | | | |
Re: Error: Schema "MARCOS" cannot be resolved for table "GE_FUNCIONARIOS" [message #599537 is a reply to message #434452] |
Mon, 11 June 2007 13:35 |
Marcos Messages: 68 Registered: July 2009 |
Member |
|
|
Hello, Neil!
> It looks like MARCOS is the user name of your connection and therefore the
default schema.
Yes, MARCOS is the user name of my connection. I just didn't know that
would be
the name of the default schema. Here is my connection settings:
Database.: DBTESEUS
URL......: jdbc:sqlserver://SERVDEG;databaseName=DBTESEUS
User name: MARCOS
Password.: ---
> Are you able to browse this schema in the Data Source Explorer?
Yes, and it is connected there. The Data Source Explorer shows:
Databases -> SQL Server (Microsoft SQL Server v. 8.0.2039) -> DBTESEUS ->
Catalogs -> DBTeseus -> Schemas
There are other Catalogs too other than DBTeseus, but there's nothing
under Schemas.
> Also, click on the Schema combo box in the Entity UI in the JPA Details View
> and see if there are other schema choices displayed.
I have to say that the project where are my entities is not a JPA Project,
but
an EJB Project. But I choose to the JPA Development perspective and there's
nothing in the JPA Details View, only the message
"Details are not available for the current selection", even though I'm
with the
entity Funcionario selected in the Package Explorer and in the editor.
However,
the entity is listed in the JPA Structure, but when I click on it I get a
dialog
with this error message:
An error has ocurred. See error log for more details.
Reason:
java.util.NoSuchElementException
and the .log file reports this for the error:
!ENTRY org.eclipse.jface 4 2 2007-06-11 10:23:48.468
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.util.NoSuchElementException
at
org.eclipse.jpt.db.internal.DTPDatabaseWrapper.getDefaultCat alogName(DTPDatabaseWrapper.java:197)
at
org.eclipse.jpt.ui.internal.mappings.details.CatalogCombo.po pulateDefaultCatalogName(CatalogCombo.java:243)
at
org.eclipse.jpt.ui.internal.mappings.details.CatalogCombo.po pulateCatalogCombo(CatalogCombo.java:223)
at
org.eclipse.jpt.ui.internal.mappings.details.CatalogCombo.do Populate(CatalogCombo.java:197)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.mappings.details.TableComposite. doPopulate(TableComposite.java:111)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.mappings.details.EntityComposite .doPopulate(EntityComposite.java:185)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.details.PersistentTypeDetailsPag e.populateMappingPage(PersistentTypeDetailsPage.java:223)
at
org.eclipse.jpt.ui.internal.details.PersistentTypeDetailsPag e.populateMappingComboAndPage(PersistentTypeDetailsPage.java :216)
at
org.eclipse.jpt.ui.internal.details.PersistentTypeDetailsPag e.doPopulate(PersistentTypeDetailsPage.java:179)
at
org.eclipse.jpt.ui.internal.details.BaseJpaDetailsPage.doPop ulate(BaseJpaDetailsPage.java:52)
at
org.eclipse.jpt.ui.internal.details.BaseJpaController.popula te(BaseJpaController.java:69)
at
org.eclipse.jpt.ui.internal.details.BaseJpaDetailsPage.popul ate(BaseJpaDetailsPage.java:47)
at
org.eclipse.jpt.ui.internal.views.JpaDetailsView.setCurrentP age(JpaDetailsView.java:135)
at
org.eclipse.jpt.ui.internal.views.JpaDetailsView.select(JpaD etailsView.java:60)
at
org.eclipse.jpt.ui.internal.selection.JpaDetailsSelectionPar ticipant.selectionChanged(JpaDetailsSelectionParticipant.jav a:31)
at
org.eclipse.jpt.ui.internal.selection.SelectionManager.fireS electionChange(SelectionManager.java:178)
at
org.eclipse.jpt.ui.internal.selection.SelectionManager.selec t(SelectionManager.java:157)
at
org.eclipse.jpt.ui.internal.selection.JpaStructureSelectionP articipant$StructureViewSelectionListener.selectionChanged(J paStructureSelectionParticipant.java:53)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:850)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 3)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer .java:160)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(S tructuredViewer.java:2044)
at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(Stru cturedViewer.java:1138)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected( StructuredViewer.java:1168)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenS trategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.ja va:221)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
I would like to have your help to solve this problem
(the error Schema "MARCOS" cannot be resolved for table "GE_FUNCIONARIOS")
as I'm stuck with it and unable to proceed. It seems like a simple
problem, but
the solution is getting hard to appear. Another user advised me to create
an
orm.xml file with this content:
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" version="1.0">
<persistence-unit-metadata>
<persistence-unit-defaults>
<schema>MARCOS</schema>
</persistence-unit-defaults>
</persistence-unit-metadata>
</entity-mappings>
but it also didn't help. The error message didn't disappear.
Thank you very much.
Marcos
|
|
| | |
Re: Error: Schema "MARCOS" cannot be resolved for table "GE_FUNCIONARIOS" [message #600047 is a reply to message #434459] |
Tue, 12 June 2007 13:44 |
Neil Hauge Messages: 475 Registered: July 2009 |
Senior Member |
|
|
Marcos,
You should take this thread over to the eclipse.dtp newsgroup so we can
get to the root of the issue. I am unable to cross post it from here, but
I recommend you take the information that we have gathered here and post
to eclipse.dtp with this information and ask for help. You can cross post
to the dali newsgroup as well. The DTP group won't be able to help you
with Dali specific problems, but can better help you specific database
metadata related issues it seems you are having.
Hope this helps,
Neil
Marcos wrote:
> Neil Hauge wrote:
>> You say there is nothing under Schemas. Are you able to browse the Tables
>> you are interested in mapping in the Data Source Explorer? I just want to
>> make sure I understand what you are seeing. It is possible that the DTP
>> component isn't functioning correctly for some reason.
>> Neil
> Hello, Neil!
> Yes, in my last reply there was nothing under Schemas, but for some reason
> there are now. I can see now many schemas (user names) listed there,
> inclusive the "MARCOS" schema, but there is nothing in the schema folders
> of the "MARCOS" schema (the same with the other schema folders). I mean
> that the Tables folder under the schema folder has nothing. There are not
> tables there. The same happens with the Dependencies, Stored Procedures,
> User-Defined Functions and Views folders. Do you know the reason why it's
> happaning and what I can do to make the tables appear?
> Thank you.
> Marcos
|
|
| | | |
Goto Forum:
Current Time: Mon Sep 23 15:59:00 GMT 2024
Powered by FUDForum. Page generated in 0.04930 seconds
|