Languages

Menu
Sites
Language
Cannot create package. SBI failed! in Ubuntu
  Ubuntu 12.04 + java-7 
Cannot create package. SBI failed!
 
it compiles ok,but
when click debug , I got a error.
Cannot create package. SBI failed!
Command:/home/aurasdev/tizen-sdk/tools/smart-build-interface/bin/sbi action tizen-emulator-2.1.native_llvm31.i386.cpp.app -- buildpackage -BUILD_DIR="/home/aurasdev/workspace/TestOGL/Debug" -ARCH=i386 -PKG_TYPE=TPK -PKG_NAME=SiT20GrHnB -PRJ_NAME=TestOGL -PKG_VER=1.0.0 -SIGN_CERT_DIR="/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/developer/tizen-developer-ca.cer" -SIGN_AUTHOR_KEY="/home/aurasdev/tizen-sdk/tools/certificate-generator/blueshell.p12" -SIGN_AUTHOR_PWD="akey" -SIGN_DIST1_KEY="/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12" -SIGN_DIST1_PWD="tizenpkcs12passfordsigner" -SIGN_DIST1_CA="/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-ca.cer" -SIGN_DIST2_KEY="" -SIGN_DIST2_PWD="" -SIGN_DIST2_CA="" -SIGN_DIST2_ROOT=""
 
also get a error in console
 
Signing...
"/home/aurasdev/tizen-sdk/tools/smart-build-interface/../ide/bin/native-signing" "/home/aurasdev/workspace/TestOGL/Debug/.tpk" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/developer/tizen-developer-ca.cer" "/home/aurasdev/tizen-sdk/tools/certificate-generator/blueshell.p12" "****" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12" "****" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-ca.cer" "" "****" "" ""
The message is "log4j:WARN Fatal parsing error 39 and column 1
log4j:WARN 文件提前结束。 log4j:ERROR Could not parse url [jar:file:/home/aurasdev/tizen-sdk/tools/ide/lib/org.tizen.common_2.0.0.201305141705.jar!/log4j.xml].
org.xml.sax.SAXParseException; systemId: jar:file:/home/aurasdev/tizen-sdk/tools/ide/lib/org.tizen.common_2.0.0.201305141705.jar!/log4j.xml; lineNumber: 39; columnNumber: 1; 文件提前结束。
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:329)
at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.xml.security.Init.<clinit>(Unknown Source)
at hashsign.HashingSigning.HashSignExecuteIde(HashingSigning.java:461)
at hashsign.HashingSigning.HashSignEntryFromIde(HashingSigning.java:306)
at hashsign.HashingSigning.AuthorSignature(HashingSigning.java:84)
at org.tizen.common.sign.signer.TizenSigner.authorSign(TizenSigner.java:79)
at org.tizen.common.sign.signer.TizenSigner.main(TizenSigner.java:72)
 
Edited by: Blue Shell on 22 May, 2013

Responses

