Developer Studio - Exception while generating code (IFS Cloud 21r1)
Hi
I am getting error in IFS developer Studio when trying to generate code for any entity/utility/projection … in 21r1 project. The error is:
Exception while generating code for … Cannot open/read template file
in template pjar:file:/C:/Users/kanaus/AppData/Roaming/DeveloperStudio/10.82/modules/ifs-dev-model-codegen-ibs.jar!/ifs/dev/model/codegen/apps20/lu/utility/templates/Utility.plsql.default.template]
Any idea what is the problem and how to resolve it? (BTW, I reinstalled latest version of Developer Studio)
Thanks
Page 1 / 1
HI Kamal.Nazzal,
I saw a similar error in this workplace post today. solution was to clear the cache. Kindly check this.
java.io.FileNotFoundException: jar:file:/C:/Program%20Files/IFS/DeveloperStudio10.82/developer_studio/modules/ifs-dev-model-codegen-ibs.jar!/ifs/dev/model/codegenProjection-Nestedcrud.plsvc.default.template at org.netbeans.JarClassLoader$NbJarURLConnection.connect(JarClassLoader.java:1120) at org.netbeans.JarClassLoader$NbJarURLConnection.getInputStream(JarClassLoader.java:1156) at java.net.URL.openStream(URL.java:1045) at ifs.dev.model.codegen.CodeTemplate.readFileContent(CodeTemplate.java:141) Caused: ifs.dev.base.ApplicationException: Cannot open/read template file in template /jar:file:/C:/Program%20Files/IFS/DeveloperStudio10.82/developer_studio/modules/ifs-dev-model-codegen-ibs.jar!/ifs/dev/model/codegen/apps20/lu/utility/templates/Utility.plsql.default.template] at ifs.dev.model.codegen.CodeTemplate.readFileContent(CodeTemplate.java:154) at ifs.dev.model.codegen.CodeTemplate.<init>(CodeTemplate.java:122)
at ……...
Note: the error above is caused by not finding the jar file or the template in the jar file, but I checked and I can see the jar file and the template inside it in the same path as the error indicates:
Today I had the same issue and found a solution for this. You just need to close developer studio and navigate for the location below. You can delete the folder call 10.82 or rename it for something else(10.82_backup). Prefer to rename in case you need to restore it.