Error while loading application

64 views
Skip to first unread message

Sandhya

unread,
Oct 1, 2012, 9:28:13 AM10/1/12
to openmobs...@googlegroups.com
Hi
 
I have deployed an application into jboss server, which makes use of mysql database.
The deployment is fine and even the table with rows are created for bootstrapping purpose.
But once i activate the cloudmanger and click on the application deployed in the emulator,the spinner keeps on loading and later i get the message " Remote command taking longer to execute".
There are no errors in DDMS and no error logs in jboss server.
 
What can be the issue?

Sohil Shah

unread,
Oct 1, 2012, 9:55:06 AM10/1/12
to openmobs...@googlegroups.com
In your application, when you launch are you waiting for the first sync to finish? Are you using the BaseCloudActivity or bootstrapping the CloudService yourself? What version of OpenMobster are you using?

Thanks
Sohil

Sandhya

unread,
Oct 4, 2012, 12:25:58 AM10/4/12
to openmobs...@googlegroups.com
 
 
 In your application, when you launch are you waiting for the first sync to finish?
 
 Yes, but here it is throwing the error.
Any idea how do i increase/decrease the loading time to finish the first sync with demo data ? Also what is the loading time set by default , after which the error message is shown?
 
and what is bootstrapping the CloudService yourself and how to do that? I am using OpenMobster-2.2- M8 version.
 
 
 
 

Schuller Tom

unread,
Oct 5, 2012, 12:21:38 PM10/5/12
to openmobs...@googlegroups.com

Did you started JBoss with interface binding interfaces, so that it listens to others addresses than 127.0.0.1?

Just start it with "-b 0.0.0.0" and your boss will listen on all addresses.

To test it, try to access the jboss page on a browser in your emulator:
  Http:// < iPad dress>:8080/

Tom

Sandhya

unread,
Oct 8, 2012, 7:29:04 AM10/8/12
to openmobs...@googlegroups.com
On first time access of the application,bootstrappiing works fine.But after some time i.e . on second time access of application it throws the following errors and closes the application
 

problem reading network stats

java.lang.IllegalStateException: problem parsing idx 1

at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:300)

at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1282)

at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:831)

at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:799)

at com.android.server.net.NetworkStatsService.access$100(NetworkStatsService.java:128)

at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:633)

at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)

at android.os.Handler.handleCallback(Handler.java:605)

at android.os.Handler.dispatchMessage(Handler.java:92)

at android.os.Looper.loop(Looper.java:137)

at android.os.HandlerThread.run(HandlerThread.java:60)

Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory)

at libcore.io.IoBridge.open(IoBridge.java:406)

at java.io.FileInputStream.<init>(FileInputStream.java:78)

at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:269)

... 10 more

Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)

at libcore.io.Posix.open(Native Method)

at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)

at libcore.io.IoBridge.open(IoBridge.java:390)

... 12 more

Also it throws the error

channel '41c49c68 org.showcase.app/org.openmobster.core.mobileCloud.android_native.framework.App (server)' ~ Channel is unrecoverably broken and will be disposed!

After this each time i try to access the application it bootstraps the application and throws the 

problem reading network stats

java.lang.IllegalStateException: problem parsing idx 1
 
... more
 

 How do i resolve this? Is it because the bootstraping is not getting enough time to sync data?If so,any idea how do i increase this?

I get the errors when i try to access the application later, it loads fine on first time access of the application.Why is this so?

Even if i try to reset the channel from cloudmanager it throws the same error

problem reading network stats

java.lang.IllegalStateException: problem parsing idx 1
 
... more
 
Sometimes, after bootstrapping there is no error trace but the data does'nt load (i.e. the data that had to load on bootup of the app) - it just gives a blank screen (where first sync data was expected). Why is this so?
 
Also on loading the new ticket screen - the spinners are not loaded with their data (i.e dropdown box) .Why is this so? This was working perfectly on first time access of the application.
 
 
data_not_loaded_from_db.JPG

Sandhya

unread,
Oct 11, 2012, 3:24:20 AM10/11/12
to openmobs...@googlegroups.com, smin...@gmail.com, Sohil Shah
I am getting the following error when i try to access the application by starting the jboss server
 
ERROR - class org.openmobster.core.common.ServiceManager
java.lang.IllegalStateException: Incompletely deployed:
DEPLOYMENTS IN ERROR:
  Deployment "/crm/bootstrap/data" is in error due to: java.lang.NullPointerException
DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "pcc_channel" is missing the following dependencies:
    Dependency "/crm/bootstrap/data" (should be in state "Create", but is actually in state "**ERROR**")
    Dependency "/crm/bootstrap/data" (should be in state "Start", but is actually in state "**ERROR**")
 
Where am i going wrong? What am i missing?
Reply all
Reply to author
Forward
0 new messages