cancel
Showing results for 
Search instead for 
Did you mean: 

How does the file instance.properties get updated?

Former Member
0 Kudos

The J2EE Processes table of my server named ABC (shown in the Startup Framework) shows:

SDM = running

dispatcher = stopped (Exitcode -11113)

Server0 = stopped (Exitcode -11113)

The file:

T:\usr\sap\ABC\DVEBMGS00\j2ee\cluster\instance.properties

Gets written each time the server starts up and the value

instance.ms.host=MYSERVER2

This value should be MYSERVER1.

The Config Tool shows that the property <\cluster data\node\managers\ClusterManager>\ms.host has the value MYSERVER1. I have searched in the Config Tool and cannot find any references to the value MYSERVER2 anywhere.

Please can you tell me how the file:

T:\usr\sap\ABC\DVEBMGS00\j2ee\cluster\instance.properties

gets updated?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Although this issue is almost 4 years old, i recently had the same one.

Thanks to Paul Richardson I managed to solve it.

I changed the following things in the ./offlinecfgeditor.sh:

  • Configurations > cluster_data > Propertysheet instance.properties (as see above)
    • instance.box.number
    • instnace.en.host
  • Configurations > CTC > Propertysheet System.Properties
    • BACKEND_SYSTEM
    • J2EE_SYSTEM
    • SLD_GWHOST
    • SLD_HOST
    • TTCENTRAL_SERVICES_HOST
    • TTINSTANCE_HOST
  • Configurations > destinations > WebService > Propertysheet FP_ICF_DATA_<SID>
    • URL
  • Configurations > destinations > WebService > Propertysheet sap-com$2ftc~wd~pdfobject...
    • URL

Furthermore i did this:

  • Open for edit go script from /usr/sap/<SID>/<instance#>/j2ee/JSPM directory
  • Locate the line:  rootdir=`dirname "$0"`
  • Change rootdir parameter to: rootdir=/usr/sap/<SID>/<instance#>/j2ee/JSPM

Beyond:

  • cd /usr/sap/SMT/DVEBMGS91/j2ee/JSPM/data/variables/
  • rm Jspm.DataModel.xml Jspm.J2EE.DataModel.xml Jspm.JSPM.DataModel.xml

In the configtool I changed the following things:I checked to see whether the right Database Host existis in the following Managers:

  • Cluster-data > Global Dispatcher configuration > managers > ConfigurationManager
  • Cluster-data > Global Dispatcher configuration > managers > LockingManager
  • Cluster-data > Global server configuration > managers > ConfigurationManager
  • Cluster-data > Global server configuration > managers > LockingManager
  • And for every Instance that is managed via the configtool as well.

At the end I restarted the whole SAP-System (ASCS, SCS, DB …)

As one could see we are using Linux. Hope it helps somebody!

Former Member
0 Kudos

Hi Paul,

Which property did you finally changed to make it work?

Kind Regards

Former Member
0 Kudos

I amended the UME configuration parameters in configtool->switch to the configuration editor mode->configuration->cluster_data->server-> cfg> services-> Propertysheet com.sap.security.core.ume.service

The configuration file was missing. So I imported the configuration file and then restarted the engine.

I didn't keep a record of the exact changes.

sunny_pahuja2
Active Contributor
0 Kudos

Hi Paul,

If you want to understand how instance.properties file update then check below link:

http://help.sap.com/saphelp_nw04/helpdata/en/81/df5641998e061de10000000a155106/content.htm

Second thing when you have found that there is problem in instnace.properties file then take a backup of this file and manually edit this file. Then try to start your system.

And i think you can edit this file, check SAP Note 1287292 - JSPM and missing parameter at instance.properties file. In which in case of one error they suggested to edit instance.properties file after taking backup.

Thanks

Sunny

Former Member
0 Kudos

Hi Sunny,

I have tried creating a backup of the instance.properties file, editing the original file and then restarting the SAP system, however the original value for instance.ms.host returned.

The help documentation you listed says that the values are saved to the DB, so maybe I need to update the entry in the DB directly? However I do not know which table it is in.

The file bootstrap.properties contains the correct hostname.

Thanks.

Former Member
0 Kudos

I have tried editing the file instance.properties, making it read-only then starting the SAP system. However the file gets created each time the SAP system starts, so this did not work.

sunny_pahuja2
Active Contributor
0 Kudos

Hi Paul,

Could you please paste dev_server0, dev_disp, std_server0 and std_disp* logs here ?

Thanks

Sunny

Former Member
0 Kudos

Hi Sunny,

