2016-04-15 86 views
0

我剛剛開始使用Oracle MAF進行開發,並根據教程創建了一個移動應用程序項目。當我嘗試將其部署到設備時,出現以下問題並失敗。任何方向,決議&幫助,讚賞。正在安裝plugman ...錯誤代碼:INTERNAL_ERROR jdeveloper

[11:29:51 AM] ---- Deployment started. ---- 
[11:29:51 AM] Target platform is (Android). 
[11:29:51 AM] Beginning deployment of MAF application "Application1" to Android using profile "Android1". 
[11:29:57 AM] Checking state of Android Debug Bridge server... 
[11:30:02 AM] Started Android Debug Bridge server. 
[11:30:02 AM] Verifying a single Android device is online and connected to the ADB server... 
[11:30:02 AM] Unable to obtain the version of ARM supported by the Android device. The application may not work correctly if the device does not support at least ARMv6. 
[11:30:02 AM] Cordova Plugman could not be found and needs to be installed. 
[11:30:02 AM] This one-time installation may take a few minutes. 
[11:30:02 AM] Installing Cordova Plugman... 
[11:30:04 AM] Command-line executed: [/home/yogesh/Oracle/Middleware/Oracle_Home/oracle_common/jdk/bin/java, -jar, /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/maf-helper.jar, installTools, -tools, /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools] 
[11:30:04 AM] Creating directory /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools/plugman 
[11:30:04 AM] Installing plugman ... 
[11:30:04 AM] Error Code : INTERNAL_ERROR 
[11:30:04 AM] /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools/node-linux-x86/bin/npm: 2: exec: /home/yogesh/Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools/node-linux-x86/bin/node: not found 
[11:30:04 AM] oracle.maf.mafhelper.api.MafHelperException: oracle.maf.mafhelper.api.MafHelperException: oracle.maf.mafhelper.api.MafHelperException: java.lang.Exception 
[11:30:04 AM] at oracle.maf.mafhelper.internal.utils.MafHelperInternalUtilities.installTools(Unknown Source) 
[11:30:04 AM] at oracle.maf.mafhelper.MafHelperMain.main(Unknown Source) 
[11:30:04 AM] Caused by: oracle.maf.mafhelper.api.MafHelperException: oracle.maf.mafhelper.api.MafHelperException: java.lang.Exception 
[11:30:04 AM] at oracle.maf.mafhelper.internal.utils.MafHelperInternalUtilities.runProcess(Unknown Source) 
[11:30:04 AM] at oracle.maf.mafhelper.internal.utils.MafHelperInternalUtilities.executeCmd(Unknown Source) 
[11:30:04 AM] ... 2 more 
[11:30:04 AM] Caused by: oracle.maf.mafhelper.api.MafHelperException: java.lang.Exception 
[11:30:04 AM] ... 4 more 
[11:30:04 AM] Caused by: java.lang.Exception 
[11:30:04 AM] at oracle.maf.mafhelper.api.MafHelperException.<init>(Unknown Source) 
[11:30:04 AM] ... 4 more 
[11:30:04 AM] Shutting down Android Debug Bridge server... 
[11:30:04 AM] Deployment cancelled. 
[11:30:04 AM] ---- Deployment incomplete ----. 
[11:30:04 AM] An error occurred installing plugman. (oracle.adfmf.framework.dt.deploy.common.deployers.plugins.PlugmanInstallerDeployer) 
+1

您是否以管理員身份打開JDeveloper?正如我發現的那樣,當您以管理員用戶身份部署JDev並在其他用戶中運行JDev時會出現這種問題。如果是這樣,請以管理員用戶身份打開,並讓插件安裝(這是一次性安裝過程),稍後您可以在其他用戶帳戶中使用它。 –

+0

對於開發它是免費的,但如果你想在PlayStore上提交,那麼「是」你需要獲得許可證。評論您的問題到https://community.oracle.com/message/12581264#12581264這個鏈接,他們會回答你。 –

+0

你沒有任何處理模塊明智,每個應用程序與每個用戶和每個應用程序與無限用戶。更好地聯繫Oracle營銷團隊,他們是回答您所有問題的合適人選。 –

回答

0

我花了大概一天的時間試圖找到解決這個問題的方法。 原因是節點可執行文件(.../Oracle/Middleware/Oracle_Home/jdeveloper/jdev/extensions/oracle.maf/tools/node-linux-x86/bin/node)兼容性問題與操作系統一起使用jdeveloper。 jdeveloper的正式版本由一個32位(x86)版本的節點組成。所以如果你遇到這個問題,你可能會使用64位操作系統。

要在64位多架構Ubuntu系統上運行32位可執行文件,必須添加i386體系結構並安裝三個庫包libc6:i386,libncurses5:i386和libstdC++ 6: I386:

sudo dpkg --add-architecture i386 

如果您在使用Ubuntu 12.04 LTS(精確穿山甲)以下,使用此:

echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch 

然後輸入:

sudo apt-get update 
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386