Skip to Content
author's profile photo Former Member
Former Member

portal service getting "null" after server restart & sometimes randomly

Hi,

We have a portal service running on our portal. It's a simple portal service exposing a few methods.

Everything works fine when i deployed the dc [_DC Type_: Portal application standalone (Packed in SDA) ].

1) But if the server is restarted, and we try to access this portal service, we get NULL exception. It works fine if re-deploy DC again.

2) And sometimes, this occurs even if the server isn't restarted.

I have given startup property in the portalapp.xml

Plz find below the portalapp.xml

<?xml version="1.0" encoding="UTF-8"?>
<application>
  <application-config>
    <property name="SharingReference" value="com.sap.portal.compatibility50.cache"/>
    <property name="startup" value="true"/>
    <property name="PrivateSharingReference" value="com.sap.portal.ivs.connectorservice"/>
  </application-config>
  <components/>
  <services>
    <service name="MyDataService">
      <service-config>
        <property name="className" value="com.pkg1.MyDataService"/>
        <property name="startup" value="true"/>
      </service-config>
...
...
    </service>
  </services>
</application>

It would be great if anyone can help!

Thank you.

SK.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 29, 2010 at 04:52 AM

    SK,

    Please make sure that you have given the key under src-api -> I<Myservice> -> Set the Unique Key

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI,

      maybe a sample of portalapp.xml of a working service could help:

      <?xml version="1.0" encoding="UTF-8"?>
      <application>
        <application-config>
          <property name="SharingReference" value="........blahblahblah......"/>
          <property name="startup" value="true"/>
          <property name="releasable" value="false"/>
          <property name="ClassLoadingPolicy" value="CoreAccessInAPI,transitive"/>
          <property name="DeploymentPolicy" value="6.0"/>
        </application-config>
        <components/>
      

      Romano

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.