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 "John Kroll (JIRA)" <ji...@apache.org> on 2010/11/03 15:28:26 UTC

[jira] Created: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

Null Pointer Exception in AxisService.printXSD
----------------------------------------------

                 Key: AXIS2-4871
                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.5.2
         Environment: Test run on Websphere 6.1 application server
            Reporter: John Kroll


For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:

java.lang.NullPointerException 
     at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
     at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
     at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 

The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:

< revision
> original

1232,1233c1232
< 		// Unqualified schema request can be a null string
< 		if ( (xsd != null) && (!"".equals(xsd)) ) {
---
> 		if (!"".equals(xsd)) {


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

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

Andreas Veithen commented on AXIS2-4871:
----------------------------------------

Can you please explain the steps to reproduce the issue? With a standard Axis2 1.5.2 distribution, http://localhost:8080/axis2/services/Version?xsd doesn't trigger any exception.

> Null Pointer Exception in AxisService.printXSD
> ----------------------------------------------
>
>                 Key: AXIS2-4871
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.2
>         Environment: Test run on Websphere 6.1 application server
>            Reporter: John Kroll
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:
> java.lang.NullPointerException 
>      at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
>      at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
>      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
> The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:
> < revision
> > original
> 1232,1233c1232
> < 		// Unqualified schema request can be a null string
> < 		if ( (xsd != null) && (!"".equals(xsd)) ) {
> ---
> > 		if (!"".equals(xsd)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

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

John Kroll commented on AXIS2-4871:
-----------------------------------

By unqualified schema I mean by requesting the schema without a name.

For example:  Version?xsd as opposed to Version?xsd=SomeName


> Null Pointer Exception in AxisService.printXSD
> ----------------------------------------------
>
>                 Key: AXIS2-4871
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.2
>         Environment: Test run on Websphere 6.1 application server
>            Reporter: John Kroll
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:
> java.lang.NullPointerException 
>      at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
>      at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
>      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
> The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:
> < revision
> > original
> 1232,1233c1232
> < 		// Unqualified schema request can be a null string
> < 		if ( (xsd != null) && (!"".equals(xsd)) ) {
> ---
> > 		if (!"".equals(xsd)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

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

Andreas Veithen commented on AXIS2-4871:
----------------------------------------

What do you mean exactly by "retrieving an unqualified schema"?

> Null Pointer Exception in AxisService.printXSD
> ----------------------------------------------
>
>                 Key: AXIS2-4871
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.2
>         Environment: Test run on Websphere 6.1 application server
>            Reporter: John Kroll
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:
> java.lang.NullPointerException 
>      at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
>      at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
>      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
> The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:
> < revision
> > original
> 1232,1233c1232
> < 		// Unqualified schema request can be a null string
> < 		if ( (xsd != null) && (!"".equals(xsd)) ) {
> ---
> > 		if (!"".equals(xsd)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

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

Andreas Veithen updated AXIS2-4871:
-----------------------------------

    Fix Version/s: 1.5.4

Targeting this for 1.5.4.

> Null Pointer Exception in AxisService.printXSD
> ----------------------------------------------
>
>                 Key: AXIS2-4871
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.2
>         Environment: Test run on Websphere 6.1 application server
>            Reporter: John Kroll
>             Fix For: 1.5.4
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:
> java.lang.NullPointerException 
>      at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
>      at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
>      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
> The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:
> < revision
> > original
> 1232,1233c1232
> < 		// Unqualified schema request can be a null string
> < 		if ( (xsd != null) && (!"".equals(xsd)) ) {
> ---
> > 		if (!"".equals(xsd)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

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

John Kroll commented on AXIS2-4871:
-----------------------------------

Test environment:  Websphere 6.1 Network Deployment, Fix Pack 23 (6.1.0.23) on Windows Server 2003, using the standard Axis2 1.5.2 distribution.  HTTP requests are forwarded to the application server by an IBM HTTP Server 6.1.0.31.

Attempting to retrieve an unqualified schema for the Version service (originally found while testing a custom web service, but replicated using the Version web service on the standard Axis2.war) results in the above listed null pointer exception 100% of the time.

> Null Pointer Exception in AxisService.printXSD
> ----------------------------------------------
>
>                 Key: AXIS2-4871
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.2
>         Environment: Test run on Websphere 6.1 application server
>            Reporter: John Kroll
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:
> java.lang.NullPointerException 
>      at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
>      at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
>      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
> The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:
> < revision
> > original
> 1232,1233c1232
> < 		// Unqualified schema request can be a null string
> < 		if ( (xsd != null) && (!"".equals(xsd)) ) {
> ---
> > 		if (!"".equals(xsd)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

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

Andreas Veithen resolved AXIS2-4871.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Fixed by the changes doen for AXIS2-4674.

> Null Pointer Exception in AxisService.printXSD
> ----------------------------------------------
>
>                 Key: AXIS2-4871
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.2
>         Environment: Test run on Websphere 6.1 application server
>            Reporter: John Kroll
>             Fix For: 1.6, 1.5.4
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:
> java.lang.NullPointerException 
>      at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
>      at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
>      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
> The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:
> < revision
> > original
> 1232,1233c1232
> < 		// Unqualified schema request can be a null string
> < 		if ( (xsd != null) && (!"".equals(xsd)) ) {
> ---
> > 		if (!"".equals(xsd)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-4871) Null Pointer Exception in AxisService.printXSD

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

Andreas Veithen commented on AXIS2-4871:
----------------------------------------

OK, now I understand. It looks like this is the same (type of) issue as AXIS2-4674.

> Null Pointer Exception in AxisService.printXSD
> ----------------------------------------------
>
>                 Key: AXIS2-4871
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4871
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.2
>         Environment: Test run on Websphere 6.1 application server
>            Reporter: John Kroll
>             Fix For: 1.5.4
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> For the generic unqualified schema request (for example:  http://<host name>/axis2/services/Version?xsd the following exception is thrown:
> java.lang.NullPointerException 
>      at org.apache.axis2.description.AxisService.printXSD(AxisService.java:1235) 
>      at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:277) 
>      at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
> The problem seems to be related to the fact that for the unqualified case the argument for the schema name is null, not an empty string.  Changing the name test in line 1232 of modules/kernel/src/org/apache/axis2/description/AxisService.java to include a null pointer check seems to resolve this issue.  Sample change:
> < revision
> > original
> 1232,1233c1232
> < 		// Unqualified schema request can be a null string
> < 		if ( (xsd != null) && (!"".equals(xsd)) ) {
> ---
> > 		if (!"".equals(xsd)) {

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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