SessionNotCreatedException: Language requested, en ,isn't supported Error

205 views
Skip to first unread message

Sasi kumar M

unread,
Apr 16, 2013, 9:32:12 AM4/16/13
to ios-d...@googlegroups.com

Following error is thrown when i try to run ios-driver with my own app. i have started  my app


java -jar ios-server-0.5.0.jar -aut ~/Documents/ZH.app -port 4444

54:02:666 INFO IOSServer.init  

Inspector: http://0.0.0.0:4444/inspector/

tests can access the server at http://0.0.0.0:4444/wd/hub

server status: http://0.0.0.0:4444/wd/hub/status

using xcode install : /Applications/Xcode.app

using IOS version 6.0

ios >= 6.0. Safari and hybrid apps are supported.


Applications :

--------------- 

CFBundleName=ZH,CFBundleVersion=2.1.0

CFBundleName=Safari,CFBundleVersion=8536.25


2013-04-16 18:54:02.697:INFO::jetty-7.x.y-SNAPSHOT

2013-04-16 18:54:02.787:INFO::Started SelectChann...@0.0.0.0:4444




In my code error is shown in this line ,



DesiredCapabilities cap = IOSCapabilities.iphone("ZH", "2.1.0");




Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Language requested, en ,isn't supported.Supported are : []

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.2', java.version: '1.6.0_41'

Driver info: driver.version: IOSDriver

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.2', java.version: '1.6.0_41'

Driver info: driver.version: unknown

Command duration or timeout: 152 milliseconds

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.2', java.version: '1.6.0_41'

Driver info: driver.version: RemoteWebDriver

Session ID: 

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)

at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:151)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:531)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:215)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)

nicegraham

unread,
Apr 16, 2013, 10:12:16 AM4/16/13
to ios-d...@googlegroups.com
can you right-click on the .app and then "show package contents". There should be some language folders <lang_short_code.lproj> there - is english there: en.lproj? and is there a <something>.strings file in the folder? Other than InfoPlist.strings?

Sasi kumar M

unread,
Apr 17, 2013, 7:24:25 AM4/17/13
to ios-d...@googlegroups.com
It has only InfoPlist.strings and one .nib file!

nicegraham

unread,
Apr 17, 2013, 7:57:14 AM4/17/13
to ios-d...@googlegroups.com
That's the problem so... It should have another strings file. I think you'll need to speak to your devs.

Sasi kumar M

unread,
Apr 17, 2013, 9:51:56 AM4/17/13
to ios-d...@googlegroups.com
I created dummy file as localised.strings and it seems to be working. I have a doubt ,is there any tool to identify the dom object  (like xpath,classname etc as we do in firebug!). i know ios is different and it has only .m & .h files .

Graham Abell

unread,
Apr 17, 2013, 9:53:48 AM4/17/13
to Sasi kumar M, ios-driver
you can use the inspector to view the object tree:

Sasi kumar M

unread,
Apr 18, 2013, 2:00:54 AM4/18/13
to ios-d...@googlegroups.com, Sasi kumar M
May be i should read the document first (hope ,iam not the only one like this!) ,Thanks.

When i had breakpoint and ran in debug mode following error is thrown.

java.lang.NullPointerException
at org.uiautomation.ios.inspector.controllers.SessionGuesserController.canHandle(SessionGuesserController.java:43)
at org.uiautomation.ios.inspector.IDEServlet.getController(IDEServlet.java:104)
at org.uiautomation.ios.inspector.IDEServlet.doGet(IDEServlet.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1049)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:680)
28:40:757 WARNING IDEServlet.doGet  null

Sasi kumar M

unread,
Apr 18, 2013, 2:06:29 AM4/18/13
to ios-d...@googlegroups.com, Sasi kumar M
I googled and found that if we miss / at end this error occurs ,Putting / at end works .thanks.

kiran kumar

unread,
Apr 20, 2013, 1:47:28 PM4/20/13
to ios-d...@googlegroups.com
Sasi, Can you guide me on how you fixed the issue. I'm attaching the sample project i had used
AustralianPostcodes.zip

Sasi kumar M

unread,
Apr 22, 2013, 6:55:20 AM4/22/13
to ios-d...@googlegroups.com
what is the issue you are facing?

kiran kumar

unread,
Apr 28, 2013, 10:24:21 PM4/28/13
to ios-d...@googlegroups.com
Hi Sashi,

Looks like some issue  with the project. I checked with other apps and now its working fine

Regards,
Kiran

Sasi kumar M

unread,
Apr 29, 2013, 2:49:25 AM4/29/13
to ios-d...@googlegroups.com
Great to hear that it worked. please share if any issues or hurdle you faces ,that can help initial users like me!

Saikrishna....@photoninfotech.net

unread,
Jul 16, 2013, 6:51:26 AM7/16/13
to ios-d...@googlegroups.com
Hi Guys ,

I'm having the same issue as Sasi had ,

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Language requested, en ,isn't supported.Supported are : []


I dont find any lang file in the package. How do i fix this ??

Sasi kumar M

unread,
Jul 17, 2013, 12:07:26 AM7/17/13
to ios-d...@googlegroups.com, Saikrishna....@photoninfotech.net
I created dummy file as localised.strings and it seems to be working.

Reply all
Reply to author
Forward
0 new messages