You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by "Hamacher, John E. DPI" <Jo...@dpi.wi.gov> on 2012/02/27 22:28:18 UTC

error authenticating LTMN

Hello:

I'm getting this error:

Feb 27, 2012 3:21:36 PM org.apache.http.client.protocol.RequestTargetAuthentication process
SEVERE: Authentication error: org.ietf.jgss.GSSException, major code: 11, minor code: 0
        major string: General failure, unspecified at GSSAPI level
        minor string: Desired initLifetime zero or less

when I execute this code:

                        DefaultHttpClient httpclient = new DefaultHttpClient();

                        NTCredentials creds = new NTCredentials("xxxxx", "yyyyyy", java.net.InetAddress.getLocalHost().getHostName(), "zzzzzz.aaaa.co.us");

                        httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);

                        HttpHost target = new HttpHost("zzzzzz.aaaa.co.us ", 80, "http");
                        HttpContext localContext = new BasicHttpContext();
                        HttpGet httpget = new HttpGet("/ReportServer_XXXXXXXXXXXX/Pages/ReportViewer.aspx");
                        HttpResponse response1 = httpclient.execute(target, httpget, localContext);  //error occurs here
                        HttpEntity entity1 = response1.getEntity();
                        EntityUtils.consume(entity1);


                        HttpPost httppost = new HttpPost("/ReportServer_XXXXXXXXXXXX/Pages/ReportViewer.aspx");
                        httppost.setEntity(new StringEntity("lots and lots of data"));
                        HttpResponse response2 = httpclient.execute(target, httppost, localContext);
                        HttpEntity entity2 = response2.getEntity();
                        EntityUtils.consume(entity2);


I am using an IBM JDK :

java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr9fp1ifix-20110329_01(SR9 FP1+IZ9
5654+IZ91385+IZ95150))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-201103
24_78506 (JIT enabled, AOT enabled)
J9VM - 20110324_078506
JIT  - r9_20101028_17488ifx3
GC   - 20101027_AA)
JCL  - 20110203_01



What does this error mean?  Can I fix it?

Thanks.

J. Eric Hamacher
IS Systems Development Services Specialist
Wisconsin Department of Public Instruction
Madison, WI
(608) 267-1074