Quantcast
Viewing all articles
Browse latest Browse all 3876

Error while accessing KM Resource using Java Scheduler Task

Hi All,

 

I have created a Java Scheduler Job in EP 7.4 SP11. The job itself works properly and I am able to print log statements in default trace.

 

In my scheduler code, I am trying to access KM Resources usnig Resource Factory.

 

But as soon as I am trying to get an instance of ResourceFactory i.e. ResourceFactory.getInstance(), I am getting this error in default trace,

Image may be NSFW.
Clik here to view.
trace.png

"Portal runtime hasn't finished starting applications thus KM is not fully started yet. Please try again later. com.sapportals.wcm.repository.runtime.CmStartupException: Portal runtime hasn't finished starting applications thus KM is not fully started yet. Please try again later."

 

Thus I am not able to get a ResourceFactory instance and consequently not able to work with KM resources.

 

The same code when I write in an Abstract Portal Component, it works like charm.

 

I have included all the required dependencies in the EAR project so it should not be any issue with that.

 

The issue persists even after restarting the Portal server.

 

Please let me know what could be the problem here.

 

 

Regards,

Saurabh Agarwal


Viewing all articles
Browse latest Browse all 3876

Trending Articles