Cancel
Showing results for 
Search instead for 
Did you mean: 

Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat "

Genius
Genius

Experts,

 

I am trying to clone the development environment in the new server windows 2016

 

While installing corporate server with existing dev TC_DATA and DB ( existing TC_DATA, DB of version 10.1.7.1)

 

Launched tem.bat from Tc10.1.7_patch_1_wntx64 and base Tc10.1.0_win64_base selected

 

  • Teamcenter Foundation
  • Teamcenter Rich Client 4-tier
  • .NET Based Server Manager
  • FMS Server Cache
  • ASP .NET State Service
  • Web Tier for .NET
  • NX Integration
  • Installation Directory:
    • C:\Apps\Siemens\Teamcenter10\tc_root

It gives me a shell command error saying system cannot find the path specified

 

Executing ["bmide_generatetcplmxmlschema.bat" -u=infodba -p=***** -g=dba]
Output from command: "bmide_generatetcplmxmlschema.bat" -u=infodba -p=***** -g=dba
The system cannot find the path specified.
command_exit=3
Exit Status 3, elapsed time 0:00:00
An error occurred during execution. Stack trace follows...
com.teamcenter.install.tem.tasks.ExecTask.executeCmd(ExecTask.java:99)
com.teamcenter.install.tem.tasks.ExecTask.execute(ExecTask.java:67)
com.teamcenter.install.tceng.struct.tasks.TcexecTask.execute(TcexecTask.java:106)
com.teamcenter.install.tem.tasks.Task.execute(Task.java:135)
com.teamcenter.install.tem.tasks.blocks.CodeBlock.execute(CodeBlock.java:201)
com.teamcenter.install.tem.tasks.blocks.CodeBlock.execute(CodeBlock.java:181)
com.teamcenter.install.tem.struct.TcProcess.runProc(TcProcess.java:403)
com.teamcenter.install.tem.struct.TcProcess.runAll(TcProcess.java:321)
com.teamcenter.install.tem.struct.TcFeature.process(TcFeature.java:1231)
com.teamcenter.install.tem.struct.TcFeature.postInstall(TcFeature.java:1030)
com.teamcenter.install.tem.director.actions.PostInstallAction.execute(PostInstallAction.java:25)
com.teamcenter.install.tem.director.DirectorScript.execute(DirectorScript.java:143)
com.teamcenter.install.tem.director.Director.run(Director.java:120)
java.lang.Thread.run(Unknown Source)
***
*** CANCELLED
***
=====================================================
Installation interrupted due the following reason:

The following command returned a value of 3
"bmide_generatetcplmxmlschema.bat" -u=infodba -p=***** -g=dba

Regards
Rafa
17 REPLIES
Highlighted

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

What is in the "shell.err" file?

Arden Bedell | Teamcenter Wonk | Applied CAx, LLC

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Genius
Genius

Hi Arden,

 

I did not create shell.err file in TC_ROOT/logs

 

It created a deploy_archive syslog and install log

Regards
Rafa

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Genius
Genius

When i tried to run manually bmide_generatetcplmxmlschema.bat in TC shell, it says below

 

Capture.PNG

Regards
Rafa

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Solution Partner Honored Contributor Solution Partner Honored Contributor
Solution Partner Honored Contributor

You'll need to open bmide_generatetcplmxmlschema.bat to find out which command results in the error. It's probably your JRE location.

 

To resolve java, run TEM, migrate to new JRE and point it to where JRE is installed. Make sure your system environment variables match too (JRE_HOME, JRE64_HOME, JAVA_HOME).


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

There should be a "bmide_generatetcplmxmlschema.log" file somewhere on your system. If not, check where "bmide_generatetcplmxmlschema.bat" is looking for java. That script file has a line that looks for java using the value of your JRE_HOME environment variable, and that variable is set in the tc_profilevars.bat file. Double check that it's pointing to the correct location. I noticed that you have Java installed in C:\Program Files. The space in the path may also be a problem, so if you find that JRE_HOME is correct and there's still a problem, try changing the definition of JRE_HOME in tc_profilevars.bat to eliminate the spaces in the path, i.e., use the 8.3 short form.

Arden Bedell | Teamcenter Wonk | Applied CAx, LLC

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Genius
Genius

bmide_generatetcplmxmlschema.bat

 

"%JRE_HOME%\bin\java.exe" %BMIDE_SCRIPT_ARGS% -cp %CLASSPATH% -Dudu.process.id=13300 com.teamcenter.bmide.tcplmxml.xsdgen.impl.TcPlmXmlXsdInstallToTCMain %*

 

I see environment variables pointed to the correct location

 

JAVA_HOME= C:\progra~1\Java\jre1.8.0_101

JRE_HOME=C:\progra~1\Java\jre1.8.0_101

JRE64_HOME=C:\progra~1\Java\jre1.8.0_101

 

 

Regards
Rafa

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Solution Partner Honored Contributor Solution Partner Honored Contributor
Solution Partner Honored Contributor

Enter on the command line:

%JRE_HOME%

 

Validate the values match what you expect them to be.

 

Next, launch TEM with "Run with Administrator".


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Genius
Genius

It is taking me to the exact location where JRE_HOME is set

 

I launched tem.bat with run as admin, i see the same error

 

 

Regards
Rafa

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Just a thought, your path includes:

C:\ProgramData\Oracle\Java\javapath

 If you go to this location on your system, does it have a symbolic link to java.exe? If so, can you run it from the command line with "-version" as the argument? Does the version it returns match 1.8.0_151?

Arden Bedell | Teamcenter Wonk | Applied CAx, LLC