I have gone through the logs and I think the most relevant is the DefaultTrace.1.trc file which shows this

<br />

-


<! LOGHEADER[START]/ >

<! HELP[Manual modification of the header may cause parsing problem!]/ >

<! LOGGINGVERSION[1.5.3.7185 - 630]/ >

<! NAME[./log/defaultTrace.trc]/ >

<! PATTERN[defaultTrace.trc]/ >

<! FORMATTER[com.sap.tc.logging.ListFormatter]/ >

<! ENCODING[UTF8]/ >

<! FILESET[1, 20, 10485760]/ >

<! PREVIOUSFILE[defaultTrace.0.trc]/ >

<! NEXTFILE[defaultTrace.2.trc]/ >

<! LOGHEADER[END]/ >

#1.5 #005056B6022B00000000018D0000150400046F761746BAF6#1248452897293#com.sap.engine.core.service630.container.PersistentContainer##com.sap.engine.core.service630.container.PersistentContainer.PersistentContainer.loadServiceProperties#######Thread[Thread-1,5,main]##0#0#Error##Plain###com.sap.engine.frame.core.configuration.NameNotFoundException: A configuration with the path "cluster_data/server/ID4001" does not exist.

at com.sap.engine.core.configuration.impl.persistence.rdbms.DBAccessDefault.getConfiguration(DBAccessDefault.java:586)

at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:102)

at com.sap.engine.core.configuration.impl.cache.CachedConfiguration.<init>(CachedConfiguration.java:62)

at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848)

at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882)

at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748)

at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734)

at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693)

at com.sap.engine.core.service630.container.PersistentContainer.getConfiguration(PersistentContainer.java:1164)

at com.sap.engine.core.service630.container.PersistentContainer.loadServiceProperties(PersistentContainer.java:313)

at com.sap.engine.core.service630.container.PersistentContainer.createServiceWrapper(PersistentContainer.java:259)

at com.sap.engine.core.service630.container.PersistentContainer.createComponentWrapper(PersistentContainer.java:273)

at com.sap.engine.core.service630.container.PersistentContainer.createComponents(PersistentContainer.java:153)

at com.sap.engine.core.service630.container.PersistentContainer.createServices(PersistentContainer.java:139)

at com.sap.engine.core.service630.container.MemoryContainer.start(MemoryContainer.java:144)

at com.sap.engine.core.service630.container.AbstractServiceContainer.init(AbstractServiceContainer.java:111)

at com.sap.engine.core.Framework.loadSingleManager(Framework.java:576)

at com.sap.engine.core.Framework.loadManagers(Framework.java:254)

at com.sap.engine.core.Framework.start(Framework.java:188)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.engine.boot.FrameThread.run(FrameThread.java:61)

at java.lang.Thread.run(Thread.java:534)

-


<p>The log file Dev_Server0 has this error: </p>

-


**********************************************************************

JHVM_BuildArgumentList: main method arguments of node [server0]

**********************************************************************

[Thr 8020] Sun Jul 26 11:09:19 2009

[Thr 8020] JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.PerfTimes

[Thr 8020] Sun Jul 26 11:09:20 2009

[Thr 8020] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework

[Thr 8020] JLaunchISetClusterId: set cluster id 4001

[Thr 8020] Sun Jul 26 11:09:21 2009

[Thr 8020] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]

[Thr 8020] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]

Sun Jul 26 11:09:22 2009

17.440: [GC 17.441: [DefNew: 174592K->8419K(261888K), 0.1149229 secs] 174592K->8419K(2009856K), 0.1153151 secs]

Sun Jul 26 11:09:31 2009

26.413: [GC 26.414: [DefNew: 183011K->10401K(261888K), 0.2534591 secs] 183011K->10401K(2009856K), 0.2535723 secs]

[Thr 6444] Sun Jul 26 11:09:37 2009

[Thr 6444] JLaunchIExitJava: exit hook is called (rc = -11113)

[Thr 6444] **********************************************************************

      • ERROR => The Java VM terminated with a non-zero exit code.

      • Please see SAP Note 943602 , section 'J2EE Engine exit codes'

      • for additional information and trouble shooting.

**********************************************************************

[Thr 6444] JLaunchCloseProgram: good bye (exitcode = -11113)

-


<p>The file sld_dispatcher.out has this error:</p>

-


Loading: ServiceManager ...

14.018: [GC 14.018: [DefNew: 24066K->2156K(25856K), 0.0227299 secs] 26329K->4418K(345344K), 0.0228179 secs]

Loading services.:

Service security started. (31 ms).

