[JBoss JIRA] (TEIIDDES-2055) HTTP 406 Importing Generated REST Service as Source
by Ted Jones (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2055?page=com.atlassian.jira.plu... ]
Ted Jones edited comment on TEIIDDES-2055 at 2/17/14 4:49 PM:
--------------------------------------------------------------
This is due to TeiidXmlImportSourcePage hard-coding the Content-Type on the HttpConnection to application/xml. The generated REST service sets the charset and so the 406 is thrown. Changing TeiidXmlImportSourcePage to use Content-Type=application/xml;charset=MacRoman (in my case) fixes this. This will be an issue for any REST service that specifies anything other than application/xml. We should allow the user to override the HTTP Headers in the importer.
was (Author: tejones):
This is due to TeiidXmlImportSourcePage hard-coding the Content-Type on the HttpConnection to application/xml. The generated REST service sets the charset and so the 406 is thrown. Changing TeiidXmlImportSourcePage to use Content-Type=application/xml;charset=MacRoman (in my case) fixes this. This will be an issue for any REST service that specifies We should allow the user to override the HTTP Headers in the importer.
> HTTP 406 Importing Generated REST Service as Source
> ---------------------------------------------------
>
> Key: TEIIDDES-2055
> URL: https://issues.jboss.org/browse/TEIIDDES-2055
> Project: Teiid Designer
> Issue Type: Bug
> Components: Web Services Support
> Affects Versions: 8.3.1
> Reporter: Ted Jones
> Assignee: Ted Jones
> Fix For: 8.4, 8.3.2
>
>
> I generated a REST service from Designer and then tried to use as a source. I received a 406 (Not acceptable) error.
--
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
12 years, 1 month
[JBoss JIRA] (TEIIDDES-2055) HTTP 406 Importing Generated REST Service as Source
by Ted Jones (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2055?page=com.atlassian.jira.plu... ]
Ted Jones commented on TEIIDDES-2055:
-------------------------------------
This is due to TeiidXmlImportSourcePage hard-coding the Content-Type on the HttpConnection to application/xml. The generated REST service sets the charset and so the 406 is thrown. Changing TeiidXmlImportSourcePage to use Content-Type=application/xml;charset=MacRoman (in my case) fixes this. This will be an issue for any REST service that specifies We should allow the user to override the HTTP Headers in the importer.
> HTTP 406 Importing Generated REST Service as Source
> ---------------------------------------------------
>
> Key: TEIIDDES-2055
> URL: https://issues.jboss.org/browse/TEIIDDES-2055
> Project: Teiid Designer
> Issue Type: Bug
> Components: Web Services Support
> Affects Versions: 8.3.1
> Reporter: Ted Jones
> Assignee: Ted Jones
> Fix For: 8.4, 8.3.2
>
>
> I generated a REST service from Designer and then tried to use as a source. I received a 406 (Not acceptable) error.
--
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
12 years, 1 month
[JBoss JIRA] (TEIIDDES-2056) NPE while creating multiple views from Flat File import
by Barry LaFond (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2056?page=com.atlassian.jira.plu... ]
Barry LaFond updated TEIIDDES-2056:
-----------------------------------
Attachment: customers_project.zip
> NPE while creating multiple views from Flat File import
> -------------------------------------------------------
>
> Key: TEIIDDES-2056
> URL: https://issues.jboss.org/browse/TEIIDDES-2056
> Project: Teiid Designer
> Issue Type: Bug
> Components: Import/Export
> Affects Versions: 8.3.1
> Reporter: Barry LaFond
> Assignee: Barry LaFond
> Fix For: 8.4, 8.3.2
>
> Attachments: customers_project.zip
>
>
> With the attached project set, try to import the third EU text file: eucustomers_customer.txt file.
> Get NPE:
> {code}
> java.lang.NullPointerException
> at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportViewModelPage.viewAlreadyExists(TeiidMetadataImportViewModelPage.java:621)
> at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportViewModelPage.validatePage(TeiidMetadataImportViewModelPage.java:433)
> at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportViewModelPage.setVisible(TeiidMetadataImportViewModelPage.java:183)
> at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1259)
> at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1238)
> at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1227)
> {code}
--
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
12 years, 1 month
[JBoss JIRA] (TEIIDDES-2056) NPE while creating multiple views from Flat File import
by Barry LaFond (JIRA)
Barry LaFond created TEIIDDES-2056:
--------------------------------------
Summary: NPE while creating multiple views from Flat File import
Key: TEIIDDES-2056
URL: https://issues.jboss.org/browse/TEIIDDES-2056
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 8.3.1
Reporter: Barry LaFond
Assignee: Barry LaFond
Fix For: 8.4, 8.3.2
With the attached project set, try to import the third EU text file: eucustomers_customer.txt file.
Get NPE:
{code}
java.lang.NullPointerException
at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportViewModelPage.viewAlreadyExists(TeiidMetadataImportViewModelPage.java:621)
at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportViewModelPage.validatePage(TeiidMetadataImportViewModelPage.java:433)
at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportViewModelPage.setVisible(TeiidMetadataImportViewModelPage.java:183)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1259)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1238)
at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1227)
{code}
--
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
12 years, 1 month