I want to try developing a mobile programme.
But when I run project as Java application, the project don’t compile.
The Netbeans output like this:
Could not create the Java virtual machine.
Error code : «Execution failed with error code 1.»
in:»../build-impl.xml:898″
How I fix it ?
asked Jun 20, 2010 at 11:26
3
thanks it’s resolved.
With adding a new the emulator platform but the same content folder; like Java ME SDK 3.0 ,and the new one Java ME SDK 3.0 local.
I guessed that there was conflicted with Java ME Platform SDK.
answered Jun 22, 2010 at 17:24
volkanvolkan
11 silver badge2 bronze badges
-
Mar 3rd, 2010, 03:37 AM
#1
Thread Starter
Randalf the Red
[RESOLVED] Netbeans 6.8 Execution Failed With Error Code 1
I am trying to build a sample Java MIDP game for mobile platform. I have downloaded and installed Java ME SDK 3.0 and NetBeans 6.8. I am browsing through the tutorial on building Java mobile games from this URL:
http://netbeans.org/kb/docs/javame/g…creencast.html
However after trying to run the application, it shows the following:
Starting emulator in execution mode
<Someplace>MobileAppsHellonbprojectbuild-impl.xml:889: Execution failed with error code 1.
BUILD FAILED (total time: 21 seconds)Here’s the relevant section from the build-impl.xml file:
Code:
<target name="cldc-run" if="cldc-platform.trigger"> <nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/> </target>
Checking the internet, I found one post and one response, which simply said I need to install the SDK, which I have already done. What’s going wrong?
.
I am not a complete idiot. Some parts are still missing.
Check out the rtf-help tutorial
General VB Faq Thread
Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
Get more power for your floppy disks. ; View honeybee’s Elite Club:
Use meaningfull thread titles. And add «[Resolved]» in the thread title when you have got a satisfactory response.
And if that response was mine, please think about giving me a rep. I like to collect them!
-
Mar 3rd, 2010, 07:02 AM
#2
Re: Netbeans 6.8 Execution Failed With Error Code 1
A lot of things might have caused this. especially since the error message is a bit vague.
The SDK you’ve installed is most likely the MIDP2 platform. Try installing the CLDC SDK. Hopefully this will do the trick.«I’m not normally a praying man, but if you’re up there, save me… Superman!» — Homer Simpson
My Blog
-
Mar 3rd, 2010, 08:06 AM
#3
Thread Starter
Randalf the Red
Re: Netbeans 6.8 Execution Failed With Error Code 1
But the Java ME SDK 3.0 is supposed to include everything, and the NetBeans 6.8 IDE is reported to have been tested against it!
Supported technologies for NetBeans 6.8 IDE:
http://netbeans.org/community/releas…d_technologiesHere it says the Java ME SDK 3.0 is CDC and CLDC rolled into one:
http://java.sun.com/javame/downloads/sdk30.jspSo what’s wrong??
.
I am not a complete idiot. Some parts are still missing.
Check out the rtf-help tutorial
General VB Faq Thread
Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
Get more power for your floppy disks. ; View honeybee’s Elite Club:
Use meaningfull thread titles. And add «[Resolved]» in the thread title when you have got a satisfactory response.
And if that response was mine, please think about giving me a rep. I like to collect them!
-
Mar 3rd, 2010, 08:35 AM
#4
Re: Netbeans 6.8 Execution Failed With Error Code 1
Are you using any non-midp technologies in your project? Bluetooth, Wifi, …etc?
«I’m not normally a praying man, but if you’re up there, save me… Superman!» — Homer Simpson
My Blog
-
Mar 3rd, 2010, 09:11 AM
#5
Thread Starter
Randalf the Red
Re: Netbeans 6.8 Execution Failed With Error Code 1
It’s my first MIDP project. I have posted the link to the tutorial I was following.
[edit]
The problem appears to have been resolved now. The emulator opened and I was able to test the code successfully. I am guessing it must be an issue with the ZoneAlarm firewall. Now that I ran the code, the firewall prompted me about three times for the emulator being invoked. After allowing all three instances, the emulator ran fine. I am suspecting the earlier times the firewall blocked the emulator from running.
[/edit]
.Last edited by honeybee; Mar 3rd, 2010 at 09:29 AM.
Reason: Problem resolved
I am not a complete idiot. Some parts are still missing.
Check out the rtf-help tutorial
General VB Faq Thread
Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
Get more power for your floppy disks. ; View honeybee’s Elite Club:
Use meaningfull thread titles. And add «[Resolved]» in the thread title when you have got a satisfactory response.
And if that response was mine, please think about giving me a rep. I like to collect them!
-
Mar 3rd, 2010, 09:34 AM
#6
Re: [RESOLVED] Netbeans 6.8 Execution Failed With Error Code 1
Sorry I don’t have it installed. Try asking in Sun forums (in case Oracle guys didn’t rename that)
«I’m not normally a praying man, but if you’re up there, save me… Superman!» — Homer Simpson
My Blog
-
Mar 6th, 2011, 12:44 AM
#7
New Member
Re: [RESOLVED] Netbeans 6.8 Execution Failed With Error Code 1
hi i have windows 7 64 bit and i had this problem «Execution failed with error code 1»
so i unistalled my netbeans and sdk 3 64 bit and instead i installed sdk 3 32 bit and netbeans again and my problem solved.for java me sdk 3 64 bit dont work.
Beeline Error: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask (state=08S01,code=1)
Issue:
Some time ago, I assisted a customer who was trying to do a select count(*) via beeline and failed with:
1 2 3 |
|
When reproducing this I found a jira: https://issues.apache.org/jira/browse/HIVE-14631 which related to the same issue and the workaround was to switch your execution engine to mapreduce. By doing that, it worked, but wanted a better resolution for the customer.
Debugging:
When setting enabling debugging, I found that the error is related to permissions:
1 2 3 4 5 6 7 8 |
|
So it seems that when the client (anonymous) is trying to copy the hive execution jar to is home path in HDFS, in this case (/home/anonymous/.hiveJars/) it fails due to permissions.
Resolution:
By passing the hadoop user, I was able to get the expected results:
1 2 3 4 5 6 |
|
Listing the mentioned jar:
1 2 3 |
|
Hope this might help someone facing the same issue
Problem
Running a command on a Hive table results in a «Running msck Error: Error while processing statement: FAILED» error
Resolving The Problem
What’;s Happening
You need to run the msck repair table command on the Hive table. However, you run into the following error with IBM Analytics Engine:
Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
For example, you see:
0: jdbc:hive2://chs-dpn-212-mn001.us-south.ae> msck repair table parquet_test_year_customer_new;
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
Why It’;s Happening
By default, the hive.msck.path.validation results in the following information:
0: jdbc:hive2://chs-dpn-212-mn001.us-south.ae> set hive.msck.path.validation;
+———————————-+—+
| set |
+———————————-+—+
| hive.msck.path.validation=throw |
+———————————-+—+
1 row selected (0.353 seconds)
How to Fix
Before you run the msck repair table command, set hive.msck.path.validation to ignore. Run the following command:
0: jdbc:hive2://chs-dpn-212-mn001.us-south.ae> set hive.msck.path.validation=ignore;
No rows affected (0.018 seconds)
After you run the previous command, repair the table using the following command:
0: jdbc:hive2://chs-dpn-212-mn001.us-south.ae> msck repair table parquet_test_year_customer_new;
No rows affected (3.451 seconds)
[{«Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Product»:{«code»:»SS83E9″,»label»:»IBM Analytics Engine»},»Component»:»»,»Platform»:[{«code»:»PF025″,»label»:»Platform Independent»}],»Version»:»All Versions»,»Edition»:»»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}}]
Description
Siriwinduna
2011-02-28 17:12:35 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201007282301) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.6.0_24 Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02
Comment 1
Siriwinduna
2011-02-28 17:15:15 UTC
I'm brand new to net beans and i got this error when i following the tutorials for mobile application development using Java ME as i run the code
Comment 2
Marian Mirilovic
2011-03-02 06:42:21 UTC
Ok, could you attach the whole error ? Thanks in advance.
Comment 3
malmassari
2011-07-09 17:46:46 UTC
I am developing a simple Hello Server Application using the latest Netbeans 7.0 (Full Version that includes J2SE, J2ME,...etc). The code compiles fine and runs great on a Windows 7 SP1 (32-bit) just fine. but when trying to run it on a Windows 7 Ultimate SP1 (64-bit) Windows, I get the following error: Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/E%3A/Development/NetBeansProjects/HelloServer/dist//HelloServer.jad Starting emulator in execution mode E:DevelopmentNetBeansProjectsHelloServernbprojectbuild-impl.xml:915: Execution failed with error code 1. BUILD FAILED (total time: 0 seconds) the content of build-impl.xml:915 is: <nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/> This makes me believe that it is something related to 32/64 bit Java Platform for Windows? I am running JAVA 6 Update 26 (64-bit). Product Version 6.0.260 and JAVA SE Development Kit 6 Update 26 (64-bit). Product Version 1.6.0.260 To reproduce the error, just install the latest JAVA JRE/SDK on a Windows 7 (64-bit) and try to compile any MIDlet file. You will get the above error. The same code runs fine on a Windows 32-bit (running JAVA 32-bit JRE/SDK). I have searched the net, and some posts suggest uninstalling Java 64-bit version for Windows and use 32-bit version instead is the solution? Is this true? if it is then we have a serious JAVA bug problem at hand. I will implement this change and update this case accordingly.
Comment 4
malmassari
2011-07-09 19:00:33 UTC
Ok problem resolved here what I did: 1. removed all JAVA 64-bit JRE and SDKs. Tried but still failed with same problem. 2. uninstalled Netbeans 7.0 Tried but failed with different Error this time. "Emulator 8 terminated while waiting for it to register!" 3. Disabled Kaspersky Antivirus/Firewall Tried but failed with same error as the one reported in Step#2. 4. Refreashed the J2ME Devices by going to Tools-Java Platorforms - then selecting Refresh. It configured devices successfully. Tried but failed with same error as the one reported in Step#2. 5. Applied Advice#1 from the URL: http://blogs.oracle.com/javamesdk/entry/first_aid_when_emulator_doesn which basically directs to copy Microsoft.VC80.CRT to cldc-FX folder AND at the same time, disabling DEP for runMidlet.exe. Tried this time it was successful I think there is a serious JAVA issue Specially that it was not fixed till I peformed step#5. Making runMidlet.exe overrun when executed is Not nice from Security perspective and Oracle/SUN should do a better job in writing secure software. This was reported as a Bug to Oracle per the blog post: http://blog.robin.smidsrod.no/2010/05/08/are-you-unable-to-run-the-javame-sdk-3-0 I am happy that finally my problem is resolved.
Comment 5
malmassari
2011-07-09 19:05:24 UTC
ok since this is not a Netbean issue as it is apparent from the discussion. I will close this case but this needs to be seriously reported to Oracle. Specially the 64-bit JAVA JRE/SDK not working. BTW the DEP bypass reported in step#5 in my previous post was tried when I had the 64-bit JAVA JRE/SDK installed on the system and it did not work making this clearly a JAVA 64-bit issue but I got to admit that I did not perform the Microsoft.VC80.CRT folder copy step. This needs to be reproduced and tested to see where exactly is the issue. I have another Windows 7 64-bit System where I will try to reproduce the issue and see which step actually solve it. Happy Development to all
Last Modified Date: 24 Aug 2022
Issue
After connecting to a Hadoop Hive data from Tableau Desktop, when you try to drag a field into the view or filter data, the following error might occur:
Error from Hive: error code: ‘1’ error message: Error while processing statement: Failed: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask
Environment
- Tableau Desktop
- Hortonworks Hadoop Hive
- MapR Hadoop
- Cloudera Hadoop Hive
- Cloudera Impala
Resolution
Work with you database administrator to troubleshoot the following database configurations:
- Verify that the Hadoop Hive configuration does not contain added properties:
- Verify that properties allow for SELECT statements with defined fields from tables, for example, SELECT <field_name> FROM <table_name>.
- Restart the Hadoop Hive cluster to ensure that the database is not referring to cached configurations or JAR files that no longer exist.
Cause
This error is passed to Tableau Desktop from the database. It indicates that there is a problem with the Hadoop Hive database configuration.
Additional Information
Cloudera: Hive ODBC query fails, works in Hive shell though — hive.aux.jars.path?
Перенести данные из hbase в улей
Ошибка при создании кустом таблицы, связанной с таблицей hbase
CREATE EXTERNAL TABLE test01
(key string,
name string,
age string,
sex string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,info:name,info:age,info:sex")
TBLPROPERTIES ("hbase.table.name" = "test01", "hbase.mapred.output.outputtable" = "test01");
Детали вопроса:
Аномалия первая: (не обращая внимания на скриншот)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org/apache/hadoop/hbase/mapreduce/TableInputFormatBase
Исключение два:
FAILED: Execution Error, return code 1 from MetaException(message:MetaException(message:java.io.IOException:java.lang.reflect.InvocationTargetException
(Примечание: bin / hive -hiveconf hive.root.logger = DEBUG, консоль для отладки)
Решение:
1. Импортируйте следующую банку hbase в каталог lib улья.
hbase-client-0.98.1-cdh5.1.0.jar
hbase-hadoop-compat-0.98.1-cdh5.1.0.jar
hbase-protocol-0.98.1-cdh5.1.0.jar
hbase-server-0.98.1-cdh5.1.0.jar
htrace-core-2.04.jar
2. Измените файл hive-env.sh.
3. Измените набор символов метастора хранилища улья на latin1 [эта операция не является обязательной]
alter database cdhmetastore character set latin1;
4. Перезапустите hbase и hive и выполните операции.
5. После успешного создания таблицы данные в таблице hbase test01 автоматически синхронизируются с таблицей hive test01.
6.End……