weblogic domain error Malformed argument has embedded quote

Posted by

The below error encountered when try to create the integrated weblogic domain in Jdeveloper 12.2.1.4.0 ” Malformed argument has embedded quote”  , “java.io.IOException: Cannot run program “cmd.exe”

"C:\oraclesoabpm\oracle_common\common\bin\wlst.cmd" "C:\Users\user\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py""
Cannot run program "cmd.exe" (in directory "C:\oraclesoabpm\oracle_common\common\bin"): Malformed argument has embedded quote: "C:\oraclesoabpm\oracle_common\common\bin\wlst.cmd" "C:\Users\user\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
java.io.IOException: Cannot run program "cmd.exe" (in directory "C:\oraclesoabpm\oracle_common\common\bin"): Malformed argument has embedded quote: "C:\oraclesoabpm\oracle_common\common\bin\wlst.cmd" "C:\Users\user\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at oracle.jdevimpl.adrs.weblogic.wlst.ScriptRunnerImpl.runScript(ScriptRunnerImpl.java:106)
at oracle.jdevimpl.adrs.weblogic.builder.DomainScriptRunnerImpl.runScript(DomainScriptRunnerImpl.java:146)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.createDomain(DefaultDomainBuilder.java:606)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.build(DefaultDomainBuilder.java:274)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder$1.run(DefaultDomainBuilder.java:225)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

The below steps can be performed to resolve the Malformed argument issue.

  1. Navigate to the Jdeveloper
<MW_HOME>\jdeveloper\ide\bin

2. Open the ide.conf file in the text editor . Enter the below given VM Argument details in the  OSGi configuration options

AddVMOption -Djdk.lang.Process.allowAmbiguousCommands=true

# Other OSGi configuration options for locating bundles and boot delegation.
#
AddVMOption -Dorg.eclipse.equinox.simpleconfigurator.configUrl=file:bundles.info
AddVMOption -Dosgi.bundles.defaultStartLevel=1
AddVMOption -Dosgi.configuration.cascaded=false
AddVMOption -Dosgi.noShutdown=true
AddVMOption -Dorg.osgi.framework.bootdelegation=*
AddVMOption -Dosgi.parentClassloader=app
AddVMOption -Dosgi.locking=none
AddVMOption -Dosgi.contextClassLoaderParent=app
AddVMOption -Djdk.lang.Process.allowAmbiguousCommands=true

3. Restart the JDeveloper . Run the Integrated weblogic domain again.

[Waiting for the domain to finish building...]
[10:29:28 AM] IntegratedWebLogicServer Domain is invalid. Regenerating it...
[10:29:30 AM] Creating IntegratedWebLogicServer Domain... [10:32:19 AM] Extending IntegratedWebLogicServer Domain...