AuthenticationException status code: 401

104 views
Skip to first unread message

julia...@gmail.com

unread,
Jul 9, 2008, 5:20:12 PM7/9/08
to jec users2
Hello all; i'm testing the getEventsExample from example code and
obtain the next error.

Can you help me ?

Thanks...



DEBUG [jec.utils.AppLogger] trying to load license file from classpath
DEBUG [jec.utils.AppLogger] license file loaded.
DEBUG [jec.utils.AppLogger] not first time use of license.
DEBUG [jec.utils.AppLogger] license expireDate: Wed Jul 16 00:00:00
COT 2008
WARN [jec.utils.AppLogger]
==========================================================
WARN [jec.utils.AppLogger] ======= Evaluation will end in less then 1
week. =======
WARN [jec.utils.AppLogger] ==== Please contact
sup...@javaexchangeconnector.com ====
WARN [jec.utils.AppLogger]
==========================================================
DEBUG [jec.utils.AppLogger] JEC Version: 1.62_17
getting events from startDate: Wed May 28 05:00:00 COT 2008 to
endDate: Thu May 29 21:00:00 COT 2008
DEBUG [jec.utils.AppLogger] ============== Connector information
======================
DEBUG [jec.utils.AppLogger] base URL: http://10.1.1.2/
DEBUG [jec.utils.AppLogger] userName: ecruz
DEBUG [jec.utils.AppLogger] password: XXXXXXXX
DEBUG [jec.utils.AppLogger] prefix: exchange
DEBUG [jec.utils.AppLogger] mailbox: ecruz
DEBUG [jec.utils.AppLogger] calendarFolderName: calendar
DEBUG [jec.utils.AppLogger] inboxFolderName: Inbox
DEBUG [jec.utils.AppLogger] deletedFolderName: Deleted%20Items
DEBUG [jec.utils.AppLogger] timezone: null
DEBUG [jec.utils.AppLogger] useSSL: false
DEBUG [jec.utils.AppLogger]
===========================================================
INFO [jec.utils.AppLogger] ======== get events info start =========
INFO [jec.utils.AppLogger] _url: http://10.1.1.2/
INFO [jec.utils.AppLogger] _prefix: exchange
INFO [jec.utils.AppLogger] _mailbox: ecruz
INFO [jec.utils.AppLogger] _calendarFolderName: calendar
INFO [jec.utils.AppLogger] _username: ecruz
INFO [jec.utils.AppLogger] _useSSL: false
INFO [jec.utils.AppLogger] ======== get events info end =========
DEBUG [jec.utils.AppLogger] creating HTTPURL: http://10.1.1.2/exchange/ecruz/calendar/
DEBUG [jec.utils.AppLogger] not using SSL
DEBUG [jec.utils.AppLogger] URL getRawPath(): /exchange/ecruz/
calendar/
DEBUG [jec.utils.AppLogger] setting User Info: ecruz XXXXXXXX
DEBUG [jec.utils.AppLogger] User Info set successfuly.
DEBUG [httpclient.wire] >> "PROPFIND /exchange/ecruz/calendar/ HTTP/
1.1[\r][\n]"
log4j:WARN No appenders could be found for logger
(jec.httpclient.cookie.CookieSpec).
log4j:WARN Please initialize the log4j system properly.
DEBUG [httpclient.wire] >> "Authorization: Basic
ZWNydXo6RW10ZWxjbzgxMjc3NzQ=[\r][\n]"
DEBUG [httpclient.wire] >> "Content-Type: text/xml; charset=utf-8[\r]
[\n]"
DEBUG [httpclient.wire] >> "User-Agent: JEC-HttpClient/2.0_02[\r][\n]"
DEBUG [httpclient.wire] >> "Host: 10.1.1.2[\r][\n]"
DEBUG [httpclient.wire] >> "Content-Length: 207[\r][\n]"
DEBUG [httpclient.wire] >> "Depth: 0[\r][\n]"
DEBUG [httpclient.wire] >> "[\r][\n]"
DEBUG [httpclient.wire] >> "<?xml version="1.0" encoding="utf-8" ?
><D:propfind xmlns:D="DAV:"><D:prop><D:displayname/
><D:getcontentlength/><D:getcontenttype/><D:resourcetype/
><D:getlastmodified/><D:lockdiscovery/></D:prop></D:propfind>"
DEBUG [httpclient.wire] << "HTTP/1.1 401 Access Denied[\r][\n]"
DEBUG [httpclient.wire] << "Server: Microsoft-IIS/5.0[\r][\n]"
DEBUG [httpclient.wire] << "Date: Wed, 09 Jul 2008 20:52:08 GMT[\r]
[\n]"
DEBUG [httpclient.wire] << "WWW-Authenticate: Negotiate[\r][\n]"
DEBUG [httpclient.wire] << "WWW-Authenticate: NTLM[\r][\n]"
DEBUG [httpclient.wire] << "WWW-Authenticate: Basic
realm="10.1.1.2"[\r][\n]"
DEBUG [httpclient.wire] << "Connection: close[\r][\n]"
DEBUG [httpclient.wire] << "Content-Length: 24[\r][\n]"
DEBUG [httpclient.wire] << "Content-Type: text/html[\r][\n]"
DEBUG [httpclient.wire] << "Error: Access is Denied."
jec.httpclient.HttpException
at org.apache.webdav.lib.WebdavResource.propfindMethod(Unknown
Source)
at org.apache.webdav.lib.WebdavResource.propfindMethod(Unknown
Source)
at org.apache.webdav.lib.WebdavResource.setNamedProp(Unknown
Source)
at
org.apache.webdav.lib.WebdavResource.setBasicProperties(Unknown
Source)
at org.apache.webdav.lib.WebdavResource.setProperties(Unknown
Source)
at org.apache.webdav.lib.WebdavResource.setHttpURL(Unknown
Source)
at org.apache.webdav.lib.WebdavResource.setHttpURL(Unknown
Source)
at org.apache.webdav.lib.WebdavResource.setHttpURL(Unknown
Source)
at org.apache.webdav.lib.WebdavResource.<init>(Unknown Source)
at jec.framework.a.e.if(Unknown Source)
at jec.framework.a.e.a(Unknown Source)
at jec.b.d.c.a(Unknown Source)
at jec.ExchangeConnector.getEvents(Unknown Source)
at
jectest.ExchangeConnectorExamples.getEventsExample(ExchangeConnectorExamples.java:
620)
at
jectest.ExchangeConnectorExamples.main(ExchangeConnectorExamples.java:
151)
jec.framework.exchange.exception.AuthenticationException: status code:
401 not authorized to access page.
at jec.framework.a.e.a(Unknown Source)
at jec.framework.a.e.a(Unknown Source)
at jec.framework.a.e.if(Unknown Source)
at jec.framework.a.e.a(Unknown Source)
at jec.b.d.c.a(Unknown Source)
at jec.ExchangeConnector.getEvents(Unknown Source)
at
jectest.ExchangeConnectorExamples.getEventsExample(ExchangeConnectorExamples.java:
620)
at
jectest.ExchangeConnectorExamples.main(ExchangeConnectorExamples.java:
151)

jonathan sanders

unread,
Jul 10, 2008, 12:04:47 AM7/10/08
to jec-u...@googlegroups.com, julia...@gmail.com
Hi,
You have authentication error, make sure your credentials are correct,
please make sure you can use this credentials to login to OWA (Outlook Web Access)
then use this guide to get all the information you need:
http://groups.google.com/group/jec-users2/browse_thread/thread/529d0ebed157fbf3?hl=en#


Best Regards,
Jonathan Sanders,
Support Eng,
JEC Team
Reply all
Reply to author
Forward
0 new messages