Google Maps sdk ios Api error - ios

I try to show the map on the simulator and I tried so much to sold this problem but I always have this error how can I fixed please ?
**2016-05-24 14:32:41.295 Menti[40241:2494765] ClientParametersRequest failed, 7 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:32:41.879 Menti[40241:2494765] Google Maps SDK for iOS (M4B) version: 1.13.24482.0
2016-05-24 14:32:42.389 Menti[40241:2494765] ClientParametersRequest failed, 6 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:32:44.661 Menti[40241:2494765] ClientParametersRequest failed, 5 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:32:49.102 Menti[40241:2494765] ClientParametersRequest failed, 4 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:32:57.173 Menti[40241:2494765] ClientParametersRequest failed, 3 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:33:13.234 Menti[40241:2494765] ClientParametersRequest failed, 2 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:33:45.302 Menti[40241:2494765] ClientParametersRequest failed, 1 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:34:49.602 Menti[40241:2494765] ClientParametersRequest failed, 0 attempts remaining (0 vs 7). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:34:49.602 Menti[40241:2494765] Google Maps SDK for iOS (M4B) cannot connect or validate APIKey: Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<3c48544d 4c3e0a3c 48454144 3e0a3c54 49544c45 3e426164 20526571 75657374 3c2f5449 544c453e 0a3c2f48 4541443e 0a3c424f 44592042 47434f4c 4f523d22 23464646 46464622 20544558 543d2223 30303030 3030223e 0a3c4831 3e426164 20526571 75657374 3c2f4831 3e0a3c48 323e4572 726f7220 3430303c 2f48323e 0a3c2f42 4f44593e 0a3c2f48 544d4c3e 0a>}
2016-05-24 14:34:49.602 Menti[40241:2494765] Your key may be invalid for your bundle ID: com.menti.maps**

