0 votes
1 view
Hi - I am not able to save a business model catalog. When i click Generate - i get "Error while generating model - Generic error".

LOG entry:

30 Dec 2018 00:48:24,577 ERROR it.eng.knowage.meta.generator.utils.Compiler.compile:125 - Cannot find Java System compiler during compilation of jpa classes, check if JDK is correctly installed.
30 Dec 2018 00:48:24,579 ERROR it.eng.knowage.meta.service.MetaService.buildModel:751 - Error during metamodel generation : java.lang.NullPointerException

I have correct JAVA_HOME, JRE_HOME and Path setup.

JAVA_HOME: C:\Program Files\Java\jdk1.8.0_151

JRE_HOME: C:\Program Files\Java\jre1.8.0_151

PATH: %JAVA_HOME%\bin

Steps I followed:

1. Added a Data Source

2. Added a Business Model Catalog, Default Model Category - selected Data Source.

a. clicked META WEB - selected one table as Physical and Business Model. (No edits on next step) Just save.

b. clicked GENERATE - Got this error pasted above.
Environment Knowage Version: 6.2.1, OS: Windows 10, Browser: Chrome, Tenant: DEFAULT_TENANT
asked Jan 2, 2019 in Business Model by ad (130 points) | 1 view

1 Answer

0 votes
Dear, the problem is about your environment because the Tomcat process doesn't read the JAVA_HOME and PATH variables.

We've encoutered this problem sometimes, check the user system variables.

Best Regards

Angelo
answered Jan 2, 2019 by abernabei (20,700 points)
Dear, I have the same problem and my two variables JAVA_HOME and JRE_HOME have these: /usr/lib/jvm/jre1.8.0_251/ values ​​and they are exported too.
I'm on Linux, I connect to the root user, I checked the variables, but it still gives me the same error when I generate the "Business Model":
       "Error while generating model
        Generic error "

I executed ./knowage_startup.sh being in root and from there I try java executing: java -version and it returns everything correct:

root @ YBS: / home / econtreras / RMS40 / Knowage-Server-CE / bin # java -version
       java version "1.8.0_251"
       Java (TM) SE Runtime Environment (build 1.8.0_251-b08)
       Java HotSpot (TM) 64-Bit Server VM (build 25.251-b08, mixed mode)


Could you please help me to keep moving forward and thank you very much,
--------------------------------------------------------

Estimado, tengo el mismo problema y mis dos variables JAVA_HOME y JRE_HOME tienen estos: /usr/lib/jvm/jre1.8.0_251/  valores y están exportadas tambien. 
Estoy en Linux, me conecto con el usuario root, verifiqué las variables, pero me sigue dando el mismo error cuan do genero el "Modelo de Negocio":

       "Error while generating model
        Generic error"

Yo ejecuté ./knowage_startup.sh    estando en root y desde alli pruebo java ejecutando: java -version  y devueleve todo correcto:

root@YBS:/home/econtreras/RMS40/Knowage-Server-CE/bin# java -version
        java version "1.8.0_251"
       Java(TM) SE Runtime Environment (build 1.8.0_251-b08) 
       Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)


Podrías por favor ayudarme para seguir avanzando y muchas gracias,

1,553 questions
1,017 answers
2,037 comments
2,567 users