36 Replies
Blue Shell
also get a error in console Signing... "/home/aurasdev/tizen-sdk/tools/smart-build-interface/../ide/bin/native-signing" "/home/aurasdev/workspace/TestOGL/Debug/.tpk" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/developer/tizen-developer-ca.cer" "/home/aurasdev/tizen-sdk/tools/certificate-generator/blueshell.p12" "****" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12" "****" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-ca.cer" "" "****" "" "" The message is "log4j:WARN Fatal parsing error 39 and column 1 log4j:WARN 文件提前结束。
Blue Shell
also get a error in console Signing... "/home/aurasdev/tizen-sdk/tools/smart-build-interface/../ide/bin/native-signing" "/home/aurasdev/workspace/TestOGL/Debug/.tpk" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/developer/tizen-developer-ca.cer" "/home/aurasdev/tizen-sdk/tools/certificate-generator/blueshell.p12" "****" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12" "****" "/home/aurasdev/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-ca.cer" "" "****" "" "" The message is "log4j:WARN Fatal parsing error 39 and column 1 log4j:WARN 文件提前结束。
Vineet Tiwari
Can you share the code snippet ?
Vineet Tiwari
Can you share the code snippet ?
Vineet Tiwari
can you share the code snippet?
Blue Shell
I just create OpenGL form sample. It compiles ok , but fail on installing( seems fail on signing)
Blue Shell
any one knews?
Vineet Tiwari
I'm not able see the replies . nor i'm able see the replies I've posted here .
Blue Shell
I can't see it too. for my select my language is Chinese, I change my language to english , it can be shown, that a bug.
Blue Shell
I just create OpenGL form sample. It compiles ok , but fail on installing( seems fail on signing)
Vineet Tiwari
I too created that sample application , it worked fine for me . Did you add any code to it ? If so Share it here
Blue Shell
it seem the siging problem first i installed a Ubuntu 12.04 in vmware. install Java-7 oracle install tizen-sdk 2.0.1 create a device. create a .p12 file run emulator create a sample proj run it. the same thing happen in ubuntu 11
Blue Shell
it runs ok in sdk 2.0.0 in sdk 2.1.0 it got that problem
Blue Shell
it runs ok in sdk 2.0.0 in sdk 2.1.0 it got that problem
Blue Shell
it is the error callstack log4j:ERROR Could not parse url [jar:file:/home/aurasdev/tizen-sdk/tools/ide/lib/org.tizen.common_2.0.0.201305141705.jar!/log4j.xml]. org.xml.sax.SAXParseException; systemId: jar:file:/home/aurasdev/tizen-sdk/tools/ide/lib/org.tizen.common_2.0.0.201305141705.jar!/log4j.xml; lineNumber: 39; columnNumber: 1; 文件提前结束。 at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:329) at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) at org.apache.log4j.LogManager.(LogManager.java:127) at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289) at org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:109) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116) at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.apache.xml.security.Init.(Unknown Source) at hashsign.HashingSigning.HashSignExecuteIde(HashingSigning.java:461) at hashsign.HashingSigning.HashSignEntryFromIde(HashingSigning.java:306) at hashsign.HashingSigning.AuthorSignature(HashingSigning.java:84) at org.tizen.common.sign.signer.TizenSigner.authorSign(TizenSigner.java:79) at org.tizen.common.sign.signer.TizenSigner.main(TizenSigner.java:72)
Vineet Tiwari
hi please check the link below hopefully your signing problem may resolve https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fapp_dev_process%2Fdebugging_app_emulator.htm
Blue Shell
I'v already gen a p12 files. I do same thing in windows , so i am sure what I do is correct. but in windows, i got a blank screen in running opengl demo. so i tried ubuntu. by the way , in sdk 2.0.0 . windows and ubuntu is both ok, but it is too slow to debugging in 2.0.0.
Blue Shell
I can supply vmware image for you to check the problem. I only install java-7 and tizen-sdk in ubuntu 12. do i need to set something in path?
Blue Shell
I can supply vmware image for you to check the problem. I only install java-7 and tizen-sdk in ubuntu 12. do i need to set something in path?
Blue Shell
BTW the error is log4j:ERROR Could not parse url [jar:file:/home/aurasdev/tizen-sdk/tools/ide/lib/org.tizen.common_2.0.0.201305141705.jar!/log4j.xml]. so it may be a bug in PATH setting
Vineet Tiwari
after installing java-7 you need to install some packages use this command to install the packages $ sudo apt-get install procps gettext libdbus-1-3 libcurl3 expect gtk2-engines-pixbuf grep zip make qemu-user-static libwebkitgtk-1.0-0 libgnome2-0 see the prerequisites to install tizen sdk in the below link https://developer.tizen.org/downloads/sdk/installing-sdk/prerequisites-tizen-sdk
Blue Shell
I of cause installed that, if i did not install them , tizen sdk should not start installing
Blue Shell
I of cause installed that, if i did not install them , tizen sdk should not start installing
Blue Shell
I reinstall ubuntu , and do everything step by step strictly , but i got the same error.
Blue Shell
finally I find the problem. I only know cpp , so I not select "Web App Development" , nor "Platforms->Tizen 2.1->Web Samples". If we install SDK without them , we can't debug a Cpp APP. in Tizen 2.0.0, it is ok. It cost me 5 days! can you check it?
Blue Shell
SDK 2.0.0 has no signing tools, so it can be installed without "Web App Development" . in 2.1.0 , the sign tool may be package to "Web App Development" , so if we not select "Web App Development" , we can't make a native application. I think it is a bug.
Trieu Le
Hi blueshell I have problem like you. But i run web app it ok. Can you explain how to run native app at detail ? My sdk 2.1.0 Thanks
Lakshmi Grandhi
Hi Zenymax, You can create native app after selecting native app from project, there are sample applications and formats available. Then run native app, it will create TPK file and build package will be installed and running in Emulator.
Trieu Le
Hi Lakshmi Grandhi I have built project but i cann't find TPK file. and show error: Cannot create package. SBI failed! Command:/home/ldttrieu/tizen-sdk/tools/smart-build-interface/bin/sbi action tizen-emulator-2.1.native_llvm31.i386.cpp.app -- buildpackage -BUILD_DIR="/home/ldttrieu/workspace/Tizen/TizenNative/Debug" -ARCH=i386 -PKG_TYPE=TPK -PKG_NAME=Czl8fvnQXa -PRJ_NAME=TizenNative -PKG_VER=2.0.0 -SIGN_CERT_DIR="/home/ldttrieu/tizen-sdk/tools/certificate-generator/certificates/developer/tizen-developer-ca.cer" -SIGN_AUTHOR_KEY="/home/ldttrieu/tizen-sdk/tools/certificate-generator/demo.p12" -SIGN_AUTHOR_PWD="123456" -SIGN_DIST1_KEY="/home/ldttrieu/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12" -SIGN_DIST1_PWD="tizenpkcs12passfordsigner" -SIGN_DIST1_CA="/home/ldttrieu/tizen-sdk/tools/certificate-generator/certificates/distributor/tizen-distributor-ca.cer" -SIGN_DIST2_KEY="" -SIGN_DIST2_PWD="" -SIGN_DIST2_CA="" -SIGN_DIST2_ROOT="" Run web app it ok. How can i fix it??
Lakshmi Grandhi
Hi Zenymax, I have created bug https://bugs.tizen.org/jira/browse/TSDK-132, kindly follow it for updates.
Lakshmi Grandhi
Hi, Can you please attach the logs in the Console view and /.metadata/.log file in bug https://bugs.tizen.org/jira/browse/TSDK-132 Developer is requested for it, kindly attach the logs so that issue will be resolved soon.
Lakshmi Grandhi
Hi, Can you please attach /.metadata/.log file. in JIRA Bug https://bugs.tizen.org/jira/browse/TSDK-132
Arnaud Guyon

I had the same issue on Windows: I could build the project, but couldn't deploy on the device: "Cannot create package. SBI failed!"

I found the magic solution: adding jre bin to the system "Path" variable

(on my computer located in C:\Program Files\Java\jre7\bin).

Hope that helps.

 

Agarwal

I had exactly same issue on Windows 7 (64 bit).

Updating Path variable worked for me too. Thanks for posting this magic solution :)

Ritesh Khadgaray

off topic -

 

I also did hit this bug, as the password contained "$" . It seems , passwords is being and expanded by shell as these  are not quoted, when passed between different scripts ? 

dongsu kim

Thank you, so mach..

I also had same problem and solved it using your solution.

 

if you modify 'Path', you should restart IDE.