You have created a key for your application in google portal right. So in that, you have specified projects bundle identifier. You have to use the same bundle identifier for your application also. And also in App delegate method you have to use the same key.
Please follow the link
1.Google Map Integration for IOS
https://www.codeschool.com/courses/exploring-google-maps-for-ios
Please note below point also
If you want to practice on google maps from iOS devices then just download the GoogleMaps.framework from the below link: https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios
If you want to use GoogleMapsM4B.framework in your project then
You should request support on the Enterprise Support portal(Google's website)
You must enable Google Maps Mobile SDK for Work not Google Maps SDK for iOS in Google’s console website.
You can find the key differences between the Google Maps SDK for iOS and the Google Maps Mobile SDK for Work(M4B) in the below link: https://developers.google.com/maps/documentation/business/mobile/ios/
Hope this will Help You.

Seems like you are using wrong sdk.
as error suggests Google Maps SDK for iOS (M4B) cannot connect or validate APIKey means you are using Google Maps SDK Business version sdk and may be you are using right API key.
import correct Google Maps SDK and use appropriate API key.
#import <GoogleMaps/GoogleMaps.h>
Also check here: not able to use Google map sdk in ios

Just enable "Google Maps SDK for Ios and Android on Google Cloud Platform Console

Related

Gerrit reviewer suggestion fails "Illegal char <:>"

When I try to add reviewer in gerrit change and start to type his name, error window pops up.
gerrit error log entry
[HTTP GET /changes/hub-service~12708/suggest_reviewers?n=6&reviewer-state=REVIEWER&q=do (sku2296 from 10.80.196.89)] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/hub-service~12708/suggest_reviewers?n=6&reviewer-state=REVIEWER&q=do: UncheckedExecutionException [CONTEXT project="hub-service" request="REST /changes/*/suggest_reviewers" ]
com.google.common.util.concurrent.UncheckedExecutionException: java.nio.file.InvalidPathException: Illegal char <:> at index 47: D:\gerrit\git\All-Users.git\refs\groups\us\user:doskoc
at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache.get(CaffeinatedGuavaLoadingCache.java:65)
at com.google.gerrit.server.account.GroupCacheImpl.get(GroupCacheImpl.java:165)
at com.google.gerrit.server.account.GroupMembers.listAccounts(GroupMembers.java:96)
at com.google.gerrit.server.account.GroupMembers.listAccounts(GroupMembers.java:85)
at com.google.gerrit.server.restapi.change.ReviewersUtil.suggestGroupAsReviewer(ReviewersUtil.java:424)
at com.google.gerrit.server.restapi.change.ReviewersUtil.suggestAccountGroups(ReviewersUtil.java:372)
at com.google.gerrit.server.restapi.change.ReviewersUtil.suggestReviewers(ReviewersUtil.java:311)
at com.google.gerrit.server.restapi.change.ReviewersUtil.suggestReviewers(ReviewersUtil.java:228)
at com.google.gerrit.server.restapi.change.SuggestChangeReviewers.apply(SuggestChangeReviewers.java:97)
at com.google.gerrit.server.restapi.change.SuggestChangeReviewers.apply(SuggestChangeReviewers.java:42)
at com.google.gerrit.httpd.restapi.RestApiServlet.lambda$invokeRestReadViewWithRetry$6(RestApiServlet.java:908)
at com.github.rholder.retry.AttemptTimeLimiters$NoAttemptTimeLimit.call(AttemptTimeLimiters.java:78)
at com.github.rholder.retry.Retryer.call(Retryer.java:160)
at com.google.gerrit.server.update.RetryHelper.executeWithTimeoutCount(RetryHelper.java:564)
at com.google.gerrit.server.update.RetryHelper.execute(RetryHelper.java:507)
at com.google.gerrit.server.update.RetryableAction.call(RetryableAction.java:173)
at com.google.gerrit.httpd.restapi.RestApiServlet.invokeRestEndpointWithRetry(RestApiServlet.java:999)
at com.google.gerrit.httpd.restapi.RestApiServlet.invokeRestReadViewWithRetry(RestApiServlet.java:903)
at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:551)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
at com.google.gerrit.httpd.raw.StaticModule$PolyGerritFilter.doFilter(StaticModule.java:393)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.GetUserFilter.doFilter(GetUserFilter.java:92)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:120)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:62)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:139)
at com.google.gerrit.httpd.AllowRenderInFrameFilter.doFilter(AllowRenderInFrameFilter.java:56)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:135)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:141)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:60)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestMetricsFilter.doFilter(RequestMetricsFilter.java:92)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:64)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:54)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 47: D:\gerrit\git\All-Users.git\refs\groups\us\user:doskoc
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2292)
at org.eclipse.jgit.util.FileUtils.fileAttributes(FileUtils.java:710)
at org.eclipse.jgit.util.FS.fileAttributes(FS.java:1251)
at org.eclipse.jgit.internal.storage.file.FileSnapshot.<init>(FileSnapshot.java:234)
at org.eclipse.jgit.internal.storage.file.FileSnapshot.<init>(FileSnapshot.java:213)
at org.eclipse.jgit.internal.storage.file.FileSnapshot.save(FileSnapshot.java:104)
at org.eclipse.jgit.internal.storage.file.RefDirectory.scanRef(RefDirectory.java:1094)
at org.eclipse.jgit.internal.storage.file.RefDirectory.readRef(RefDirectory.java:1064)
at org.eclipse.jgit.internal.storage.file.RefDirectory.readAndResolve(RefDirectory.java:264)
at org.eclipse.jgit.internal.storage.file.RefDirectory.exactRef(RefDirectory.java:286)
at org.eclipse.jgit.lib.Repository.exactRef(Repository.java:1078)
at com.google.gerrit.server.account.GroupCacheImpl$ByUUIDInMemoryLoader.loadAll(GroupCacheImpl.java:292)
at com.google.gerrit.server.account.GroupCacheImpl$ByUUIDInMemoryLoader.load(GroupCacheImpl.java:272)
at com.google.gerrit.server.account.GroupCacheImpl$ByUUIDInMemoryLoader.load(GroupCacheImpl.java:254)
at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache$SingleLoader.load(CaffeinatedGuavaLoadingCache.java:136)
at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$2(LocalLoadingCache.java:141)
at com.github.benmanes.caffeine.cache.LocalCache.lambda$statsAware$0(LocalCache.java:139)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2413)
at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1908)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2411)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2394)
at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108)
at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:54)
at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache.get(CaffeinatedGuavaLoadingCache.java:59)
... 76 more
The issue is that gerrit creates file with invalid windows filename with ':', is there any workaround for windows ?
Gerrit 3.6.0, running on Windows Server 2012 R2, java 11
aasdasdasd asd asd asd a

Apple simple ping not work on iOS why?

