Skip to main content
Solved

Developer Studio - Exception while generating code (IFS Cloud 21r1)

  • September 24, 2021
  • 3 replies
  • 401 views

Forum|alt.badge.img+5

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 [jar: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

Best answer by Sahan Udana

HI Kamal.Nazzal,

 

I saw a similar error in this workplace post today. solution was to clear the cache. Kindly check this.

https://oneifs.workplace.com/groups/developerStudioUserCommunity/permalink/1047515922658988/

 

Regards,

Sahan

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

Forum|alt.badge.img+14
  • Superhero (Employee)
  • 169 replies
  • Answer
  • September 27, 2021

HI Kamal.Nazzal,

 

I saw a similar error in this workplace post today. solution was to clear the cache. Kindly check this.

https://oneifs.workplace.com/groups/developerStudioUserCommunity/permalink/1047515922658988/

 

Regards,

Sahan


Forum|alt.badge.img+5
  • Author
  • Do Gooder (Employee)
  • 8 replies
  • September 28, 2021

I did what was suggested in this post in workplace (https://oneifs.workplace.com/groups/developerStudioUserCommunity/permalink/1047515922658988/) , but it didn’t resolve my issue. 3 members of my team are having this issue when trying to generate code for 21r1 project.


The detail error message is:

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:

C:\Program Files\IFS\DeveloperStudio10.82\developer_studio\modules\ifs-dev-model-codegen-ibs.jar !/ifs/dev/model/codegen/apps20/lu/utility/templates/Utility.plsql.default.template

Any suggestion will be greatly appreciated.

Thanks


kavinduxo
Hero (Partner)
Forum|alt.badge.img+9
  • Hero (Partner)
  • 41 replies
  • October 26, 2021

Hi @kamal.nazzal 

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.

Location C:\Users\<User>\AppData\Roaming\DeveloperStudio

Once you reopen the developer studio it will create new folder as 10.82 and your issue will be solved.

Thanks and Regards,

Kavindu


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings