You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Alexander Veit (Created) (JIRA)" <ji...@apache.org> on 2011/11/11 14:36:52 UTC

[jira] [Created] (AXIS2-5182) org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName

org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName
------------------------------------------------------------------------------

                 Key: AXIS2-5182
                 URL: https://issues.apache.org/jira/browse/AXIS2-5182
             Project: Axis2
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.6.1
            Reporter: Alexander Veit


SimpleHTTPServer, line 176

   if (startAllTransports) {
    Iterator iter = configctx.getAxisConfiguration().
      getTransportsIn().keySet().iterator();
    while (iter.hasNext()) {
     QName trp = (QName) iter.next(); // String -> QName
     if (!new QName(Constants.TRANSPORT_HTTP).equals(trp)) {
      trsIn = (TransportInDescription)
        configctx.getAxisConfiguration().getTransportsIn().get(trp);
      listenerManager.addListener(trsIn, false);
     }
    }
   }

Axis2 should probably enforce the use of generics throughout the project to avoid such problems.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Assigned] (AXIS2-5182) org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName

Posted by "Sagara Gunathunga (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  reassigned AXIS2-5182:
-----------------------------------------

    Assignee: Sagara Gunathunga 
    
> org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2-5182
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5182
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.6.1
>            Reporter: Alexander Veit
>            Assignee: Sagara Gunathunga 
>
> SimpleHTTPServer, line 176
>    if (startAllTransports) {
>     Iterator iter = configctx.getAxisConfiguration().
>       getTransportsIn().keySet().iterator();
>     while (iter.hasNext()) {
>      QName trp = (QName) iter.next(); // String -> QName
>      if (!new QName(Constants.TRANSPORT_HTTP).equals(trp)) {
>       trsIn = (TransportInDescription)
>         configctx.getAxisConfiguration().getTransportsIn().get(trp);
>       listenerManager.addListener(trsIn, false);
>      }
>     }
>    }
> Axis2 should probably enforce the use of generics throughout the project to avoid such problems.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5182) org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13150735#comment-13150735 ] 

Hudson commented on AXIS2-5182:
-------------------------------

Integrated in Axis2 #1107 (See [https://builds.apache.org/job/Axis2/1107/])
    Fixed AXIS2-5182
Used proper type to fix Class cast exception issue.

sagara : 
Files : 
* /axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java

                
> org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2-5182
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5182
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.6.1
>            Reporter: Alexander Veit
>            Assignee: Sagara Gunathunga 
>             Fix For: 1.5.7, 1.6.2, 1.7.0
>
>
> SimpleHTTPServer, line 176
>    if (startAllTransports) {
>     Iterator iter = configctx.getAxisConfiguration().
>       getTransportsIn().keySet().iterator();
>     while (iter.hasNext()) {
>      QName trp = (QName) iter.next(); // String -> QName
>      if (!new QName(Constants.TRANSPORT_HTTP).equals(trp)) {
>       trsIn = (TransportInDescription)
>         configctx.getAxisConfiguration().getTransportsIn().get(trp);
>       listenerManager.addListener(trsIn, false);
>      }
>     }
>    }
> Axis2 should probably enforce the use of generics throughout the project to avoid such problems.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Resolved] (AXIS2-5182) org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName

Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5182.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
                   1.6.2
                   1.5.7

Fixed in AXIS2-5182.
                
> org.apache.axis2.transport.http.SimpleHTTPServer seems to cast String to QName
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2-5182
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5182
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.6.1
>            Reporter: Alexander Veit
>            Assignee: Sagara Gunathunga 
>             Fix For: 1.5.7, 1.6.2, 1.7.0
>
>
> SimpleHTTPServer, line 176
>    if (startAllTransports) {
>     Iterator iter = configctx.getAxisConfiguration().
>       getTransportsIn().keySet().iterator();
>     while (iter.hasNext()) {
>      QName trp = (QName) iter.next(); // String -> QName
>      if (!new QName(Constants.TRANSPORT_HTTP).equals(trp)) {
>       trsIn = (TransportInDescription)
>         configctx.getAxisConfiguration().getTransportsIn().get(trp);
>       listenerManager.addListener(trsIn, false);
>      }
>     }
>    }
> Axis2 should probably enforce the use of generics throughout the project to avoid such problems.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org