I am using apple simple ping source code it works for MAC but not works on iOS.
https://developer.apple.com/library/mac/samplecode/SimplePing/Introduction/Intro.html
below is code I am writing
ping = [SimplePing simplePingWithHostName:#"www.google.com"];
ping.delegate = self;
[ping start];
console response
2016-03-18 18:11:07.252 PinPin[383:49747] >CFHostStartInfoResolution
2016-03-18 18:11:07.256 PinPin[383:49747] <CFHostStartInfoResolution
2016-03-18 18:11:07.334 PinPin[383:49747] >HostResolveCallback
2016-03-18 18:11:07.336 PinPin[383:49747] didStartWithAddress
16-03-18 18:22:42.375 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:44.382 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:46.388 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:48.419 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:50.422 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:52.820 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:54.852 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:56.857 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:22:58.862 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:23:00.844 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:23:02.855 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:23:05.178 PinPin[383:49747] didReceiveUnexpectedPacket
2016-03-18 18:23:07.006 PinPin[383:49747] didReceiveUnexpectedPacket
Nothing happens after this, no other delegate called like
- (void)simplePing:(SimplePing *)pinger didFailWithError:(NSError *)error;
- (void)simplePing:(SimplePing *)pinger didSendPacket:(NSData *)packet;
- (void)simplePing:(SimplePing *)pinger didFailToSendPacket:(NSData *)packet error:(NSError *)error;
- (void)simplePing:(SimplePing *)pinger didReceivePingResponsePacket:(NSData *)packet;
And in readMe.txt apple say
"SimplePing runs on Mac OS X 10.7 and later, although the core code works just fine on all versions of iOS and the underlying approach works on earlier versions of Mac OS X (back to 10.2)."
// UPDATE
MAC. response
Anands-MacBook-Air:~ anand$ cd ~/Downloads/SimplePing
Anands-MacBook-Air:SimplePing anand$ build/Debug/SimplePing www.apple.com
2016-03-19 19:55:48.042 SimplePing[1149:19595] >CFHostStartInfoResolution
2016-03-19 19:55:48.045 SimplePing[1149:19595] <CFHostStartInfoResolution
2016-03-19 19:55:49.490 SimplePing[1149:19595] >HostResolveCallback
2016-03-19 19:55:49.491 SimplePing[1149:19595] pinging 23.211.220.146
2016-03-19 19:55:49.491 SimplePing[1149:19595] #0 sent
2016-03-19 19:55:49.551 SimplePing[1149:19595] #0 received
2016-03-19 19:55:50.493 SimplePing[1149:19595] #1 sent
2016-03-19 19:55:50.557 SimplePing[1149:19595] #1 received
2016-03-19 19:55:51.495 SimplePing[1149:19595] #2 sent
2016-03-19 19:55:51.553 SimplePing[1149:19595] #2 received
2016-03-19 19:55:52.493 SimplePing[1149:19595] #3 sent
2016-03-19 19:55:52.551 SimplePing[1149:19595] #3 received
2016-03-19 19:55:53.493 SimplePing[1149:19595] #4 sent
2016-03-19 19:55:53.551 SimplePing[1149:19595] #4 received
2016-03-19 19:55:54.497 SimplePing[1149:19595] #5 sent
2016-03-19 19:55:54.556 SimplePing[1149:19595] #5 received
2016-03-19 19:55:55.494 SimplePing[1149:19595] #6 sent
2016-03-19 19:55:55.550 SimplePing[1149:19595] #6 received
2016-03-19 19:55:56.492 SimplePing[1149:19595] #7 sent
2016-03-19 19:55:56.551 SimplePing[1149:19595] #7 received
2016-03-19 19:55:57.498 SimplePing[1149:19595] #8 sent
2016-03-19 19:55:57.562 SimplePing[1149:19595] #8 received
2016-03-19 19:55:58.494 SimplePing[1149:19595] #9 sent
2016-03-19 19:55:58.552 SimplePing[1149:19595] #9 received
Try adding this to your didStartWithAddress:
- (void)simplePing:(SimplePing *)pinger didStartWithAddress:(NSData *)address
{
[pinger sendPingWithData:nil];
}

NSString testing won't evaluate to true when it should

So, I've been trying to get an NSPredicate to work, and it should. But it won't.
I've decided to loop through this array to test how come, and I've gotten to this point with testing
- (void)getItemsForGroup:(NSString *)groupID completion:(MenuQueryBlock)completion{
...
for (NSDictionary *group in [[[[[[self.singleMenuSet objectForKey:#"menuList"] firstObject] objectForKey:#"UnitMenu"] objectForKey:#"data"] objectForKey:#"groups"] objectForKey:#"group"]) {
NSLog(#"test");
NSLog(#"Group MasterGID: %#",[group objectForKey:#"MasterGID"]);
NSLog(#"test_ MasterGID: %#",groupID);
if ([[group objectForKey:#"MasterGID"] isEqualToString:groupID]) {
NSLog(#"Selected Group: %#",group);
}
}
....
completion(....)
}
Here is the section of the log where "Selected Group" should print.
2015-09-02 11:42:24.738 business_sect[3687:144610] test_ MasterGID: 24000040
2015-09-02 11:42:24.738 business_sect[3687:144610] test
2015-09-02 11:42:24.738 business_sect[3687:144610] Group MasterGID: 24000039
2015-09-02 11:42:24.738 business_sect[3687:144610] test_ MasterGID: 24000040
2015-09-02 11:42:24.738 business_sect[3687:144610] test
2015-09-02 11:42:24.738 business_sect[3687:144610] Group MasterGID: 24000040
2015-09-02 11:42:24.738 business_sect[3687:144610] test_ MasterGID: 24000040 <----right after this line
2015-09-02 11:42:24.738 business_sect[3687:144610] test
2015-09-02 11:42:24.739 business_sect[3687:144610] Group MasterGID: 24000041
2015-09-02 11:42:24.739 business_sect[3687:144610] test_ MasterGID: 24000040
2015-09-02 11:42:24.739 business_sect[3687:144610] test
2015-09-02 11:42:24.739 business_sect[3687:144610] Group MasterGID: 24000042
2015-09-02 11:42:24.739 business_sect[3687:144610] test_ MasterGID: 24000040
2015-09-02 11:42:24.739 business_sect[3687:144610] test
2015-09-02 11:42:24.739 business_sect[3687:144610] Group MasterGID: 24000043
2015-09-02 11:42:24.739 business_sect[3687:144610] test_ MasterGID: 24000040
So why isn't the "Selected Group" printing?
Can you try this ?
if ([(NSString *)group[#"MasterGID"] hash] == groupID.hash) {
NSLog(#"Selected Group: %#",group);
}

Understanding ISO mp4 m4a Metadata

I am unable to find a specification to understand the metadata from an m4a file.
This is not being copied across with AVAssetExportSession and I wanted to manually read and write this data to my exported file.
This is what I see in the debugger
AVMetadataFormatISOUserData;
2014-10-22 16:19:33.496 Mobile Magnet[189:15972] 1835365473,
<AVMutableMetadataItem: 0x17e7de00, identifier=uiso/meta, keySpace=uiso, key class =
__NSCFNumber, key=meta, commonKey=(null), extendedLanguageTag=(null),
dataType=com.apple.metadata.datatype.raw-data, time={INVALID}, duration={INVALID}, extras={
dataType = 0;
dataTypeNamespace = "com.apple.quicktime.udta";
}, value=<00000000 00000022 68646c72 00000000 00000000 6d646972 6170706c 00000000 00000000 00000000 0166696c 73740000 00bc2d2d 2d2d0000 001c6d65 616e0000 0000636f 6d2e6170 706c652e 6954756e 65730000 00146e61 6d650000 00006954 756e534d 50420000 00846461 74610000 00010000 00002030 30303030 30303020 30303030 30383430 20303030 30303144 30203030 30303030 30303030 39413131 46302030 30303030 30303020 30303030 30303030 20303030 30303030 30203030 30303030 30302030 30303030 30303020 30303030 30303030 20303030 30303030 30203030 30303030 30300000 00a22d2d 2d2d0000 001c6d65 616e0000 0000636f 6d2e6170 706c652e 6954756e 65730000 00146e61 6d650000 00006954 756e4e4f 524d0000 006a6461 74610000 00010000 00002030 30303031 32424620 30303030 31343139 20303030 30364533 36203030 30303830 32302030 30303241 31363120 30303033 34364432 20303030 30383230 42203030 30303831 36392030 30303244 38383720 30303033 30434335>>
},
This
}, value=<00000000 00000022 68646c72 00000000 00000000 6d646972 6170706c 00000000
looks like the name to an Atom (or block) in an MP4 container. I've seen those 5th through 12th bytes in a file that I made with Yamb and on the AtomicParsley page.

orika mapping error exists in Bytecode

I am trying to include orika in my project.
I have BaseEntity & BaseEntityDAO classes which got only Id column.
And those inherited by BaseAuditEntity & BaseAuditEntityDTO classes respectively. These classes have audit columns like created by, created_date, updated_by, updated_datetime.
Then these classes inherited by actual Entity and DTO classes depened whether they got audit columns or not.
I have a BaseServiceBean which takes ParameterizedTypes and have base CRUD implementations. So here I have taken conside this example from orika documentation.
So my problem is I am getting following error message when it is actually mapping the data.....
javax.faces.el.EvaluationException: java.lang.VerifyError: Inconsistent args count operand in invokeinterface
Exception Details:
Location:
ma/glasnost/orika/generated/Orika_UsersDTO_Users_Mapper25974687500962$0.mapAtoB(Ljava/lang/Object;Ljava/lang/Object;Lma/glasnost/orika/MappingContext;)V #59: invokeinterface
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2a2b 2c2d b700 0c2b c000 0e3a 042c c000
0000010: 103a 0519 04b6 0016 c000 1801 a500 2d19
0000020: 052a b400 1e03 32c0 0020 1904 b600 16c0
0000030: 0018 2ab4 0024 0332 c000 26b9 002a 0400
0000040: c000 2cb6 0032 a700 0919 0501 b600 3219
0000050: 04b6 0036 c000 3801 a500 2d19 052a b400
0000060: 1e04 32c0 0020 1904 b600 36c0 0038 2ab4
0000070: 0024 0432 c000 26b9 002a 0400 c000 38b6
0000080: 003c a700 0919 0501 b600 3c19 0519 04b6
0000090: 003f c000 18b6 0043 1905 1904 b600 46c0
00000a0: 0018 b600 4919 0519 04b6 004c c000 18b6
00000b0: 004f 1905 1904 b600 52c0 0018 b600 5519
00000c0: 0519 04b6 005b c000 2cb6 0060 1905 1904
00000d0: b600 63c0 0018 b600 6619 0519 04b6 0069
00000e0: c000 18b6 006c 1905 1904 b600 6fc0 0018
00000f0: b600 7219 0519 04b6 0075 c000 18b6 0078
0000100: 1905 1904 b600 7bc0 0018 b600 7e19 04b6
0000110: 0081 c000 1801 a500 2d19 052a b400 1e03
0000120: 32c0 0020 1904 b600 81c0 0018 2ab4 0024
0000130: 0332 c000 26b9 002a 0400 c000 2cb6 0084
0000140: a700 0919 0501 b600 8419 04b6 0087 c000
0000150: 3801 a500 2d19 052a b400 1e04 32c0 0020
0000160: 1904 b600 87c0 0038 2ab4 0024 0432 c000
0000170: 26b9 002a 0400 c000 38b6 008a a700 0919
0000180: 0501 b600 8a19 0519 04b6 008d c000 18b6
0000190: 0090 1905 1904 b600 93c0 0018 b600 962a
00001a0: b400 9a01 a500 112a b400 9a19 0419 052d
00001b0: b900 9d04 00b1
Stackmap Table:
append_frame(#73,Object[#14],Object[#16])
same_frame(#79)
same_frame(#133)
same_frame(#139)
same_frame_extended(#323)
same_frame(#329)
same_frame(#383)
same_frame(#389)
same_frame(#437)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:315)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.logging.log4j.core.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.VerifyError: Inconsistent args count operand in invokeinterface
Exception Details:
Location:
ma/glasnost/orika/generated/Orika_UsersDTO_Users_Mapper25974687500962$0.mapAtoB(Ljava/lang/Object;Ljava/lang/Object;Lma/glasnost/orika/MappingContext;)V #59: invokeinterface
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2a2b 2c2d b700 0c2b c000 0e3a 042c c000
0000010: 103a 0519 04b6 0016 c000 1801 a500 2d19
0000020: 052a b400 1e03 32c0 0020 1904 b600 16c0
0000030: 0018 2ab4 0024 0332 c000 26b9 002a 0400
0000040: c000 2cb6 0032 a700 0919 0501 b600 3219
0000050: 04b6 0036 c000 3801 a500 2d19 052a b400
0000060: 1e04 32c0 0020 1904 b600 36c0 0038 2ab4
0000070: 0024 0432 c000 26b9 002a 0400 c000 38b6
0000080: 003c a700 0919 0501 b600 3c19 0519 04b6
0000090: 003f c000 18b6 0043 1905 1904 b600 46c0
00000a0: 0018 b600 4919 0519 04b6 004c c000 18b6
00000b0: 004f 1905 1904 b600 52c0 0018 b600 5519
00000c0: 0519 04b6 005b c000 2cb6 0060 1905 1904
00000d0: b600 63c0 0018 b600 6619 0519 04b6 0069
00000e0: c000 18b6 006c 1905 1904 b600 6fc0 0018
00000f0: b600 7219 0519 04b6 0075 c000 18b6 0078
0000100: 1905 1904 b600 7bc0 0018 b600 7e19 04b6
0000110: 0081 c000 1801 a500 2d19 052a b400 1e03
0000120: 32c0 0020 1904 b600 81c0 0018 2ab4 0024
0000130: 0332 c000 26b9 002a 0400 c000 2cb6 0084
0000140: a700 0919 0501 b600 8419 04b6 0087 c000
0000150: 3801 a500 2d19 052a b400 1e04 32c0 0020
0000160: 1904 b600 87c0 0038 2ab4 0024 0432 c000
0000170: 26b9 002a 0400 c000 38b6 008a a700 0919
0000180: 0501 b600 8a19 0519 04b6 008d c000 18b6
0000190: 0090 1905 1904 b600 93c0 0018 b600 962a
00001a0: b400 9a01 a500 112a b400 9a19 0419 052d
00001b0: b900 9d04 00b1
Stackmap Table:
append_frame(#73,Object[#14],Object[#16])
same_frame(#79)
same_frame(#133)
same_frame(#139)
same_frame_extended(#323)
same_frame(#329)
same_frame(#383)
same_frame(#389)
same_frame(#437)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
at java.lang.Class.getConstructor0(Class.java:2793)
at java.lang.Class.newInstance(Class.java:345)
at ma.glasnost.orika.impl.generator.SourceCodeContext.getInstance(SourceCodeContext.java:264)
at ma.glasnost.orika.impl.generator.MapperGenerator.build(MapperGenerator.java:72)
at ma.glasnost.orika.impl.DefaultMapperFactory.buildMapper(DefaultMapperFactory.java:1190)
at ma.glasnost.orika.impl.DefaultMapperFactory.lookupMapper(DefaultMapperFactory.java:651)
at ma.glasnost.orika.impl.DefaultMapperFactory.lookupMapper(DefaultMapperFactory.java:609)
at ma.glasnost.orika.impl.MapperFacadeImpl.resolveMapper(MapperFacadeImpl.java:531)
at ma.glasnost.orika.impl.MapperFacadeImpl.resolveMappingStrategy(MapperFacadeImpl.java:206)
at ma.glasnost.orika.impl.MapperFacadeImpl.map(MapperFacadeImpl.java:694)
at ma.glasnost.orika.impl.MapperFacadeImpl.map(MapperFacadeImpl.java:675)
at za.co.insa.service.UsersServiceBean.getEntityDTO(UsersServiceBean.java:21)
at za.co.insa.service.UsersServiceBean.getEntityDTO(UsersServiceBean.java:15)
at za.co.insa.service.BaseServiceBean.findAll(BaseServiceBean.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy278.findAll(Unknown Source)
at za.co.insa.utils.LoginController.doLogin(LoginController.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.el.parser.AstValue.invoke(AstValue.java:275)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
... 68 more
I am getting this error when I am trying to map from Entity to DTO after getting Entity from the DB.
I have found that orika has some dependencies and I have to add them in pom.xml.
<!-- Orika-->
<dependency>
<groupId>ma.glasnost.orika</groupId>
<artifactId>orika-core</artifactId>
<version>1.4.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.paranamer</groupId>
<artifactId>paranamer</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
<artifactId>concurrentlinkedhashmap-lru</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>com.carrotsearch</groupId>
<artifactId>java-sizeof</artifactId>
<version>0.0.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
Abover mentioned are the dependecies. Don't know which one exactly solves the problem and doesn't know whether we need all these.
Thanks

Resources