Skip to main content

Can't run downloaded app

6 replies [Last post]
john_evans
Offline
Joined: 2010-04-10

I'm trying to run an application which I've downloaded and which has successfully bound to the vfs, but when I come to run it it can't be found. My code is as follows:-

AppsDatabase db = AppsDatabase.getAppsDatabase();
appProxy = db.getAppProxy(new AppID(0x56789abc, 0x4001));
appProxy.start();

I've made sure the app and org IDs match up and have basically tried to duplicate what happens in the hdcookbook monitorIXCListener class but clearly I'm missing something...

This exception is thrown but I can't really see what it's got to do with what I'm trying to do?

" excepton happen when UserEventListener.userEventReceived() called"

I'm a bit new to this so my apologies if what I'm trying to do make no sense whatsoever, if I'm doing it wrong I'd be glad of any pointers you could give me in the right direction!

Cheers,
John

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chihiro_saito
Offline
Joined: 2006-11-08

It might also be helpful to try making a disc image that contains the content of what you're trying to bind using VFS update, and verify that your app can find the app with the ID that you're having trouble with in that setup. With that, you can find out whether the issue is about VFS update not binding contents properly, or, if the VFS update itself has worked but you have a problem in bdjo, jar, etc, that is causing AppsDatabase to not give back the target AppProxy.

Chihhiro

john_evans
Offline
Joined: 2010-04-10

Thanks, i've tried running it as you suggested and its still not running so it must be the download... Any ideas what could be causing it?

I've been assuming that since the requestUpdating() method succeded that the manifest and signature files must be correct? Is there any way of checking the jars and bdjos?

Re Bill's post, line 230 is:

appProxy.start();

Not helpful i know!

Cheers,

John

billf
Offline
Joined: 2004-02-13

> Re Bill's post, line 230 is:
>
> appProxy.start();

From that and the stack backtrace, I'd say that the variable appProxy is null. A good avenue of investigation would be to figure out how the library is trying to obtain the value that was supposed to have been in that variable, and why it's coming back null. The library should probably have some sort of debugging capability to help trace that, or if not, it should have one added.

Bill

billf
Offline
Joined: 2004-02-13

Hi John,

Do you have a full stack backtrace?

A good tool for getting that is com.hdcookbook.grin.util.Debug.printStackTrace(). The GrinXlet version of that even lets you telnet to your player (port 6000) to collect the backtrace, which is really handy for copy-pasting into e-mails and such.

Cheers,

Bill

john_evans
Offline
Joined: 2010-04-10

Here's the backtrace, problem seems to be that it's not finding the Xlet in the first place though, the AppProxy object returned is null. Hope this helps.

[5548] [20:03:06.468] [BDJ-Log] [error] java.lang.NullPointerException
[5548] [20:03:06.468] [BDJ-Log] [error] at com.zoo.bdlive.startbd.StartBD.runTest()V(CACHE:10000006:StartBD.java:230)
[5548] [20:03:06.468] [BDJ-Log] [error] at com.zoo.bdlive.startbd.StartBD.handleKeyPress(I)V(CACHE:10000006:StartBD.java:172)
[5548] [20:03:06.479] [BDJ-Log] [error] at com.zoo.bdlive.startbd.StartBD.access$000(Lcom/zoo/bdlive/startbd/StartBD;I)V(CACHE:10000006:StartBD.java:51)
[5548] [20:03:06.479] [BDJ-Log] [error] at com.zoo.bdlive.startbd.StartBD$2.userEventReceived(Lorg/dvb/event/UserEvent;)V(CACHE:10000006:StartBD.java:142)
[5548] [20:03:06.480] [BDJ-Log] [error] at com.arcsoft.dvb.event.EventManagerImpl.fireUserEvent(Ljava/lang/Object;IIIC)V(EventManagerImpl.java:271)
[5548] [20:03:06.480] [BDJ-Log] [error] at com.arcsoft.havi.event.BDInputEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V(BDInputEventQueue.java:180)
[5548] [20:03:06.482] [BDJ-Log] [error] at com.arcsoft.havi.event.BDInputEventQueue.run()V(BDInputEventQueue.java:126)
[5548] [20:03:06.483] [BDJ-Log] [error] at java.lang.Thread.startup(Z)V(Thread.java:775)
[5548] [20:03:06.486] [BDJ-Log] [debug] AppProxyImpl appProxyEventThreadPool=Thread[AppProxyEventThreadPool-0,5,XletThreadGroup-10000006], threadPoolName=AppProxyEventThreadPool-0
[5548] [20:03:06.487] [BDJ-Log] [info] Deal AppProxyEventObject com.arcsoft.application.xlet.AppProxyImpl$AppProxyEventObject, event=7args=null, forced=false
[5548] [20:03:06.487] [BDJ-Log] [debug] appProxyEvent is running,event:7
[5548] [20:03:06.988] [BDJ-Log] [debug] AppProxyEventThreadPool go to dead. name=AppProxyEventThreadPool-0

billf
Offline
Joined: 2004-02-13

Well, I'd recommend looking to whomever you got com.zoo.bdlive.startbd.StartBD from, and finding out more about what's happening on line 230, in the runTest() method.