Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Java Error

Highlighted
geeham
Occasional Advisor

Java Error

Has anyone come across this error when trying to create a PPM Migrator Pacakge:

CL Capture Output

Source Command: Search using current user's password
Condition: '[P.SOURCE_PASSWD]' LIKE '%SOURCE_PASSWD%'
Evaluated Condition:'[P.SOURCE_PASSWD]' LIKE '%SOURCE_PASSWD%'


sent [encrypted] command:
Hidden% $KNTATMP bin/kMigratorExtract.sh -username "admin" -password '#!#*****#!#' -action search -entityId 9 -quiet -delimiter '#@#' -unescapeUnicode Y; echo KSC_EXIT_STATUS $?
received echo:
The received command was suppressed because it contained a password.

./kVariables.sh: line 34: $'\r': command not found
./kVariables.sh: line 36: $'\r': command not found
./kVariables.sh: line 40: $'\r': command not found
./kVariables.sh: line 69: syntax error near unexpected token `$'{\r''
./kVariables.sh: line 69: `get_valid_server_directory() {'
bin/kMigratorExtract.sh: line 54: [: =: unary operator expected
bin/kMigratorExtract.sh: line 66: /bin/java: No such file or directory
Extraction failed
KSC_EXIT_STATUS 127

Command: [$KNTATMP bin/kMigratorExtract.sh -username "admin" -password '#!#*****#!#' -action search -entityId 9 -quiet -delimiter '#@#' -unescapeUnicode Y] did not complete successfully.
Aborting command execution.
Closing SSH2 Session
Errors occurred during command execution.
Failed
3 REPLIES

Re: Java Error

Hi,

try to run the script kVariables.sh from command line. It is located in /bin.
I guess you will have the same error.

In this case execute dos2unix *.sh in /bin and try it again.

Regards
Volker
sirib9
Regular Collector

Re: Java Error

Hi,

We had a similar issue when we moved our application servers from windows to Linux.

Can you try executing kMigratorExtract.sh script from command line. If this is working from the command line, then there may be issue with password that is used/entered for migrations in the workbench.


Thanks
Siri..
sebastianrm
Super Collector

Re: Java Error

Hi, another option to Volker's, is to reinstall Cygwin and be sure you pick "DOS" for "Default Text File Type".
Regards,

Sebastian
//Add this to "OnDomLoad" event