on 07-13-2011 5:11 PM
Hey guys,
I'm currently upgrading a Netweaver 2004 (6.40) Portal with SP18 to NW 7.3 SPS3.
Im in Downtime Roadmap Step and encounter the following error in phase UPGRADE/FS_UPDATE/COPY_UNIX_ENVFILES
Jul 13, 2011 5:48:01 PM [Info]: com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:751) [Thread[main,5,main]]: Phase UPGRADE/FS_UPDATE/COPY_UNIX_ENVFILES has been started.
Jul 13, 2011 5:48:01 PM [Info]: com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:752) [Thread[main,5,main]]: Phase type is com.sap.sdt.ucp.phases.PhaseTypeExecuteTask.
Jul 13, 2011 5:48:01 PM [Info]: com.sap.sdt.ucp.phases.AbstractPhaseType.logParameters(AbstractPhaseType.java:403) [Thread[main,5,main]]: Parameter inputFile=CopyEnvFiles_UNX.xml
Jul 13, 2011 5:48:01 PM [Info]: com.sap.sdt.ucp.phases.AbstractPhaseType.logParameters(AbstractPhaseType.java:403) [Thread[main,5,main]]: Parameter taskName=ADAPT_UNX_ENVFILES
Jul 13, 2011 5:48:01 PM [Info]: com.sap.sdt.ucp.phases.PhaseTypeExecuteTask.checkParameters(PhaseTypeExecuteTask.java:203) [Thread[main,5,main]]: Phase parameters have been checked. All required 2 phase parameters have been set.
Jul 13, 2011 5:48:01 PM [Error]: com.sap.sdt.ucp.phases.AbstractPhaseType.doExecute(AbstractPhaseType.java:883) [Thread[main,5,main]]: Exception has occurred during the execution of the phase.
Jul 13, 2011 5:48:01 PM [Error]: com.sap.sdt.util.parse.SimpleTokenReader.getEscapeChar(SimpleTokenReader.java:433) [Thread[main,5,main]]: Invalid escape sequence \69 in string.
Jul 13, 2011 5:48:01 PM [Error]: com.sap.sdt.util.parse.Calculator.evaluate(Calculator.java:343) [Thread[main,5,main]]: com.sap.sdt.util.parse.ParserException
Jul 13, 2011 5:48:01 PM [Error]: com.sap.sdt.util.xml.XMLElementBuilder.createXMLElement(XMLElementBuilder.java:296) [Thread[main,5,main]]: com.sap.sdt.util.xml.XMLException
Jul 13, 2011 5:48:01 PM [Error]: com.sap.sdt.tools.cfg.ConfigurationBuilder.buildConfiguration(ConfigurationBuilder.java:341) [Thread[main,5,main]]: Could not build configuration from input file /usr/sap/ED6/upg/java/config/CopyEnvFiles_UNX.xml.
Jul 13, 2011 5:48:01 PM [Error]: com.sap.sdt.ucp.phases.PhaseTypeExecuteTask.execute(PhaseTypeExecuteTask.java:183) [Thread[main,5,main]]: Error while executing PhaseTypeExecuteTask with input file CopyEnvFiles_UNX.xml and task ADAPT_UNX_ENVFILES.
Jul 13, 2011 5:48:01 PM [Info]: com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:925) [Thread[main,5,main]]: Phase UPGRADE/FS_UPDATE/COPY_UNIX_ENVFILES has been completed.
I already googled, searched OSS and even opened a ticket but no response yet. Does anyone have an idea? Help would be much appreciated
Cheers
Marcel
HI @ all,
i have the same problem in this phase.
Is a solution available?
Thank you and kind regards
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I found a solution for the problem.
In my case the problem was caused by the DEFAULT.PFL file under /sapmnt/<SID>/profile/
The parameter j2ee/dbhost contained an invalid value (in my case <hostname>\<SID> where SID started with E (in my case qui\ED6).
The message "Invalid escape sequence \69 in string." refers to E because \69 is E in the ascii character table (see http://www.ascii.cl/)
The problem is that just changing the value in the profile didn't work. I used find and fgrep to find all occurances of ED6
You may find out that the string that causes your problem is contained in
.../upg/java/data/variables/JUP.J2EE.DataModel.xml
The problem now is that just changing the value there won't work either because the file will be recreated when starting the phase over. You can try and you will see that the xml file will contain the exact same value when restarting the phase (look at the tiemstamp of the file to see that it has been recreated by the upgrade procedure)
If you dig a little deeper you will find out that the actual file causing the issue is the file
/usr/sap/<SID>/upg/java/config/CopyEnvFiles_UNX.xml that references several variables. One of them is
$(/J2EE/DBSystem/SystemHome)
this variable also appears in JUP.J2EE.DataModel.xml and looks as follows
<StringPair name="/J2EE/DBSystem/SystemHome">
<StringValue>java.lang.String</StringValue>
<StringValue>qui\ED6</StringValue>
</StringPair>
To solve the problem I replaced all occurances of the variable $(/J2EE/DBSystem/SystemHome)
in file /usr/sap/ED6/upg/java/config/CopyEnvFiles_UNX.xml with the hardcoded value of the database host (in my case qui)
Here's an extract of the file before and after change
Before
<variable name="SAPDATA_HOME">$SYSTEM_GETENV(SAPDATA_HOME)</variable>
<variable name="SAPDBHOST">$(/J2EE/DBSystem/SystemHome)</variable>
<variable name="SAPSYSTEM">$SYSTEM_GETENV(SAPSYSTEM)</variable>
<variable name="SAPSYSTEMNAME">$(/J2EE/StandardSystem/SAPSystemName)</variable>
<variable name="SID">$(/J2EE/StandardSystem/SAPSystemName)</variable>
<variable name="THREAD">$SYSTEM_GETENV(THREAD)</variable>
<variable name="TNS_ADMIN">$SYSTEM_GETENV(TNS_ADMIN)</variable>
<!-- @REMARK@ is "" if saphost == dbhost and "#" otherwise -->
<choose>
<when test="'$(/J2EE/SAPGlobalHost)' == '$(/J2EE/DBSystem/SystemHome)'">
<variable name="REMARK" emptyok="true"></variable>
</when>
<otherwise>
<variable name="REMARK">#</variable>
</otherwise>
</choose>
After
<variable name="SAPDATA_HOME">$SYSTEM_GETENV(SAPDATA_HOME)</variable>
<variable name="SAPDBHOST">qui</variable>
<variable name="SAPSYSTEM">$SYSTEM_GETENV(SAPSYSTEM)</variable>
<variable name="SAPSYSTEMNAME">$(/J2EE/StandardSystem/SAPSystemName)</variable>
<variable name="SID">$(/J2EE/StandardSystem/SAPSystemName)</variable>
<variable name="THREAD">$SYSTEM_GETENV(THREAD)</variable>
<variable name="TNS_ADMIN">$SYSTEM_GETENV(TNS_ADMIN)</variable>
<!-- @REMARK@ is "" if saphost == dbhost and "#" otherwise -->
<choose>
<when test="'$(/J2EE/SAPGlobalHost)' == 'qui'">
<variable name="REMARK" emptyok="true"></variable>
</when>
<otherwise>
<variable name="REMARK">#</variable>
</otherwise>
</choose>
It took me some time to figure this out but hopefully it will help someone else to get further with the upgrade procedure
Cheers
Marcel
Dear Marcel,
thank you for your reply, i could solve the issue in the step.
But now i got the same issue on the next step:
An error has occurred during the execution of the ADAPT_PROFILES phase.
Error while executing PhaseTypeExecuteTask with input file ModifyTasks.xml and task ADAPT_PROFILES. Could not build configuration from input file /usr/sap/T22/upg/java/config/ModifyTasks.xml. Invalid escape sequence \74 in string.
You can find more information in the log file /usr/sap/T22/upg/java/log/ADAPT_PROFILES_APF_06.LOG.
I guess you had the same problem?
You have a solution for that, too?
Kind regards
Sebastian
Hi Sebastian,
I don't remember if I ran into that issue but I don't think so. I have no documentation on that so I guess I didn't. But I remember that I ran into another problem afterwards and at a certain point I decided to recover filesystem and database of the original system making the relevant changes to the files that caused the problem in the 1st place and then restarted the upgrade from scratch.
The problem did not occur anymore.
Nevertheless your current issue must be similar to the first one. You should scan the variables and files for occurances of the particular character that is referenced by that particular escape sequence and than try to eliminate the issue at its source.
Let me know if you find a solution for your issue.
Good Luck
Cheers
Marcel
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.