Problem with android-html client

Forside Forum Developer discussions Problem with android-html client

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #3907
    rebecca
    Participant

    Hii,I have tried to install the android-html .apk file on a emulator, but I can't see the application. I get a error, "Error, communicating with server". My citizen-server is running, so it's not the problem. But I think the problem is when I'm building the .apk file.I have followed the instruction, and started with 1. npm install2. ...:~/OpenTele/opentele-client-html$ grunt ci-package --serverUrl='http://opentele-citizen.4s-online.dk/' --> I have changed this serverUrl to my citizen-server url.3. ~/OpenTele/opentele-client-android-html/telemed$ ../gradlew assembleDebug -PopenTeleUrl="http://opentele-html.4s-online.dk/ --> I have just tried to change the -PopenteleUrl to my citizen-server url, but it seems like nothing happens. Last week, I had this android-html .apk file on my emulator, and it worked. But now it is telling the error, "Error communicating with server".Thanks for your time./Rebecca

    #3933
    mikek
    Participant

    Hi,do you get the same error if you enter an invalid username/password combination ?^__^Mike

    #3934
    rebecca
    Participant

    But I can't enter username and password.I get the error, when I start the application.

    #3935
    mikek
    Participant

    Can you access it through a web-browser ?

    #3936
    rebecca
    Participant

    Yea, without no problems I can access it through the browser and also login as a patient.

    #3937
    mikek
    Participant

    That is good, it means everything except the android app is working as expected.  – But unfortunately it can also make it challenging to debug, what does “adb logcat” say?  (for readers on this forum who don't know about "adb": - adb is the debugger for Android devices, logcat, is the command to see various logs from the device)I just thought of one thing - when you build the Android HTML Client, did you make it point at the citizen server or the html client server with the -PopenTeleUrl="????" command?^__^Mike

    #3938
    rebecca
    Participant

    I have entered the citizen-server URL ind in -PopenteleUrl, isn't it correct?Following I have error from my logcat.08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=null, host=null, path=opentele-html.4s-online.dk/opentele-client-html/08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:591)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:293)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:653)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:616)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at dk.silverbullet.telemed.webview.ErrorHandlingWebView.isClientAvailable(ErrorHandlingWebView.java:67)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at dk.silverbullet.telemed.webview.ErrorHandlingWebView.access$200(ErrorHandlingWebView.java:20)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at dk.silverbullet.telemed.webview.ErrorHandlingWebView$1.doInBackground(ErrorHandlingWebView.java:53)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at dk.silverbullet.telemed.webview.ErrorHandlingWebView$1.doInBackground(ErrorHandlingWebView.java:40)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at android.os.AsyncTask$2.call(AsyncTask.java:288)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:237)08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)08-31 14:27:11.897    2094-2134/dk.silverbullet.telemed W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)08-31 14:27:11.897    2094-2134/dk.silverbullet.telemed W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)08-31 14:27:11.897    2094-2134/dk.silverbullet.telemed W/System.err﹕ at java.lang.Thread.run(Thread.java:818)08-31 14:27:11.936    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:11.968    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.006    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.006    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.010    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.016    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.046    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.046    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.054    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.058    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.070    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.070    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.079    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.087    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.094    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.094    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.103    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.109    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.116    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.117    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.128    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.131    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.160    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.160    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.171    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.193    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.221    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.221    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.234    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.235    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.248    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.248    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.258    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.266    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.269    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.270    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.275    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.301    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.311    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.314    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.321    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.325    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.328    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.328    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.337    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.339    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.351    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.351    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.421    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.424    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.478    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.478    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.482    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.488    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.502    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.502    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.510    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000b4408-31 14:27:12.516    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ glUtilsParamSize: unknow param 0x00000bd008-31 14:27:12.525    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)08-31 14:27:12.525    2094-2135/dk.silverbullet.telemed E/eglCodecCommon﹕ **** ERROR unknown type 0x0 (glSizeof,72)

    #3939
    rebecca
    Participant

    Can you see what the problem is?/Rebecca

    #3940
    mikek
    Participant

    Hi,I just want to verify something, you are using the Android HTML client, right?  That one needs to communicate with the client-html server, the one you can also access through a web-browser on the Android device - so that is what you have to give as the -P argument to gradlew.  What puzzles me in the log is that you write you have given the citizen-server URL with the -P argument, but the log say:  08-31 14:27:11.896    2094-2134/dk.silverbullet.telemed W/System.err﹕ java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=null, host=null, path=opentele-html.4s-online.dk/opentele-client-html/In the first line ???  - how can the app know that address ?  The citizen server don't know anything about the client-html server...^__^Mike

    #3941
    rebecca
    Participant

    Hi again,I still have problems through building the html-client. I have read and followed the instruction in the documentation, but I just get confused. I have never seen a server called html-client server, but now you write I have to use that one. This is confusing me.I have followed the following step, and get the following errors and have the following question for each point.1) I have tried to install, npm install, this gives following errornpm WARN cannot run in wd opentele-client-html@2.0.3 bower install (wd=/home/mike/OpenTele/opentele-client-html)I have googled this WARN, but without luck found something which had helped me.2) I have runned this commando:/OpenTele/opentele-client-html$ grunt ci-package --serverUrl='http://opentele-citizen.4s-online.dk/',I have replaced this serverUrl with my serverUrl for my opentele-citizen-server, is it correct? Or should I refer to another server? I'm here thinking of that one you call a client-html server, and my other question is, how do I get this server, and how do I run it??3) I run this commando:/OpenTele/opentele-client-android-html/telemed$ ../gradlew assembleDebug -PopenTeleUrl="http://opentele-html.4s-online.dk/Here I'm very confused about which server address I should give to the -PopenTeleUrl. The documentation says it should be the client-html server, but from where I get this host? This doesn't make sense to me, because we have a host for both the opentele-citizen-server and the opentele-server, which I get when I run these, but how does I access the client-html server.Hope you can guid me through this, and tell me in each point how I should do this./Rebecca

    #3942
    mikek
    Participant

    Hi,1) About the "npm WARN cannot run in wd..." I can see that error too in the old VM that I think you got a copy of - I think I know what the problem is (it's related to access rights), but rather than spending time on fixing it, maybe it would be an idea to use the new VM that is publicly available which don't have this issue, you can read about it here: http://wiki.4s-online.dk/doku.php?id=sandbox:opentele2) If the "npm install" fails, that might be a strong hint of why the build application doesn't work.  The client-html server, is called opentele-client-html and it is a server (or at least a package that is serving web pages through tomcat), even it doesn't have server in its name, sorry for the confusion by not being clear about that.  It is correct what you did, specifying the opentele-citizen-server's address when building the opentele-client-html server.3) The build command looks ok.There are three servers used in a running set up (four if you count the database server):A) The opentele-server (clinician interface) talks with the databaseB) The opentele-citizen-server (machine interface for citizen interfaces) talks with the databaseC) The opentele-client-html (server for the web citizen web interface) needs the machine interface of the opentele-citizen-server.You run the opentele-client-html package by generating a war file with the command you posted ("grunt ci-package --serverUrl='http://opentele-citizen.4s-online.dk/'") you then install this war file in tomcat and access it that way.  (But this should all be setup in the VM I linked to above)There are two Android applications:AA) opentele-client-android which communicates with the opentele-citizen-server - this is a native Android application that can communicate with measurement devices such as weight scales, blood pressure monitors, pulse oxymeters etc.AB) opentele-client-android-html which is a wrapper for the opentele-client-html server, this application only have limited/next to none ability to communicate with measurment devices, and relies mainly on manual entering of data.I hope the above helps? ^__^Mike

    #3943
    rebecca
    Participant

    Hi again,I see that there is a problem in this old VM, and have now tried to install that new one, but it fails through the unzipping. Hope you can try to upload a new version. I have pasted the error I get through unzipping the file.Rebeccas-MacBook-Pro:RebeccaJeba rebeccajeba$ jar xvf 4S Sandbox.zip   created: 4S Sandbox/ inflated: 4S Sandbox/4S Sandbox-s020.vmdk inflated: 4S Sandbox/4S Sandbox-s019.vmdk inflated: 4S Sandbox/4S Sandbox-s018.vmdk inflated: 4S Sandbox/4S Sandbox-s017.vmdk inflated: 4S Sandbox/4S Sandbox-s016.vmdk inflated: 4S Sandbox/4S Sandbox-s015.vmdk inflated: 4S Sandbox/4S Sandbox-s014.vmdk inflated: 4S Sandbox/4S Sandbox-s013.vmdk inflated: 4S Sandbox/4S Sandbox-s012.vmdk inflated: 4S Sandbox/4S Sandbox-s011.vmdk inflated: 4S Sandbox/4S Sandbox-s010.vmdk inflated: 4S Sandbox/4S Sandbox-s009.vmdk inflated: 4S Sandbox/4S Sandbox-s008.vmdk inflated: 4S Sandbox/4S Sandbox-s007.vmdk inflated: 4S Sandbox/4S Sandbox-s006.vmdk inflated: 4S Sandbox/4S Sandbox-s005.vmdkjava.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at java.util.zip.ZipInputStream.read(ZipInputStream.java:193) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:139) at sun.tools.jar.Main.extractFile(Main.java:1015) at sun.tools.jar.Main.extract(Main.java:924) at sun.tools.jar.Main.run(Main.java:264) at sun.tools.jar.Main.main(Main.java:1231)/Rebecca

    #3944
    mikek
    Participant

    I think you might have gotten a bad download – the MD5 checksum of the file should be 669375e0541a3180d4c325b92ce6d9d2 can you check if you have that?^__^Mike

    #3945
    rebecca
    Participant

    No, my checksum is: 1ee3197e6706d72572f45cb655d77c5e..Can you tell me how I can download it in another way?

    #3946
    mikek
    Participant

    I have reported the issue to AU IT, meanwhile if you are on site today with a USB thingy, then you can step by my office to get it directly (it's about 8 GB).^__^Mike

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.