Failed to Load the Repository, No Panic! Just follow! [iWay]

iWay SM/AM 5.5

I created a new iWay configuration in iWay Development to connect SAP QAS system. Then I created the Windows service for the configuration.

But when I opened iWay Designer and tried to connect my repository I got this message:

Failed to load the repository ‘xxx’
Error processing iWay repository java.lang.NullPointerException

I don’t believe you iWay… Give me some meaningful errors. What does “java.lang.NullPointerException” mean? I can cry right now, because my all repository is gone!

Luckily I found the problem’s solution on Release Notes iWay 5.5 Service Manager document.
Here is the answer:

The following error message is generated if iWay Designer runs out of memory:
Failed to load the repository ‘xxx’
Error processing iWay repository:
java.lang.NullPointerException

As a result of this error, the user is unable to save their process flow.
As a workaround, perform the following steps:

  • Close iWay Designer.
  • Stop iWay Service Manager.
  • Delete the following file:
  • [iWayHome]\etc\repository\designer\PFREPOSITORYLOOKUP.xml
  • Start iWay Service Manager.
  • Open iWay Designer.

I did it and it worked I connected the repository, but all my objects are gone! No panic! It seems I need to create everything again. So Right click on the repository, click New Project and choose proper configuration for the project. Here you go, your project is ready and successfully connected to the configuration. But there is one more step you have to is right click Processes node and choose Import From - Configuration and import all processes.

The document says:

To prevent this error from occurring in the future, add a Windows Environment Variable named _java_options and set its value to -Xmx512m.

Instead of adding a Windows Environment for that, you can setup JVM options of the configuration.

  • Open iWay Service Manager / Adapter Manager
  • Choose Configuration – Java Properties – JVM Options
  • Enter -Xmx512M (it means allocated 512 MB memory)
  • Save and restart the configuration.

iWay doesn’t give meaningful errors, but if you are lucky you will find your path. So what we learned today if you see an error “java.lang.NullPointerException“, it means iWay is starving memory. Feed it with memory!

Reference:

Tags: , , , ,

Leave a Reply