Skip to content

Instantly share code, notes, and snippets.

@eyedol
Created September 11, 2013 06:58
Show Gist options
  • Save eyedol/6520148 to your computer and use it in GitHub Desktop.
Save eyedol/6520148 to your computer and use it in GitHub Desktop.
com.crowdmap.java.sdk.CrowdmapException: com.crowdmap.java.sdk.CrowdmapException: {"title":"Slim Application Error","code":8,"message":"Undefined variable: avatar","file":"\/root\/cm3\/api\/resources\/users.php","line":238,"trace":[{"file":"\/root\/cm3\/api\/resources\/users.php","line":238,"function":"handleErrors","class":"Slim","type":"::","args":[8,"Undefined variable: avatar","\/root\/cm3\/api\/resources\/users.php",238,{"user_id":"23","return":true,"cached":false,"user":{"user_index":"33","user_id":"ffd94997f1ecf27189271ca82951161c77c44240704433beb51660e75414f974afd1c731d40cf8f352d8b4067b0b9b0d3287645d4fbb8c2c9d1720d5969822fa","registered":"2012-10-29 10:14:44","avatar":"http:\/\/www.gravatar.com\/avatar\/1ff60c455589ab5059123f05eb309240?r=PG&s=200&d=404","badges":[]}}]},{"file":"\/root\/cm3\/api\/resources\/maps.php","line":60,"function":"avatar","class":"users","type":"::","args":["23",true]},{"file":"\/root\/cm3\/api\/resources\/users.php","line":159,"function":"getMaps","class":"Maps","type":"::","args":[null,"23"]},{"file":"\/root\/cm3\/api\/resources\/users.php","line":168,"function":"getPeopleMapsOwns","class":"users","type":"::","args":["23"]},{"file":"\/root\/cm3\/api\/core\/router-api-1.php","line":827,"function":"getPeopleMapsAssociated","class":"users","type":"::","args":["23"]},{"function":"{closure}","args":["23"]},{"file":"\/root\/cm3\/api\/slim\/Route.php","line":395,"function":"call_user_func_array","args":[{},["23"]]},{"file":"\/root\/cm3\/api\/slim\/Slim.php","line":1145,"function":"dispatch","class":"Slim_Route","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/Flash.php","line":84,"function":"call","class":"Slim","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/MethodOverride.php","line":91,"function":"call","class":"Slim_Middleware_Flash","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/PrettyExceptions.php","line":65,"function":"call","class":"Slim_Middleware_MethodOverride","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Slim.php","line":1097,"function":"call","class":"Slim_Middleware_PrettyExceptions","type":"->","args":[]},{"file":"\/root\/cm3\/api\/index.php","line":117,"function":"run","class":"Slim","type":"->","args":[]}],"status":500}
at com.crowdmap.java.sdk.net.CrowdmapHttpClient.request(CrowdmapHttpClient.java:149)
at com.crowdmap.java.sdk.net.CrowdmapHttpClient.get(CrowdmapHttpClient.java:164)
at com.crowdmap.java.sdk.service.UserService.getUsersAssociatedMaps(UserService.java:262)
at com.crowdmap.java.sdk.service.UserServiceTest.testGetUsersAssociatedMaps(UserServiceTest.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:176)
at junit.framework.TestCase.runBare(TestCase.java:141)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:80)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:47)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:355)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.crowdmap.java.sdk.CrowdmapException: {"title":"Slim Application Error","code":8,"message":"Undefined variable: avatar","file":"\/root\/cm3\/api\/resources\/users.php","line":238,"trace":[{"file":"\/root\/cm3\/api\/resources\/users.php","line":238,"function":"handleErrors","class":"Slim","type":"::","args":[8,"Undefined variable: avatar","\/root\/cm3\/api\/resources\/users.php",238,{"user_id":"23","return":true,"cached":false,"user":{"user_index":"33","user_id":"ffd94997f1ecf27189271ca82951161c77c44240704433beb51660e75414f974afd1c731d40cf8f352d8b4067b0b9b0d3287645d4fbb8c2c9d1720d5969822fa","registered":"2012-10-29 10:14:44","avatar":"http:\/\/www.gravatar.com\/avatar\/1ff60c455589ab5059123f05eb309240?r=PG&s=200&d=404","badges":[]}}]},{"file":"\/root\/cm3\/api\/resources\/maps.php","line":60,"function":"avatar","class":"users","type":"::","args":["23",true]},{"file":"\/root\/cm3\/api\/resources\/users.php","line":159,"function":"getMaps","class":"Maps","type":"::","args":[null,"23"]},{"file":"\/root\/cm3\/api\/resources\/users.php","line":168,"function":"getPeopleMapsOwns","class":"users","type":"::","args":["23"]},{"file":"\/root\/cm3\/api\/core\/router-api-1.php","line":827,"function":"getPeopleMapsAssociated","class":"users","type":"::","args":["23"]},{"function":"{closure}","args":["23"]},{"file":"\/root\/cm3\/api\/slim\/Route.php","line":395,"function":"call_user_func_array","args":[{},["23"]]},{"file":"\/root\/cm3\/api\/slim\/Slim.php","line":1145,"function":"dispatch","class":"Slim_Route","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/Flash.php","line":84,"function":"call","class":"Slim","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/MethodOverride.php","line":91,"function":"call","class":"Slim_Middleware_Flash","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/PrettyExceptions.php","line":65,"function":"call","class":"Slim_Middleware_MethodOverride","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Slim.php","line":1097,"function":"call","class":"Slim_Middleware_PrettyExceptions","type":"->","args":[]},{"file":"\/root\/cm3\/api\/index.php","line":117,"function":"run","class":"Slim","type":"->","args":[]}],"status":500}
at com.crowdmap.java.sdk.net.BaseHttpClient.getRequest(BaseHttpClient.java:341)
at com.crowdmap.java.sdk.net.BaseHttpClient.getRequest(BaseHttpClient.java:256)
at com.crowdmap.java.sdk.net.CrowdmapHttpClient.request(CrowdmapHttpClient.java:132)
... 41 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment