Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hi,

I am trying to create a data model with SQL Server database. When I click on Generate after selecting tables in META WEB, I am constantly receiving the error called: 

Error while generating model 

Generic error 

If someone can help me to solve this issue, it would be a great help.

Thank You

Environment Knowage 6.0 Windows Server
in Business Model by (490 points)
Please have a look at the log files on the server and see if there is any related error.
Thank you for responding to my question. Here are the logs.

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.
ERROR it.eng.knowage.meta.service.MetaService.buildModel:751 - Error during metamodel generation : java.lang.NullPointerException

Well, I believe this might be the JAVA_HOME, JRE_HOME and PATH issue; however, I have defined all three variables in my system variable property and still does not want to work.

JAVA_HOME: C:\Program Files\Java\jdk-9.0.4

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

PATH: %JAVA_HOME%\bin;

Let me know if I have done something wrong.
I see that you are currently using JDK 1.9 that is not yet supported by Knowage, Try using JDK 1.8.
Also if you open a command prompt and write "java -version" check the version returned.
Well, in my production environment, I have java 1.8.0_191 installed, but the same problem occurs.  

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

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

PATH: %JAVA_HOME%\jre\bin\server;%JAVA_HOME%\bin;

CMD Results:

java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

Thank You.

Check that when you start Knowage your application server (tomcat) is actually using that JDK.

It is using system variables, the ones which I have mentioned above.
Is there anywhere else which could be wrong and creating this issue?

Thank You.
Where you able to resolve this? I am getting same error.
No, still same error. If you find solution, please post the answer here. I will appreciate it.
Got past this...remove the JRE_HOME and start new knowage instance.
Thank you for your reply, but start new knowage instance means installing new instance or just restart knowage?
I just re-start mi pc I thne work fine to me, thanks!!!

Please log in or register to answer this question.

...