Mrjndong / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

HTTP Status 500 #188

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to http://emmun.elasticbeanstalk.com
2. Click on Facebook

What is the expected output? What do you see instead?
HTTP Status 500

What version of the product are you using? On what operating system?
http://socialauth.googlecode.com/files/socialauth-java-sdk-2.3.zip release date 
June 14, 2012

Please provide any additional information below.
TTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet springsocialauthdemo 
threw exception
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:636)
root cause

org.springframework.beans.factory.CannotLoadBeanClassException: Error loading 
class [org.brickred.controller.SuccessController] for bean with name 
'successController' defined in file 
[/opt/tomcat7/webapps/ROOT/WEB-INF/classes/org/brickred/controller/SuccessContro
ller.class]: problem with class file or dependent class; nested exception is 
java.lang.UnsupportedClassVersionError: 
org/brickred/controller/SuccessController : Unsupported major.minor version 
51.0 (unable to load class org.brickred.controller.SuccessController)
    org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1257)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1323)
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:889)
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
    org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:900)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:636)
root cause

java.lang.UnsupportedClassVersionError: 
org/brickred/controller/SuccessController : Unsupported major.minor version 
51.0 (unable to load class org.brickred.controller.SuccessController)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2827)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1160)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1655)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1533)
    org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
    org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
    org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1275)
    org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1246)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1323)
    org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:889)
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
    org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:900)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:636)

Original issue reported on code.google.com by krishna....@gmail.com on 25 Jun 2012 at 6:56

GoogleCodeExporter commented 8 years ago
This application is socialauth-spring-demo 

Original comment by krishna....@gmail.com on 25 Jun 2012 at 6:57

GoogleCodeExporter commented 8 years ago
Source code if required

Original comment by krishna....@gmail.com on 25 Jun 2012 at 6:59

Attachments:

GoogleCodeExporter commented 8 years ago
Which version of JDK you are using.
We are using jdk1.6.0_27.

So please use the same JDK or higher version.

Regards
Tarun

Original comment by tar...@brickred.com on 27 Jun 2012 at 11:57

GoogleCodeExporter commented 8 years ago
Am using JDK version 1.7.0_02

Original comment by krishna....@gmail.com on 27 Jun 2012 at 4:10

GoogleCodeExporter commented 8 years ago
Clean your project and build it again then try.

Regards
Tarun

Original comment by tar...@brickred.com on 28 Jun 2012 at 5:37

GoogleCodeExporter commented 8 years ago

Original comment by tar...@brickred.com on 16 Aug 2012 at 4:56

GoogleCodeExporter commented 8 years ago
I have same error, some help?
my url error: 
https://graph.facebook.com/oauth/access_token?client_id=344045805683531&redirect
_uri=http%3A%2F%2Flocalhost%3A8089%2Fsocialauth-spring-demo%2Fsocialauth.do&clie
nt_secret=45d66f17e506fc437d099616ee568d06&code=AQDWtYSLQD6z08DgsQ0-EthgVyQ9rdVn
d_L8z-y78WXmiZZh8kFC87i8k4rvjeD8o316sEeqqS1XRBVIOZqBbz0fMVlC-dUJEueWyKhaIV0x4Wfg
arxa1SWMIvFIb1aAH2d2V_3swL2ET7yqKfu7rMPk4SdgfY1gaSVL44-p3hD3VFa_NMNjor6kEdpvsQB-
l48&grant_type=authorization_code

Original comment by Cuong.Tr...@gmail.com on 25 Aug 2012 at 2:50

Attachments:

GoogleCodeExporter commented 8 years ago
Cuong

Can you please show me your spring configuration file.

Regards
Tarun

Original comment by tar...@brickred.com on 29 Aug 2012 at 5:33

GoogleCodeExporter commented 8 years ago
I try run project demo socialauth-spring-demo, i change facebook key and edit 
<bean id="socialAuthWebController" 
class="org.brickred.socialauth.spring.controller.SocialAuthWebController">
        <constructor-arg value="http://localhost:8089/socialauth-spring-demo" />
        <constructor-arg value="authSuccess.do" />
        <constructor-arg value="jsp/accessDenied.jsp" />
    </bean>

when i run project, error : 
Error in url : 
https://graph.facebook.com/oauth/access_token?client_id=115477588599203&redirect
_uri=http%3A%2F%2Flocalhost%3A8089%2Fsocialauth-spring-demo%2Fsocialauth.do&clie
nt_secret=45dd4e4264fc8937c68b92ab333460ec&code=AQCN_Qk3yo9uhCyYN9m0Q2pn4XAzwxTR
1BsourW4RIC82T9noV22zGYQIhHxMyZThkMYBtgIr2j40eeDuuFHlYdmf1JEwGpH35gotI-rpKj6cB0L
W9kqXQTzBx7H31NqaUpCdktBoBjnEsddcxl0qq5kwPhnQ4eG9RMb3KVt0cvnshsiJAsZ_BbRjOYkQ0ya
O70&grant_type=authorization_code

Original comment by Cuong.Tr...@gmail.com on 31 Aug 2012 at 2:09

Attachments:

GoogleCodeExporter commented 8 years ago
It seems you are running your application from localhost.
If you want to run your application from localhost, please have a look into 
following URL:-

http://code.google.com/p/socialauth/wiki/HowToRunApplicationWithLocalhostOnWindo
ws

Regards
Tarun

Original comment by tar...@brickred.com on 4 Sep 2012 at 5:16