[JBoss JIRA] (TEIIDDES-2089) Teiid connection import throws "java.lang.IllegalArgumentException: The supplied model folder refers to an existing non-model project" on Windows
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2089?page=com.atlassian.jira.plu... ]
Barry LaFond edited comment on TEIIDDES-2089 at 3/21/14 9:32 AM:
-----------------------------------------------------------------
Here is the code that throws the exception ...
{code:title=DdlImporter}
public void setModelFolder(String modelFolderName ) {
modelFolder = null;
//chgProcessor = null;
if (modelFolderName == null) throw new EmptyArgumentException("modelFolderName"); //$NON-NLS-1$
modelFolderName = modelFolderName.trim();
IPath modelFolderPath = Path.fromPortableString(modelFolderName).makeAbsolute();
if (modelFolderName.isEmpty() || modelFolderPath.segmentCount() == 0) throw new EmptyArgumentException("modelFolderName"); //$NON-NLS-1$
// Verify project is valid
String projectName = modelFolderPath.segment(0);
IWorkspace workspace = ModelerCore.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
if (root.findMember(projectName) != null) {
boolean found = false;
for (IProject project : projects)
if (projectName.equals(project.getName())) {
found = true;
break;
}
if (!found) throw new IllegalArgumentException(DdlImporterI18n.MODEL_FOLDER_IN_NON_MODEL_PROJECT_MSG);
}
{code}
was (Author: blafond):
Here is the code that throws the exception ...
{code:title=DdlImporter}
public void setModelFolder(String modelFolderName ) {
modelFolder = null;
//chgProcessor = null;
if (modelFolderName == null) throw new EmptyArgumentException("modelFolderName"); //$NON-NLS-1$
modelFolderName = modelFolderName.trim();
IPath modelFolderPath = Path.fromPortableString(modelFolderName).makeAbsolute();
if (modelFolderName.isEmpty() || modelFolderPath.segmentCount() == 0) throw new EmptyArgumentException("modelFolderName"); //$NON-NLS-1$
// Verify project is valid
String projectName = modelFolderPath.segment(0);
IWorkspace workspace = ModelerCore.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
if (root.findMember(projectName) != null) {
boolean found = false;
for (IProject project : projects)
if (projectName.equals(project.getName())) {
found = true;
break;
}
if (!found) throw new IllegalArgumentException(DdlImporterI18n.MODEL_FOLDER_IN_NON_MODEL_PROJECT_MSG);
}
// Verify folder is valid
if (!workspace.validatePath(modelFolderPath.toString(), IResource.PROJECT | IResource.FOLDER).isOK()) throw new IllegalArgumentException(
{code}
> Teiid connection import throws "java.lang.IllegalArgumentException: The supplied model folder refers to an existing non-model project" on Windows
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TEIIDDES-2089
> URL: https://issues.jboss.org/browse/TEIIDDES-2089
> Project: Teiid Designer
> Issue Type: Bug
> Affects Versions: 8.3.2
> Reporter: Lucie Fabrikova
>
> Import-> Teiid designer -> Teiid connection >> source model:
> Next button doesn't move to next page of wizard on Windows (both 7, XP), but throws following exception in error log:
> java.lang.IllegalArgumentException: The supplied model folder refers to an existing non-model project.
> at org.teiid.designer.ddl.importer.DdlImporter.setModelFolder(DdlImporter.java:344)
> at org.teiid.designer.teiidimporter.ui.wizard.TeiidImportManager.setTargetModelLocation(TeiidImportManager.java:433)
> at org.teiid.designer.teiidimporter.ui.wizard.TeiidImportWizard.init(TeiidImportWizard.java:134)
> at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:185)
> at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:104)
> at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSel
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (TEIIDDES-2089) Teiid connection import throws "java.lang.IllegalArgumentException: The supplied model folder refers to an existing non-model project" on Windows
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2089?page=com.atlassian.jira.plu... ]
Barry LaFond commented on TEIIDDES-2089:
----------------------------------------
Here is the code that throws the exception ...
{code:title=DdlImporter}
public void setModelFolder(String modelFolderName ) {
modelFolder = null;
//chgProcessor = null;
if (modelFolderName == null) throw new EmptyArgumentException("modelFolderName"); //$NON-NLS-1$
modelFolderName = modelFolderName.trim();
IPath modelFolderPath = Path.fromPortableString(modelFolderName).makeAbsolute();
if (modelFolderName.isEmpty() || modelFolderPath.segmentCount() == 0) throw new EmptyArgumentException("modelFolderName"); //$NON-NLS-1$
// Verify project is valid
String projectName = modelFolderPath.segment(0);
IWorkspace workspace = ModelerCore.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
if (root.findMember(projectName) != null) {
boolean found = false;
for (IProject project : projects)
if (projectName.equals(project.getName())) {
found = true;
break;
}
if (!found) throw new IllegalArgumentException(DdlImporterI18n.MODEL_FOLDER_IN_NON_MODEL_PROJECT_MSG);
}
// Verify folder is valid
if (!workspace.validatePath(modelFolderPath.toString(), IResource.PROJECT | IResource.FOLDER).isOK()) throw new IllegalArgumentException(
{code}
> Teiid connection import throws "java.lang.IllegalArgumentException: The supplied model folder refers to an existing non-model project" on Windows
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TEIIDDES-2089
> URL: https://issues.jboss.org/browse/TEIIDDES-2089
> Project: Teiid Designer
> Issue Type: Bug
> Affects Versions: 8.3.2
> Reporter: Lucie Fabrikova
>
> Import-> Teiid designer -> Teiid connection >> source model:
> Next button doesn't move to next page of wizard on Windows (both 7, XP), but throws following exception in error log:
> java.lang.IllegalArgumentException: The supplied model folder refers to an existing non-model project.
> at org.teiid.designer.ddl.importer.DdlImporter.setModelFolder(DdlImporter.java:344)
> at org.teiid.designer.teiidimporter.ui.wizard.TeiidImportManager.setTargetModelLocation(TeiidImportManager.java:433)
> at org.teiid.designer.teiidimporter.ui.wizard.TeiidImportWizard.init(TeiidImportWizard.java:134)
> at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:185)
> at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:104)
> at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSel
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (TEIIDDES-2088) Data preview throws No teiid instance found on Windows
by Lucie Fabrikova (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2088?page=com.atlassian.jira.plu... ]
Lucie Fabrikova deleted TEIIDDES-2088:
--------------------------------------
> Data preview throws No teiid instance found on Windows
> ------------------------------------------------------
>
> Key: TEIIDDES-2088
> URL: https://issues.jboss.org/browse/TEIIDDES-2088
> Project: Teiid Designer
> Issue Type: Bug
> Environment: Windows 7
> Reporter: Lucie Fabrikova
>
> Data preview fails with following exception:
> java.lang.Exception: No Teiid Instance found (server not started)
> at org.teiid.designer.runtime.TeiidServer.connect(TeiidServer.java:182)
> at org.teiid.designer.runtime.TeiidServer.dataSourceExists(TeiidServer.java:540)
> at org.teiid.designer.runtime.preview.PreviewManager.ensureConnectionInfoIsValid(PreviewManager.java:519)
> at org.teiid.designer.runtime.preview.PreviewManager.previewSetup(PreviewManager.java:1286)
> at org.teiid.designer.runtime.ui.preview.PreviewDataWorker$1.run(PreviewDataWorker.java:232)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (TEIIDDES-2088) Data preview throws No teiid instance found on Windows
by Lucie Fabrikova (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2088?page=com.atlassian.jira.plu... ]
Lucie Fabrikova closed TEIIDDES-2088.
-------------------------------------
Resolution: Rejected
> Data preview throws No teiid instance found on Windows
> ------------------------------------------------------
>
> Key: TEIIDDES-2088
> URL: https://issues.jboss.org/browse/TEIIDDES-2088
> Project: Teiid Designer
> Issue Type: Bug
> Affects Versions: 8.3.2
> Environment: Windows 7
> Reporter: Lucie Fabrikova
>
> Data preview fails with following exception:
> java.lang.Exception: No Teiid Instance found (server not started)
> at org.teiid.designer.runtime.TeiidServer.connect(TeiidServer.java:182)
> at org.teiid.designer.runtime.TeiidServer.dataSourceExists(TeiidServer.java:540)
> at org.teiid.designer.runtime.preview.PreviewManager.ensureConnectionInfoIsValid(PreviewManager.java:519)
> at org.teiid.designer.runtime.preview.PreviewManager.previewSetup(PreviewManager.java:1286)
> at org.teiid.designer.runtime.ui.preview.PreviewDataWorker$1.run(PreviewDataWorker.java:232)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (TEIIDDES-2088) Data preview throws No teiid instance found on Windows
by Lucie Fabrikova (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2088?page=com.atlassian.jira.plu... ]
Lucie Fabrikova commented on TEIIDDES-2088:
-------------------------------------------
I am sorry, today it works.
> Data preview throws No teiid instance found on Windows
> ------------------------------------------------------
>
> Key: TEIIDDES-2088
> URL: https://issues.jboss.org/browse/TEIIDDES-2088
> Project: Teiid Designer
> Issue Type: Bug
> Affects Versions: 8.3.2
> Environment: Windows 7
> Reporter: Lucie Fabrikova
>
> Data preview fails with following exception:
> java.lang.Exception: No Teiid Instance found (server not started)
> at org.teiid.designer.runtime.TeiidServer.connect(TeiidServer.java:182)
> at org.teiid.designer.runtime.TeiidServer.dataSourceExists(TeiidServer.java:540)
> at org.teiid.designer.runtime.preview.PreviewManager.ensureConnectionInfoIsValid(PreviewManager.java:519)
> at org.teiid.designer.runtime.preview.PreviewManager.previewSetup(PreviewManager.java:1286)
> at org.teiid.designer.runtime.ui.preview.PreviewDataWorker$1.run(PreviewDataWorker.java:232)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months