You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ron Gavlin (JIRA)" <tu...@ws.apache.org> on 2007/09/12 18:50:32 UTC

[jira] Created: (TUSCANY-1688) XSD2JavaGenerator throws IOException:Access is denied with complexType named "Con"

XSD2JavaGenerator throws IOException:Access is denied with complexType named "Con"
----------------------------------------------------------------------------------

                 Key: TUSCANY-1688
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1688
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Tools
    Affects Versions: Java-SDO-Next
         Environment: Windows XP SP2 w/Sun JDK 1.4.2_11
            Reporter: Ron Gavlin


I have an XML Schema that contains a complexType named "Con". The following error output is displayed to stdout:

>> Generating Con
>> Generating Java interface test.Con
>> Generating /TargetProject/test/Con.java
>> Examining old /TargetProject/test/Con.java
org.eclipse.emf.common.util.WrappedException: java.io.IOException: Access is denied
at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generateJava (AbstractGeneratorAdapter.java:1046)
at org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateInterface (GenClassGeneratorAdapter.java:123)
at org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateModel (GenClassGeneratorAdapter.java:106)
at org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter.doGenerate (GenBaseGeneratorAdapter.java:214)
at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generate (AbstractGeneratorAdapter.java:275)
at org.eclipse.emf.codegen.ecore.generator.Generator.generate (Generator.java:600)
at org.eclipse.emf.codegen.ecore.generator.Generator.generate (Generator.java:512)
at org.apache.tuscany.sdo.generate.JavaGenerator.generateFromGenModel (JavaGenerator.java:515)
...

It seems as if the type name 'Con' conflicts with the operating system's console device named 'Con'. The code first checks to see if the file exists to decide if a merge is required. The code seems to incorrectly find the file/device named 'Con' and then tries to access it in error. I suspect this is an Eclipse EMF problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1688) XSD2JavaGenerator throws IOException:Access is denied with complexType named "Con"

Posted by "Ron Gavlin (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567625#action_12567625 ] 

Ron Gavlin commented on TUSCANY-1688:
-------------------------------------

Added as Eclipse EMF Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=218493

> XSD2JavaGenerator throws IOException:Access is denied with complexType named "Con"
> ----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1688
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1688
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>         Environment: Windows XP SP2 w/Sun JDK 1.4.2_11
>            Reporter: Ron Gavlin
>             Fix For: Java-SDO-Next
>
>
> I have an XML Schema that contains a complexType named "Con". The following error output is displayed to stdout:
> >> Generating Con
> >> Generating Java interface test.Con
> >> Generating /TargetProject/test/Con.java
> >> Examining old /TargetProject/test/Con.java
> org.eclipse.emf.common.util.WrappedException: java.io.IOException: Access is denied
> at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generateJava (AbstractGeneratorAdapter.java:1046)
> at org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateInterface (GenClassGeneratorAdapter.java:123)
> at org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateModel (GenClassGeneratorAdapter.java:106)
> at org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter.doGenerate (GenBaseGeneratorAdapter.java:214)
> at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generate (AbstractGeneratorAdapter.java:275)
> at org.eclipse.emf.codegen.ecore.generator.Generator.generate (Generator.java:600)
> at org.eclipse.emf.codegen.ecore.generator.Generator.generate (Generator.java:512)
> at org.apache.tuscany.sdo.generate.JavaGenerator.generateFromGenModel (JavaGenerator.java:515)
> ...
> It seems as if the type name 'Con' conflicts with the operating system's console device named 'Con'. The code first checks to see if the file exists to decide if a merge is required. The code seems to incorrectly find the file/device named 'Con' and then tries to access it in error. I suspect this is an Eclipse EMF problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1688) XSD2JavaGenerator throws IOException:Access is denied with complexType named "Con"

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-1688:
------------------------------------


I did a check for EMF bugs raised for this issue,  but couldn't find one.  Do you know if this issue has been addressed in EMF?

> XSD2JavaGenerator throws IOException:Access is denied with complexType named "Con"
> ----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1688
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1688
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>         Environment: Windows XP SP2 w/Sun JDK 1.4.2_11
>            Reporter: Ron Gavlin
>             Fix For: Java-SDO-Next
>
>
> I have an XML Schema that contains a complexType named "Con". The following error output is displayed to stdout:
> >> Generating Con
> >> Generating Java interface test.Con
> >> Generating /TargetProject/test/Con.java
> >> Examining old /TargetProject/test/Con.java
> org.eclipse.emf.common.util.WrappedException: java.io.IOException: Access is denied
> at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generateJava (AbstractGeneratorAdapter.java:1046)
> at org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateInterface (GenClassGeneratorAdapter.java:123)
> at org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateModel (GenClassGeneratorAdapter.java:106)
> at org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter.doGenerate (GenBaseGeneratorAdapter.java:214)
> at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generate (AbstractGeneratorAdapter.java:275)
> at org.eclipse.emf.codegen.ecore.generator.Generator.generate (Generator.java:600)
> at org.eclipse.emf.codegen.ecore.generator.Generator.generate (Generator.java:512)
> at org.apache.tuscany.sdo.generate.JavaGenerator.generateFromGenModel (JavaGenerator.java:515)
> ...
> It seems as if the type name 'Con' conflicts with the operating system's console device named 'Con'. The code first checks to see if the file exists to decide if a merge is required. The code seems to incorrectly find the file/device named 'Con' and then tries to access it in error. I suspect this is an Eclipse EMF problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org