java.lang.RuntimeException: java.lang.IllegalArgumentException: Trying to set foreign cookie

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Nick Mason [Atlassian], 1 year ago
java.lang.IllegalArgumentException: Trying to set foreign cookie
via Atlassian JIRA by Nick Mason, 1 year ago
java.lang.IllegalArgumentException: Trying to set foreign cookie
via Atlassian JIRA by David Nicholson [Atlassian], 1 year ago
java.lang.IllegalArgumentException: Trying to set foreign cookie
via Stack Overflow by Andy
, 1 year ago
java.lang.IllegalArgumentException: protocol = http host = null
via java.com by Unknown author, 2 years ago
java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic ZGJvZGVuOntsbDEwfWRib2RlbnwxMTU1MDcyNjAzNTQwfDExNTUxMjY5Njk2Njh8dncrSjZZc2Zm V1BObzdFQnFlZXgyNVE0YThrPQ==
via sun.com by Unknown author, 1 year ago
java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic ZGJvZGVuOntsbDEwfWRib2RlbnwxMTU1MDcyNjAzNTQwfDExNTUxMjY5Njk2Njh8dncrSjZZc2Zm V1BObzdFQnFlZXgyNVE0YThrPQ==
java.lang.IllegalArgumentException: Trying to set foreign cookie
at com.google.gdata.client.http.GoogleGDataRequest$GoogleCookie.(GoogleGDataRequest.java:166)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:710)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1137)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2346)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:388)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:549)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
at com.google.gdata.client.media.MediaService.getMediaResource(MediaService.java:234)
at com.google.gdata.client.media.MediaService.getMedia(MediaService.java:286)
at com.atlassian.agmp.gdata.impl.AuthenticatedMediaServiceImpl.exportFile(AuthenticatedMediaServiceImpl.java:55)
at com.atlassian.agmp.gdata.impl.DocsServiceImpl.exportSpreadsheet(DocsServiceImpl.java:45)
at com.atlassian.agmp.gdata.servlet.GSpreadsheetServlet.export(GSpreadsheetServlet.java:48)
at com.atlassian.agmp.gdata.servlet.GSpreadsheetServlet.export(GSpreadsheetServlet.java:13)
at com.atlassian.agmp.gdata.servlet.BaseGDataDocServlet.doGet(BaseGDataDocServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:70)
at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:78)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.