bonjour a tous,
voila je suis en train de développer ma premier appli web pour le stage que je suis en train de finir. Et j'ai besoin de vous pour un probleme sur lequel je but (un des dernier en plus ^^)
j'utilise struts 1.2, tomcat 6 et le jdk 1.6.
le probleme viens d'une action qui doit intéroger un annuaire (en ldap, environ 14 000 recherche a effectuer) et en localhost cette action marche parfaiement quoi que un peux longue ( 2min 30 environs) mais marche !
le probleme survient quand j'execute l'appli sur mon serveur de developpement ( je ne connais pas encore les caractéristique de ce serveur j'attend l'admin qui est en vacances ...)
car il utilise un proxy ... et je me fait déconnecter avant de recevoir la reponse de ma requete ...
voici le log de tomcat :
!ENTRY com.objfac.xmleditor 4 0 2011-07-19 16:27:30.068
!MESSAGE Internal Error
!STACK 0
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...Client(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.objfac.xml.io.DefaultDocumentReaderFactory.getInputStream(DefaultDocumentReaderFactory.java)
at com.objfac.xml.io.DefaultDocumentReaderFactory.getReader(DefaultDocumentReaderFactory.java)
at com.objfac.xml.io.DocumentCache.getContents(DocumentCache.java)
at com.objfac.xml.schema.impl.ExternalEntity.getContents(ExternalEntity.java)
at com.objfac.xmleditor.xerces.CacheEntityResolver.internalResolve(CacheEntityResolver.java)
at com.objfac.xmleditor.xerces.CacheEntityResolver.resolveEntity(CacheEntityResolver.java)
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java)
at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java)
at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java)
at com.objfac.xmleditor.xerces.XercesSchemaValidator.validate(XercesSchemaValidator.java)
at com.objfac.xmleditor.validate.XMLValidationShell.xercesParseAndValidate(XMLValidationShell.java)
at com.objfac.xmleditor.validate.XMLValidationShell.backgroundValidate(XMLValidationShell.java)
at com.objfac.xmleditor.BaseEditor$2.run(BaseEditor.java)
at java.lang.Thread.run(Unknown Source
et la la config de mon proxy :
<property name="proxyAttr"><value>x121Address</value></property>
<property name="proxyCacheTimeout"><value>0</value></property>
(0 pour infini n'est ce pas?)
et enfin l'erreur qu'il me retourne :
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /Loggin/checkfile.do.
Reason: Error reading from remote server
je commence a désesperer un peu ... il me reste 2 semaines environs pour finir ça
je remercie par avance tout ceux qui s'areteron sur ce post.
Kadash
Partager