uPortal IRC Logs-2011-09-23
[07:56:03 CDT(-0500)] <rlewis1> Hi Athena, Doing some more trial-and-error with the TitaniumStudio.ini file, I was able to get TS to use my jdk. So, the Windows problem is resolved. I hope I did not cause you to do much work bringing up Windows.
[08:04:48 CDT(-0500)] <rlewis1> Also, I updated to TS build 1.0.5.201109221620 this morning. Not sure if that had anything to dowith the problem.
[08:16:28 CDT(-0500)] <rlewis1> Actually, thinking back, the TS build update may have been the fix because I am pretty sure the TitaniumStudio.ini config I used was effectively the same as previous attempts.
[09:08:52 CDT(-0500)] <rlewis1> Hi Athena, I still do not get the uMobile app to come up in the android emulator. I captured the log output and I see the following.
[09:09:35 CDT(-0500)] <rlewis1> [INFO] [2011-09-23 09:03:59,438] Serving up files for org.jasig.portal.mobile.app at 0.0.0.0:49825 from D:\umobile-app\umobile-app-1.0.0-bin\umobile-app-1.0.0
[09:09:35 CDT(-0500)] <rlewis1> [INFO] logfile = D:\umobile-app\umobile-app-1.0.0-bin\umobile-app-1.0.0\build.log
[09:09:35 CDT(-0500)] <rlewis1> [DEBUG] C:\Users\r.lewis\AppData\Roaming\Titanium\mobilesdk\win32\1.7.2\android\builder.py simulator umobile-app-1.0.0 D:\android-sdk-windows D:\umobile-app\umobile-app-1.0.0-bin\umobile-app-1.0.0 org.jasig.portal.mobile.app 8 WVGA800
[09:09:35 CDT(-0500)] <rlewis1> [TRACE] app property, ti.android.compilejs : false
[09:09:35 CDT(-0500)] <rlewis1> [INFO] Building umobile-app-1.0.0 for Android ... one moment
[09:09:36 CDT(-0500)] <rlewis1> [ERROR] JDK version 'javac' is not recognized as an internal or external command,
[09:09:36 CDT(-0500)] <rlewis1> operable program or batch file. detected, but 1.6 is required
[09:10:05 CDT(-0500)] <rlewis1> my TS is running on jdk1.6.-_27
[09:10:49 CDT(-0500)] <rlewis1> is there some other config setting on umobile-app-1.0.0 where I point it to my jdk?
[10:27:38 CDT(-0500)] <athena> rlewis: what is your system path set to?
[10:32:43 CDT(-0500)] <rlewis> Right, I noticed that the java detector script in android-sdk did not detect java, so I changed my path to jdk1.6.0_27\bin, and updated my android sdk. Now when I run the android emulator more stuff works. But no umobile-app yet in android emulator. At the end of the console messages it says the following.
[10:33:07 CDT(-0500)] <rlewis> I/ActivityManager( 60): Displayed activity org.jasig.portal.mobile.app/org.appcelerator.titanium.TiActivity: 2902 ms (total 16435 ms)
[10:33:07 CDT(-0500)] <rlewis> D/skia ( 323): — decoder->decode returned false
[10:33:07 CDT(-0500)] <rlewis> D/skia ( 323): — decoder->decode returned false
[10:33:07 CDT(-0500)] <rlewis> D/skia ( 323): — decoder->decode returned false
[10:33:07 CDT(-0500)] <rlewis> D/skia ( 323): — decoder->decode returned false
[10:33:08 CDT(-0500)] <rlewis> D/TiAPI ( 323): (kroll$1: app://app.js) [497,1454] resizeGrid() in PortalGridView. Special layout: true
[10:33:08 CDT(-0500)] <rlewis> D/TiAPI ( 323): (kroll$1: app://app.js) [1,1455] User.isGuestUser() in resizeGrid()
[10:33:09 CDT(-0500)] <rlewis> D/TiAPI ( 323): (kroll$1: app://app.js) [2,1457] onPortalGridViewStateChange() in PortalWindowView. State is: Complete
[10:33:09 CDT(-0500)] <rlewis> D/TiAPI ( 323): (kroll$1: app://app.js) [1,1458] hideActivityIndicator() in PortalWindowView
[10:33:10 CDT(-0500)] <rlewis> D/SntpClient( 60): request time failed: java.net.SocketException: Address family not supported by protocol
[10:33:10 CDT(-0500)] <rlewis> D/SntpClient( 60): request time failed: java.net.SocketException: Address family not supported by protocol
[10:33:11 CDT(-0500)] <rlewis> D/SntpClient( 60): request time failed: java.net.SocketException: Address family not supported by protocol
[10:33:11 CDT(-0500)] <rlewis> D/SntpClient( 60): request time failed: java.net.SocketException: Address family not supported by protocol
[10:33:12 CDT(-0500)] <rlewis> I/EventLogService( 167): Aggregate from 1316789782915 (log), 1316789782915 (data)
[10:33:50 CDT(-0500)] <athena> could you share both your PATH and JAVA_HOME variables?
[10:34:05 CDT(-0500)] <athena> although that does sound like progress
[10:34:57 CDT(-0500)] <rlewis> JAVA_HOME=C:\Software\Java\jdk1.6.0_27
[10:35:44 CDT(-0500)] <athena> and PATH?
[10:37:47 CDT(-0500)] <rlewis> C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\springsource\grails-1.3.6\bin;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Software\Java\jdk1.6.0_27;C:\Program Files\TortoiseSVN\bin;C:\Program Files\SlikSvn\bin\;C:\Program File
[10:37:47 CDT(-0500)] <rlewis> s (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\MySQL\MySQL Server 5.5\bin;D:\Grep;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\P
[10:37:47 CDT(-0500)] <rlewis> rogram Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Software\Java\jdk1.6.0_27\bin;D:\android-sdk-windows;D:\Python27;D:\Git\bin
[10:39:43 CDT(-0500)] <b-rock> http://pastebin.com/A7pnKiKA
[10:40:50 CDT(-0500)] <holdorph> I can't speak to anything about the android sdk
[10:41:06 CDT(-0500)] <holdorph> but I have had MANY MANY problems with windows if I didn't put my jdk/bin directory first in my path
[10:41:13 CDT(-0500)] <holdorph> before windows paths
[10:41:47 CDT(-0500)] <rlewis> ok i will try that, thanks
[10:42:18 CDT(-0500)] <rlewis> in my console at the end it now says the following
[10:42:22 CDT(-0500)] <rlewis> [INFO] [2011-09-23 10:37:29,029] Shutting down Fastdev server due to idle timeout: 1800
[10:42:22 CDT(-0500)] <rlewis> [INFO] [2011-09-23 10:37:29,263] Fastdev server stopped.
[10:42:23 CDT(-0500)] <rlewis> [INFO] [2011-09-23 10:37:29,823] disconnected: 127.0.0.1:49640
[10:42:23 CDT(-0500)] <rlewis> [TRACE] app property, ti.android.compilejs : false
[10:42:23 CDT(-0500)] <rlewis> ----------------------------------------
[10:42:23 CDT(-0500)] <rlewis> Exception happened during processing of request from ('127.0.0.1', 49499)
[10:42:23 CDT(-0500)] <rlewis> ----------------------------------------
[10:42:30 CDT(-0500)] <athena> ok
[10:42:36 CDT(-0500)] <athena> i'd try running it again in that case
[10:42:41 CDT(-0500)] <rlewis> ok
[10:42:43 CDT(-0500)] <athena> i've seen it time out, then succeed the next time
[11:07:03 CDT(-0500)] <rlewis> Hi Athena, I changed my Path to C:\Software\Java\jdk1.6.0_27\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\; ...
[11:07:14 CDT(-0500)] <athena> did that help at all?
[11:08:22 CDT(-0500)] <rlewis> ran again. no uMobile-app in the emulator. i do not see any error messages. can i email you my log file?
[11:09:04 CDT(-0500)] <rlewis> could be it is just slow in coming up, dont know yet
[11:14:02 CDT(-0500)] <rlewis> in case you dont mind taking a look i am emailing my log file tou your gmail acct.
[11:14:50 CDT(-0500)] <athena> if you'd like you can use pastebin.com
[11:15:01 CDT(-0500)] <athena> bit more immediate
[11:15:20 CDT(-0500)] <athena> got it
[11:15:52 CDT(-0500)] <athena> hmm
[11:16:01 CDT(-0500)] <athena> i wonder if this is a path issue
[11:16:07 CDT(-0500)] <athena> file path - not something you did
[11:16:53 CDT(-0500)] <EricDalquist> hello
[11:17:30 CDT(-0500)] <athena> hey eric
[11:18:49 CDT(-0500)] <EricDalquist> looks like you guys are having fun with Windows
[11:19:09 CDT(-0500)] <athena> made easier by the fact that i have no windows install accessible to me right now
[11:19:29 CDT(-0500)] <EricDalquist> yay
[11:19:47 CDT(-0500)] <rlewis> hey, that means i gt to do valuable testing!
[11:19:59 CDT(-0500)] <athena> for the record, i really appreciate your patience3
[11:20:42 CDT(-0500)] <rlewis> this is quite valuable to us. I so so much thank you for your help!
[11:22:05 CDT(-0500)] <rlewis> i am trying to get some oceanography mobile apps up and going. i told you about those at the conference in Denver.
[11:23:21 CDT(-0500)] <athena> yeah, sounds like you have some very cool use cases
[11:23:27 CDT(-0500)] <athena> looking forward to seeing what you can do with it
[11:28:13 CDT(-0500)] <athena> we're still not sure what's causing that error
[11:28:17 CDT(-0500)] <athena> but does the app run at all for you?
[11:28:25 CDT(-0500)] <athena> what happens when that error appears? does it crash?
[11:28:55 CDT(-0500)] <rlewis> yes, but doesn't say "uMobile" like on the video
[11:29:20 CDT(-0500)] <rlewis> i am not seeing any error messages
[11:31:42 CDT(-0500)] <athena> ok
[11:31:54 CDT(-0500)] <athena> what screen are you looking at right now?
[11:32:07 CDT(-0500)] <athena> you might need to hit either the home or the menu button to see the list of apps (i always forget which one)
[11:33:04 CDT(-0500)] <rlewis> i hit the menu button. now it says "uMobile"
[11:33:13 CDT(-0500)] <rlewis> i think it is working
[11:33:15 CDT(-0500)] <athena> yay!
[11:34:14 CDT(-0500)] <rlewis> Fantastic! Now I need to try an IFrame app.
[11:34:39 CDT(-0500)] <athena> an actual iframe or a webview?
[11:36:57 CDT(-0500)] <rlewis> i thought was to take http://gcoos.tamu.edu/products/maps/boaters.html, and split it into little apps on the phone
[11:37:25 CDT(-0500)] <rlewis> i thought an iframe type of thing would do it
[11:38:34 CDT(-0500)] <athena> you might try configuring them as external modules - use the library/transit modules as an example
[11:38:49 CDT(-0500)] <athena> that gives you something very iframe-like and is easy to set up
[11:39:03 CDT(-0500)] <rlewis> ok, i will study it, thanks
[11:39:45 CDT(-0500)] <athena> let me know if you have questions
[11:39:59 CDT(-0500)] <rlewis> thanks, bye
[14:28:36 CDT(-0500)] <EricDalquist> athena did we have a standard way in 3.2 for portlets to tell if they were rendering in the mobile view?
[14:30:23 CDT(-0500)] <athena> no - the portlets all look at the user agent string themselves
[14:30:37 CDT(-0500)] <EricDalquist> ok
[14:30:48 CDT(-0500)] <EricDalquist> but the user agent is available via a request property right?
[14:30:48 CDT(-0500)] <athena> bbiab
[14:30:54 CDT(-0500)] <athena> yes, it is
[15:19:27 CDT(-0500)] <rlewis> Hi Athena, I tried to use HellowWorldController.js and renamed it. Also did steps 2&3. Title shows on emulator, but not icon. Thought maybe that controller is a bad example, but cannot identify which controller is used for transit. Which controller is used for transit so I can copy it? Thanks.
[15:20:26 CDT(-0500)] <athena> take a look at https://wiki.jasig.org/display/UMM/Include+an+External+Site
[15:20:32 CDT(-0500)] <athena> i realize the documentation is ummm sparse yet
[15:20:37 CDT(-0500)] <athena> but that's how the transit module is configured
[15:20:51 CDT(-0500)] <athena> basically you add another one of those entries
[15:20:59 CDT(-0500)] <athena> and then add an icon in the icon list in that same config.js file
[15:21:04 CDT(-0500)] <athena> with the same key fname
[15:26:56 CDT(-0500)] <rlewis> yes. thats what i did exactly
[15:29:24 CDT(-0500)] <athena> ok
[15:29:56 CDT(-0500)] <athena> do you have multiple sizes of the icon in the icon directory?
[15:30:26 CDT(-0500)] <rlewis> no just one
[15:31:05 CDT(-0500)] <athena> that might be the issue - you could try copying/renaming the icon and see fi that makes a difference
[15:31:14 CDT(-0500)] <athena> the app uses different icons depending on the resolution
[15:31:27 CDT(-0500)] <rlewis> ok, thanks
[15:33:51 CDT(-0500)] <athena> sure thing
[15:36:57 CDT(-0500)] <rlewis> when i click above the label it loads the external page, so thats good. but i need to get a better icon png. Anyway, I will call that initial success. Thanks!
[15:38:47 CDT(-0500)] <athena> terrific! glad it sounds like you're making progress
[15:46:59 CDT(-0500)] <rlewis> How could I trasfer the phone location to the app so the initial location for the map is the user's location?
[15:56:26 CDT(-0500)] <athena> right now it's configured to start at a hard-coded location
[15:56:42 CDT(-0500)] <athena> mostly because we figure a student might be off-campus, but wanting to look up campus resources
[15:58:34 CDT(-0500)] <rlewis> well, i would like to use it for boaters somewhere in the GulfofMex
[15:58:56 CDT(-0500)] <athena> ok
[15:59:15 CDT(-0500)] <athena> so you may wind up needing to create custom code, unless what you want is really close to the campus maps use case
[15:59:23 CDT(-0500)] <athena> it's designed to show a list of searchable buildings
[15:59:30 CDT(-0500)] <athena> but you could take some of that code as an example
[16:15:55 CDT(-0500)] <rlewis> ok, thanks.
[16:48:19 CDT(-0500)] <rlewis> Hi Athena, My uMobile server is on the tamu.edu network. How do I get my Verizon phone to use umobile-app-1.0.0 ?
[16:48:39 CDT(-0500)] <athena> is it an iphone?
[16:48:45 CDT(-0500)] <rlewis> android
[16:48:49 CDT(-0500)] <athena> ahh
[16:49:08 CDT(-0500)] <athena> there's a way to compile and deploy to a real device from titanium studio
[16:49:20 CDT(-0500)] <athena> you want deploy instead of run
[16:49:30 CDT(-0500)] <athena> i'd recommend following the titanium studio documentation
[16:49:37 CDT(-0500)] <rlewis> oh great! Thanks.
[16:49:46 CDT(-0500)] <athena> i personally have an iphone rather than an android, but my impression is that the android process is easier, luckily
[16:50:03 CDT(-0500)] <athena> if you get stuck, email the user list and i'll make sure jeff (my coworker who has an android) sees it