Service httptunneling started. (31 ms).

Service licensing started. (109 ms).

Service memory started. (141 ms).

Service timeout started. (218 ms).

Service webservices started. (125 ms).

Service sld started. (203 ms).

service log_configurator ================= ERROR =================

Core service log_configurator failed. J2EE Engine cannot be started.

com.sap.engine.frame.core.configuration.NameNotFoundException: A configuration with the path "cluster_data/dispatcher/ID5001" does not exist.

at com.sap.engine.core.configuration.impl.persistence.rdbms.DBAccessDefault.getConfiguration(DBAccessDefault.java:586)

at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:102)

at com.sap.engine.core.configuration.impl.cache.CachedConfiguration.<init>(CachedConfiguration.java:62)

at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848)

at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882)

at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748)

at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734)

at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693)

at com.sap.engine.services.log_configurator.LogConfiguratorServiceFrameImpl.mergeLocalConfigs(LogConfiguratorServiceFrameImpl.java:471)

at com.sap.engine.services.log_configurator.LogConfiguratorServiceFrameImpl.start(LogConfiguratorServiceFrameImpl.java:118)

at com.sap.engine.core.service630.container.ServiceRunner.startCommunicationServiceFrame(ServiceRunner.java:228)

at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:158)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl6.SingleThread.execute(SingleThread.java:82)

at com.sap.engine.core.thread.impl6.SingleThread.run(SingleThread.java:154)

-


<p>Thanks.</p>

debasissahoo
Active Contributor
0 Kudos

Hi Paul,

Please can you tell me how the file:
T:\usr\sap\ABC\DVEBMGS00\j2ee\cluster\instance.properties
gets updated?

During the startup of Java, the bootstrap process reads the data from database & stores these to instance.properties at operating system level.. so you can change the contents of database by using configtool.

The file: T:\usr\sap\ABC\DVEBMGS00\j2ee\cluster\instance.properties. Gets written each time the server starts up and the value
instance.ms.host=MYSERVER2
This value should be MYSERVER1.

As you have already identified the issue. you have to fix this to start up the java.

1. check if rdisp/mshost = <host name of message server> is properly set in your SAP profiles or not. (DEFAULT.pfl , ABC_<instance>_<host>.pfl )

2. Go to configtool, for each node check the value of ms.host in Cluster Manager for both the nodes (dispatcher as well as server nodes) Use Global Dispatcher and the Global Server and after doing that also check if the ms.host has any local values maintained or not. (Local values override the global value) After you have maintained all of the parameters restart the java instance.

Let me know if this helps.

Regards,

Debasis

sunny_pahuja2
Active Contributor
0 Kudos

Hi Paul,

Try the things suggested by Debasis. Also, Check SAP Note 757692 - Changing the hostname for J2EE Engine 6.40/7.0 installation

Thanks

Sunny

Former Member
0 Kudos

Thanks all. I have now found the entry that I needed to change in order to correct the incorrect hostname in the instance.properties file. It was in offlinecfgeditor.bat | dispatcher | IDxxxxx | propertysheet.element.info

I corrected that and restarted the server. Now the instance.properties file looks correct, but I still get the same errors as I did before.

The first error I get is shown at the top of the server.0.log file:

#005056B6022B00000000018D0000150400046F761746BAF6#1248452897293#com.sap.engine.core.service630.container.PersistentContainer##com.sap.engine.core.service630.container.PersistentContainer.PersistentContainer.loadServiceProperties#######Thread[Thread-1,5,main]

##0#0#Error##Plain###com.sap.engine.frame.core.configuration.NameNotFoundException: A configuration with the path "cluster_data/server/ID4001"

does not exist.

The dispatcher ID (5001) and server ID (4001) are correct (I can see that they are configured correctly in the Config Tool).

SAP OSS note 812910 describes the error:

com.sap.engine.frame.core.configuration.NameNotFoundException: A configuration with the path "cluster_data/instance.properties.IDXXXXX" does not exist.

However the solution in that note is not relevant to this scenario and I am not upgrading this system.

Any ideas?

Thanks.

debasissahoo
Active Contributor
0 Kudos

Hi Paul,

Was there any change on the system on database level?? like a database restore from another system? (Please note in ABAP+Java system, you can't restore system from a simple database backup from other system. its not supported.

When was the java up last time.

Please describe in detail what you've done in the system while you post the thread, it will help others to suggest.

Hope you understand.

Regards,

Debasis.

Former Member
0 Kudos

I found that there was another property that was incorrect in the offline configuration tool. I have corrected it and it is okay now.

Thanks for your help.