Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when create Microservice project #324

Open
ArokLair opened this issue Aug 14, 2019 · 2 comments
Open

Error when create Microservice project #324

ArokLair opened this issue Aug 14, 2019 · 2 comments

Comments

@ArokLair
Copy link

Overview of the issue
Expected Outcome
Current Outcome
Steps to Reproduce(Only for bug reports)
Jeddict Version(s)
@ArokLair
Copy link
Author

Message : Option 'js.nashorn-compat' is experimental and must be enabled with allowExperimentalOptions(). Do not use experimental options in production environments.

StackTrace :
java.lang.IllegalArgumentException: Option 'js.nashorn-compat' is experimental and must be enabled with allowExperimentalOptions(). Do not use experimental options in production environments.
at com.oracle.truffle.polyglot.OptionValuesImpl.failExperimental(OptionValuesImpl.java:195)
at com.oracle.truffle.polyglot.OptionValuesImpl.findDescriptor(OptionValuesImpl.java:187)
at com.oracle.truffle.polyglot.OptionValuesImpl.put(OptionValuesImpl.java:138)
at com.oracle.truffle.polyglot.OptionValuesImpl.putAll(OptionValuesImpl.java:133)
at com.oracle.truffle.polyglot.PolyglotEngineImpl.(PolyglotEngineImpl.java:244)
at com.oracle.truffle.polyglot.PolyglotEngineImpl.(PolyglotEngineImpl.java:172)
at com.oracle.truffle.polyglot.PolyglotImpl.buildEngine(PolyglotImpl.java:214)
at org.graalvm.polyglot.Engine$Builder.build(Engine.java:505)
at org.netbeans.libs.graalsdk.impl.GraalEnginesProvider.enumerateLanguages(GraalEnginesProvider.java:59)
at org.netbeans.libs.graalsdk.impl.GraalEnginesProvider.factories(GraalEnginesProvider.java:49)
at org.netbeans.api.scripting.Scripting$EngineManager.populateExtras(Scripting.java:148)
at org.netbeans.api.scripting.Scripting$EngineManager.(Scripting.java:133)
at org.netbeans.api.scripting.Scripting.build(Scripting.java:120)
at org.netbeans.api.scripting.Scripting.createManager(Scripting.java:65)
at io.github.jeddict.jcode.util.FileUtil.getScriptEngine(FileUtil.java:309)
at io.github.jeddict.jcode.util.FileUtil.expandTemplate(FileUtil.java:247)
at io.github.jeddict.jcode.util.FileUtil.expandTemplate(FileUtil.java:232)
at io.github.jeddict.jcode.util.FileUtil.expandTemplate(FileUtil.java:215)
at io.github.jeddict.repository.RepositoryGenerator.generateAbstract(RepositoryGenerator.java:184)
at io.github.jeddict.repository.RepositoryGenerator.execute(RepositoryGenerator.java:114)
at io.github.jeddict.jcode.generator.ApplicationGenerator.execute(ApplicationGenerator.java:260)
at io.github.jeddict.jcode.generator.ApplicationGenerator.generateCRUD(ApplicationGenerator.java:271)
at io.github.jeddict.jcode.generator.ApplicationGenerator.generate(ApplicationGenerator.java:119)
at io.github.jeddict.jpa.modeler.source.generator.task.SourceCodeGeneratorTask.exportCode(SourceCodeGeneratorTask.java:141)
at io.github.jeddict.jpa.modeler.source.generator.task.SourceCodeGeneratorTask.begin(SourceCodeGeneratorTask.java:87)
at io.github.jeddict.jcode.task.AbstractNBTask.beginTask(AbstractNBTask.java:444)
at io.github.jeddict.jcode.task.AbstractNBTask.run(AbstractNBTask.java:84)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

ModelerFile :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jpa:entity-mappings ptype="MICROSERVICE" ppkg="com.lafabril.ec.demoms.resources" epkg="domain" v="5.3" rws="_15657922746472" Pws="_15657922746472" cws="_15657922746472" persistenceUnitName="DEFAULT_PU" sm="false" xs="false" id="_15657922746471" xsi:schemaLocation="http:https://java.sun.com/xml/ns/persistence/orm orm_2_1.xsd" xmlns:java="http:https://jcp.org/en/jsr/detail?id=270" xmlns:jpa="http:https://java.sun.com/xml/ns/persistence/orm" xmlns:xs="http:https://www.w3.org/2001/XMLSchema" xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance">
    <jpa:entity compositePrimaryKeyClass="ProductoPK" abs="false" class="Producto" pclass="Entity_1" v="true" jbn="false" xre="false" m="false" rootElement="_15657922746471" id="_15657922768633">
        <jpa:ath>lulloa</jpa:ath>
        <jpa:removedAttributes/>
        <jpa:attributes>
            <jpa:basic attribute-type="String" v="true" xvt="" name="descripcion" pname="attribute" id="_15657922836596">
                <jpa:xwm/>
                <jpa:xm/>
            </jpa:basic>
            <jpa:id attribute-type="Long" v="true" xvt="" name="id" id="_15657922768944">
                <jpa:xwm/>
                <jpa:xm/>
                <jpa:generated-value strategy="DEFAULT"/>
            </jpa:id>
        </jpa:attributes>
        <jpa:nq e="false" name="Producto.findAll">
            <jpa:query>Select e from Producto e</jpa:query>
        </jpa:nq>
        <jpa:nq e="false" name="Producto.findByDescripcion">
            <jpa:query>Select p from Producto p where p.descripcion=:descripcion</jpa:query>
        </jpa:nq>
    </jpa:entity>
    <jpa:wsl>
        <jpa:ws n="Main" id="_15657922746472">
            <i ref="_15657922768633" x="434" y="121"/>
        </jpa:ws>
    </jpa:wsl>
</jpa:entity-mappings>

@jGauravGupta
Copy link
Member

Please share the environment(JDK version etc) and other details as mentioned in the ticket template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants