java.net.UnknownHostException: dummy.test.local

Apereo Issues | Robert Oschwald | 9 years ago
  1. 0

    While we manually tried to get a ticket to a non existent domain to present the response documents of cas to some developers, we found a possible issue. If a ticket is issued with a non-existent domain in the service param, you always get a UnknownHostException. 1. Get a Ticket: https://<yourcasserver>/cas/login?service=https%3A%2F%2Fdummy.test.local%2Fmyapp%2Fcas_client_handler.xxx 2. Validate the ticket by hand to /serviceValidate with the same service param to an unknown host. On logout your logfile is filled with UnknownHostExceptions as the HttpClient tries to post the logout document. If this is used in conjunction with the RememberMe functionality and you have a long cookie validity time, the ticket will remain in the ticket Store. 2008-04-04 16:44:29,125 [TP-Processor7] [] ERROR org.jasig.cas.util.HttpClient - java.net.UnknownHostException: dummy.test.local java.net.UnknownHostException: dummy.test.local at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:519) at sun.net.NetworkClient.doConnect(NetworkClient.java:152) at sun.net.www.http.HttpClient.openServer(HttpClient.java:382) at sun.net.www.http.HttpClient.openServer(HttpClient.java:494) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:861) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) at org.jasig.cas.util.HttpClient.sendMessageToEndPoint(HttpClient.java:70) at org.jasig.cas.authentication.principal.AbstractWebApplicationService.logOutOfService(AbstractWebApplicationService.java:147) at org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:116) at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire(TicketGrantingTicketImpl.java:126) at org.jasig.cas.CentralAuthenticationServiceImpl.destroyTicketGrantingTicket(CentralAuthenticationServiceImpl.java:153) 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:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy43.destroyTicketGrantingTicket(Unknown Source) at org.jasig.cas.web.LogoutController.handleRequestInternal(LogoutController.java:63) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) Possible Fix: delete ticket from store if UnknownHostException occurs.

    Apereo Issues | 9 years ago | Robert Oschwald
    java.net.UnknownHostException: dummy.test.local
  2. 0

    While we manually tried to get a ticket to a non existent domain to present the response documents of cas to some developers, we found a possible issue. If a ticket is issued with a non-existent domain in the service param, you always get a UnknownHostException. 1. Get a Ticket: https://<yourcasserver>/cas/login?service=https%3A%2F%2Fdummy.test.local%2Fmyapp%2Fcas_client_handler.xxx 2. Validate the ticket by hand to /serviceValidate with the same service param to an unknown host. On logout your logfile is filled with UnknownHostExceptions as the HttpClient tries to post the logout document. If this is used in conjunction with the RememberMe functionality and you have a long cookie validity time, the ticket will remain in the ticket Store. 2008-04-04 16:44:29,125 [TP-Processor7] [] ERROR org.jasig.cas.util.HttpClient - java.net.UnknownHostException: dummy.test.local java.net.UnknownHostException: dummy.test.local at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:519) at sun.net.NetworkClient.doConnect(NetworkClient.java:152) at sun.net.www.http.HttpClient.openServer(HttpClient.java:382) at sun.net.www.http.HttpClient.openServer(HttpClient.java:494) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:861) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) at org.jasig.cas.util.HttpClient.sendMessageToEndPoint(HttpClient.java:70) at org.jasig.cas.authentication.principal.AbstractWebApplicationService.logOutOfService(AbstractWebApplicationService.java:147) at org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:116) at org.jasig.cas.ticket.TicketGrantingTicketImpl.expire(TicketGrantingTicketImpl.java:126) at org.jasig.cas.CentralAuthenticationServiceImpl.destroyTicketGrantingTicket(CentralAuthenticationServiceImpl.java:153) 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:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy43.destroyTicketGrantingTicket(Unknown Source) at org.jasig.cas.web.LogoutController.handleRequestInternal(LogoutController.java:63) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) Possible Fix: delete ticket from store if UnknownHostException occurs.

    Apereo Issues | 9 years ago | Robert Oschwald
    java.net.UnknownHostException: dummy.test.local
  3. 0

    Issue while updating web application using Eclipse Plugin

    Google Groups | 8 years ago | Ant
    java.net.UnknownHostException: www.google.com
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Slf4j Linking Error ?

    wpthm.com | 1 year ago
    java.net.UnknownHostException: api.clickatell.com
  6. 0

    HttpProxy Issue

    GitHub | 6 years ago | ramamoob
    org.scribe.exceptions.OAuthException: Problems while creating connection

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.UnknownHostException

      dummy.test.local

      at java.net.PlainSocketImpl.connect()
    2. Java RT
      HttpsURLConnectionImpl.getOutputStream
      1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
      2. java.net.Socket.connect(Socket.java:519)
      3. sun.net.NetworkClient.doConnect(NetworkClient.java:152)
      4. sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
      5. sun.net.www.http.HttpClient.openServer(HttpClient.java:494)
      6. sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278)
      7. sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
      8. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
      9. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769)
      10. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
      11. sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:861)
      12. sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
      12 frames
    3. Jasig CAS Core
      CentralAuthenticationServiceImpl.destroyTicketGrantingTicket
      1. org.jasig.cas.util.HttpClient.sendMessageToEndPoint(HttpClient.java:70)
      2. org.jasig.cas.authentication.principal.AbstractWebApplicationService.logOutOfService(AbstractWebApplicationService.java:147)
      3. org.jasig.cas.ticket.TicketGrantingTicketImpl.logOutOfServices(TicketGrantingTicketImpl.java:116)
      4. org.jasig.cas.ticket.TicketGrantingTicketImpl.expire(TicketGrantingTicketImpl.java:126)
      5. org.jasig.cas.CentralAuthenticationServiceImpl.destroyTicketGrantingTicket(CentralAuthenticationServiceImpl.java:153)
      5 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    8. Unknown
      $Proxy43.destroyTicketGrantingTicket
      1. $Proxy43.destroyTicketGrantingTicket(Unknown Source)
      1 frame
    9. Jasig CAS Core
      LogoutController.handleRequestInternal
      1. org.jasig.cas.web.LogoutController.handleRequestInternal(LogoutController.java:63)
      1 frame
    10. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      2. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
      4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
      5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
      6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
      6 frames
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2 frames
    12. Jasig CAS Core
      SafeDispatcherServlet.service
      1. org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.internalDoFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      1 frame