Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
CODE BEING EXECUTED ------------------------- Titanium.Media.showCamera({ success:function(event) { // Check for valid photo if(e.mediaType === Titanium.Media.MEDIA_TYPE_PHOTO) { // Grab photo from media object. var image = event.media; // Grab sub-goal ID from event object. var sGoalId = e.subGoalId; // Which file-space we are using. var directoryRoot = null; // Final native path. var nativePath = null; // Save to local file system. Android: Favor external storage. if( Ti.Filesystem.isExternalStoragePresent() ) { directoryRoot = Ti.Filesystem.externalStorageDirectory; } else { directoryRoot = Ti.Filesystem.applicationDataDirectory; } var fileHandle = Ti.Filesystem.getFile(directoryRoot,'subGoalPhoto'+sGoalId+'.jpg'); fileHandle.write(image); nativePath = fileHandle.nativePath; // Store resource path in local database. db.addPhotoToSubGoal( sGoalId, nativePath ); Ti.App.fireEvent('refreshSubGoalsTables', {}); } // Irrelevant and unreached cancel/error events. } LOGCAT OUTPUT ------------------- I/SemcCameraHardware( 140): ~SemcCameraHardware X I/WindowManager( 226): Setting rotation to 0, animFlags=1 I/ActivityManager( 226): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=2/2 orien=1 layout=34 uiMode=17 theme=ComponentInfo{com.sonyericsson.defaultruntimethemes/com.sonyericsson.defaultruntimethemes.BlueThemeService} seq=28} D/GestureDetector( 318): touchSlop:32 doubleTapSlop:197 D/kernel ( 119): [12757.466278] mdp4_overlay_pipe_free: pipe=8074c390 ndx=5 D/CustomizationProvider( 351): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp D/AndroidRuntime( 3159): Shutting down VM W/dalvikvm( 3159): threadid=1: thread exiting with uncaught exception (group=0x2aac8578) E/TiApplication( 3159): (main) [59206,105665] Sending event: exception on thread: main msg:java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data dat=file:///sdcard/dcim/Camera/VA mTBI/tia-634316593.jpg typ=image/jpeg (has extras) }} to activity {edu.ufl.ahc.ese/org.appcelerator.titanium.TiModalActivity}: java.lang.NullPointerException; Titanium 2.1.4,2012/11/09 12:47,51f2c64 E/TiApplication( 3159): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data dat=file:///sdcard/dcim/Camera/VA mTBI/tia-634316593.jpg typ=image/jpeg (has extras) }} to activity {edu.ufl.ahc.ese/org.appcelerator.titanium.TiModalActivity}: java.lang.NullPointerException E/TiApplication( 3159): at android.app.ActivityThread.deliverResults(ActivityThread.java:2553) E/TiApplication( 3159): at android.app.ActivityThread.handleSendResult(ActivityThread.java:2595) E/TiApplication( 3159): at android.app.ActivityThread.access$2000(ActivityThread.java:121) E/TiApplication( 3159): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:973) E/TiApplication( 3159): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication( 3159): at android.os.Looper.loop(Looper.java:130) E/TiApplication( 3159): at android.app.ActivityThread.main(ActivityThread.java:3701) E/TiApplication( 3159): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication( 3159): at java.lang.reflect.Method.invoke(Method.java:507) E/TiApplication( 3159): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) E/TiApplication( 3159): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624) E/TiApplication( 3159): at dalvik.system.NativeStart.main(Native Method) E/TiApplication( 3159): Caused by: java.lang.NullPointerException E/TiApplication( 3159): at java.io.File.fixSlashes(File.java:205) E/TiApplication( 3159): at java.io.File.init(File.java:189) E/TiApplication( 3159): at java.io.File.<init>(File.java:139) E/TiApplication( 3159): at ti.modules.titanium.media.MediaModule$CameraResultHandler.onResult(MediaModule.java:461) E/TiApplication( 3159): at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:57) E/TiApplication( 3159): at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:79) E/TiApplication( 3159): at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:533) E/TiApplication( 3159): at android.app.Activity.dispatchActivityResult(Activity.java:3908) E/TiApplication( 3159): at android.app.ActivityThread.deliverResults(ActivityThread.java:2549) E/TiApplication( 3159): ... 11 more E/AndroidRuntime( 3159): FATAL EXCEPTION: main E/AndroidRuntime( 3159): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data dat=file:///sdcard/dcim/Camera/VA mTBI/tia-634316593.jpg typ=image/jpeg (has extras) }} to activity {edu.ufl.ahc.ese/org.appcelerator.titanium.TiModalActivity}: java.lang.NullPointerException E/AndroidRuntime( 3159): at android.app.ActivityThread.deliverResults(ActivityThread.java:2553) E/AndroidRuntime( 3159): at android.app.ActivityThread.handleSendResult(ActivityThread.java:2595) E/AndroidRuntime( 3159): at android.app.ActivityThread.access$2000(ActivityThread.java:121) E/AndroidRuntime( 3159): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:973) E/AndroidRuntime( 3159): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 3159): at android.os.Looper.loop(Looper.java:130) E/AndroidRuntime( 3159): at android.app.ActivityThread.main(ActivityThread.java:3701) E/AndroidRuntime( 3159): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 3159): at java.lang.reflect.Method.invoke(Method.java:507) E/AndroidRuntime( 3159): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) E/AndroidRuntime( 3159): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624) E/AndroidRuntime( 3159): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 3159): Caused by: java.lang.NullPointerException E/AndroidRuntime( 3159): at java.io.File.fixSlashes(File.java:205) E/AndroidRuntime( 3159): at java.io.File.init(File.java:189) E/AndroidRuntime( 3159): at java.io.File.<init>(File.java:139) E/AndroidRuntime( 3159): at ti.modules.titanium.media.MediaModule$CameraResultHandler.onResult(MediaModule.java:461) E/AndroidRuntime( 3159): at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:57) E/AndroidRuntime( 3159): at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:79) E/AndroidRuntime( 3159): at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:533) E/AndroidRuntime( 3159): at android.app.Activity.dispatchActivityResult(Activity.java:3908) E/AndroidRuntime( 3159): at android.app.ActivityThread.deliverResults(ActivityThread.java:2549) E/AndroidRuntime( 3159): ... 11 more W/ActivityManager( 226): Force finishing activity edu.ufl.ahc.ese/org.appcelerator.titanium.TiModalActivity D/dalvikvm( 318): GC_CONCURRENT freed 380K, 54% free 3238K/6983K, external 3375K/4157K, paused 2ms+6ms D/kernel ( 119): [12757.956298] max17040 0-0036: batt:100%, 4190 mV I/Database( 1283): sqlite returned: error code = 17, msg = statement aborts at 34: [select * from Master where FullPath =?] database schema has changed D/dalvikvm( 507): GC_CONCURRENT freed 61K, 49% free 2964K/5703K, external 2463K/3076K, paused 1ms+4ms W/ActivityManager( 226): Activity pause timeout for HistoryRecord{2b3e2480 edu.ufl.ahc.ese/org.appcelerator.titanium.TiModalActivity} W/kernel ( 119): [12758.476654] MtpIoctl:NoFreeBuffer() W/kernel ( 119): [12758.476684] MtpIoctl:NoFreeBuffer() I/Process ( 3159): Sending signal. PID: 3159 SIG: 9 E/JavaBinder( 226): !!! FAILED BINDER TRANSACTION !!! E/InputDispatcher( 226): channel '2afe2e98 edu.ufl.ahc.ese/edu.ufl.ahc.ese.VaMtbiActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8 E/InputDispatcher( 226): channel '2afe2e98 edu.ufl.ahc.ese/edu.ufl.ahc.ese.VaMtbiActivity (server)' ~ Channel is unrecoverably broken and will be disposed! I/ActivityManager( 226): Process edu.ufl.ahc.ese (pid 3159) has died. I/WindowManager( 226): WIN DEATH: Window{2afe2e98 edu.ufl.ahc.ese/edu.ufl.ahc.ese.VaMtbiActivity paused=false} E/kernel ( 119): [12759.528137] binder: 3159: binder_alloc_buf, no vma D/kernel ( 119): [12759.528167] binder: 226:264 transaction failed 29201, size 60-0 D/kernel ( 119): [12759.529357] binder: 226:1055 transaction failed 29189, size 56-0 I/WindowManager( 226): WIN DEATH: Window{2b2f5470 edu.ufl.ahc.ese/org.appcelerator.titanium.TiActivity paused=false} I/WindowManager( 226): WIN DEATH: Window{2b32a848 edu.ufl.ahc.ese/org.appcelerator.titanium.TiModalActivity paused=false} I/WindowManager( 226): WIN DEATH: Window{2b38d1a0 edu.ufl.ahc.ese/org.appcelerator.titanium.TiModalActivity paused=false}
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
sync_logs
Bash | 1 hour ago | 1.81 KB
Untitled
VeriLog | 2 hours ago | 0.37 KB
abe
C# | 3 hours ago | 2.59 KB
Nano_button_led_hc05
C++ | 3 hours ago | 1.50 KB
VanillaAmmoCraftsRecipes.json
JSON | 4 hours ago | 78.72 KB
Untitled
VeriLog | 5 hours ago | 0.10 KB
aks_k9s
Bash | 5 hours ago | 1.71 KB
Personalized Vein Treatment Plans at USA Vein...
HTML | 5 hours ago | 0.59 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!