[Carbon-dev] All product integration tests are failing with - org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found

Dileepa Jayakody dileepa at wso2.com
Wed Dec 14 14:51:46 EST 2011


Hi,

I remote-debugged carbon-core
@org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.printInfo()
: line 255  (after server prints : WSO2 Carbon started in 37 sec).
At this point, the list of service components are as follows;

Note component 20,25,26 are in *'Activating' *state. At this point I'm
unable to access any admin-service wsdl from url.
I further debugged carbon startup by adding a breakpoint
@CarbonUIServiceComponent.activate(): line 151 (after server prints : Mgt
Console URL  : https://192.168.1.2:9443/carbon/).
At this point, only core.ui.dscomponent (26) is activating and the rest are
in Active state. But still I'm unable to access the wsdl, nor the
mgt-console from url.
After all break-points are passed I can access the wsdls and mgt-console as
expected.
Does this mean we cannot reproduce this issue by running a debug session on
carbon startup?

All Components:
*ID    State                Component Name
                                          Located in bundle*
1      Registered        org.eclipse.equinox.frameworkadmin.equinox
                org.eclipse.equinox.frameworkadmin.equinox(bid=53)
2      Active              org.eclipse.equinox.p2.artifact.repository
                          org.eclipse.equinox.p2.artifact.repository(bid=59)
3      Active              org.eclipse.equinox.p2.core.eventbus
                       org.eclipse.equinox.p2.core(bid=61)
4      Active              org.eclipse.equinox.p2.di.agentProvider
                        org.eclipse.equinox.p2.core(bid=61)
5      Registered        org.eclipse.equinox.p2.director
                        org.eclipse.equinox.p2.director(bid=62)
6      Active              org.eclipse.equinox.p2.planner
                             org.eclipse.equinox.p2.director(bid=62)
7      Active              org.eclipse.equinox.p2.engine.registry
                          org.eclipse.equinox.p2.engine(bid=65)
8      Active              org.eclipse.equinox.p2.engine
                          org.eclipse.equinox.p2.engine(bid=65)
9      Active              org.eclipse.equinox.p2.garbagecollector
                       org.eclipse.equinox.p2.garbagecollector(bid=67)
10    Active              org.eclipse.equinox.p2.metadata.repository
                  org.eclipse.equinox.p2.metadata.repository(bid=70)
11    Registered        org.eclipse.equinox.p2.repository
                        org.eclipse.equinox.p2.repository(bid=74)
12    Registered        org.eclipse.equinox.p2.updatechecker
                 org.eclipse.equinox.p2.updatechecker(bid=78)
13    Registered
org.eclipse.equinox.simpleconfigurator.manipulator
org.eclipse.equinox.simpleconfigurator.manipulator(bid=83)
14    Active              application.deployer.dscomponent
                       org.wso2.carbon.application.deployer(bid=89)
15    Active              carbon.core.dscomponent
                           org.wso2.carbon.core(bid=94)
16    Active
org.wso2.carbon.core.internal.ListenerManagerRetrieverServiceComponent
org.wso2.carbon.core(bid=94)
*17    Activating        org.wso2.carbon.core.internal.**
StartupFinalizerServiceCompone**nt        org.wso2.carbon.core(bid=94)*
18    Active
org.wso2.stratos.permission.update.PermissionUpdateServiceComponent
org.wso2.carbon.core(bid=94)
19    Registered        MIMEType2FileExtensionMap.component
            org.wso2.carbon.core(bid=94)
*20    Activating        core.services.dscomponent
                            org.wso2.carbon.core.services(**bid=97)*
21    Active              component.manager.core.service.comp
                   org.wso2.carbon.feature.mgt.core(bid=98)
22    Active              registry.core.dscomponent
                              org.wso2.carbon.registry.core(bid=106)
23    Active              org.wso2.carbon.registry.server
                           org.wso2.carbon.registry.server(bid=107)
24    Active              secret.manager.initializer.component
                       org.wso2.carbon.securevault(bid=111)
*25    Activating        serveradmin.service.component **
                     org.wso2.carbon.server.admin(**bid=112)
26    Activating        core.ui.dscomponent
                              **   org.wso2.carbon.ui(bid=116)*
27    Active              org.wso2.carbon.user.core.listener
                      org.wso2.carbon.user.core(bid=118)
28    Active               usermgt.component
                                   org.wso2.carbon.user.mgt(bid=119)

Thanks,
Dileepa

On Tue, Dec 13, 2011 at 12:43 PM, Afkham Azeez <azeez at wso2.com> wrote:

> Try to start the server in standlone mode and see whether it starts up
> successfully with all bundles in their proper states.
>
> On Tue, Dec 13, 2011 at 12:17 PM, Shelan Perera <shelan at wso2.com> wrote:
>
>>
>> Hi,
>>
>> Is there any product specific fixes needed to rectify this?. I am getting
>> the similiar errors in DSS and while debugging core/integration in
>> SeverUtils i saw that endpoint
>> https://localhost:9443/services/AuthenticationAdmin?wsdl is not
>> available even after the message "Successfully started Carbon server.
>> Returning".
>>
>> Thanks,
>> Shelan
>>
>>
>> On Mon, Dec 12, 2011 at 6:40 PM, Thilina Buddhika <thilinab at wso2.com>wrote:
>>
>>> Hi Azeez,
>>>
>>> I was able to get the IS built successfully in trunk with the
>>> integration tests. [Please see the attached log] So it looks like this is
>>> occurring only in certain environments.
>>>
>>> In the case of Identity Server, the eventing component is activated
>>> after the startup finalizer printing the "WSO2 Carbon started in.. "
>>> statement. But seems like it does not have any effect on the integration
>>> tests. So we can  leave it from the possible causes for this failure.
>>>
>>> Thanks,
>>> Thilina
>>>
>>>
>>> On Sun, Dec 11, 2011 at 1:21 PM, Afkham Azeez <azeez at wso2.com> wrote:
>>>
>>>> This seems to be a bundle start order issue. When I run the IS
>>>> integration tests in Maven debug mode, they pass. Let's compare the teminal
>>>> outputs in the success & failure cases. In the failure case, the tests are
>>>> sending the requests before the server has successfully started it seems.
>>>> The IS components need to be checked.
>>>>
>>>> *Success case*
>>>> *---------------------*
>>>> [2011-12-11 13:12:47,591]  INFO
>>>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
>>>> Carbon started in 27 sec
>>>> Successfully started Carbon server. Returning...
>>>> [Broker] BRK-1006 : Using configuration :
>>>> /Users/azeez/projects/wso2/org/trunk/carbon2/products/is/modules/integration/user-admin/target/carbontmp/wso2is-3.2.0-SNAPSHOT/repository/conf/advanced/qpid-config.xml
>>>> [2011-12-11 13:12:51,549]  INFO {qpid.message.broker.listening} -
>>>>  [Broker] BRK-1002 : Starting : Listening on TCP port 5672
>>>> [2011-12-11 13:12:51,552]  INFO {qpid.message.broker.listening} -
>>>>  [Broker] BRK-1002 : Starting : Listening on TCP/SSL port 8672
>>>> [2011-12-11 13:12:51,555]  INFO
>>>> {org.wso2.carbon.qpid.internal.QpidServiceComponent} -  Successfully
>>>> connected to the server on port 5672
>>>> [2011-12-11 13:12:51,655]  INFO
>>>> {org.wso2.carbon.registry.eventing.internal.RegistryEventingServiceComponent}
>>>> -  Successfully Initialized Eventing on Registry
>>>> [2011-12-11 13:12:51,662] ERROR
>>>> {org.wso2.carbon.registry.eventing.internal.RegistryEventingServiceComponent}
>>>> -  Error Instantiating Registry Event Source
>>>> [2011-12-11 13:12:51,707]  INFO
>>>> {org.wso2.carbon.event.core.internal.builder.EventBrokerHandler} -
>>>>  Successfully registered the event broker
>>>> [2011-12-11 13:12:52,654]  INFO
>>>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
>>>>  : https://localhost:9443/carbon/
>>>> [2011-12-11 13:12:53,518]  INFO
>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin'
>>>> logged in at [2011-12-11 13:12:53,0518] from IP address 10.216.202.231
>>>> [2011-12-11 13:12:55,481]  INFO
>>>> {org.wso2.carbon.integration.core.ServerLogin} -  Successfully logged :
>>>> JSESSIONID=EBD484EE71F0D8ECFF548CDCBA0E88F1; Path=/; Secure=null;
>>>> HttpOnly=null
>>>> Running User Admin Tests...
>>>> [2011-12-11 13:12:55,520]  INFO
>>>> {org.wso2.carbon.integration.core.AuthenticateStub} -  AuthenticateStub :
>>>> Stub created with session JSESSIONID=EBD484EE71F0D8ECFF548CDCBA0E88F1;
>>>> Path=/; Secure=null; HttpOnly=null
>>>> User Admin Tests were successful...
>>>> [2011-12-11 13:13:35,738]  INFO
>>>> {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} -
>>>>  'admin' logged out at [2011-12-11 13:13:35,0738]
>>>> [2011-12-11 13:13:37,407]  INFO
>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin'
>>>> logged in at [2011-12-11 13:13:37,0407] from IP address 10.216.202.231
>>>> [2011-12-11 13:13:38,070]  INFO
>>>> {org.wso2.carbon.integration.core.ServerLogin} -  Successfully logged :
>>>> JSESSIONID=EBDF7250EF5EBD0583C83EBB1DE7409E; Path=/; Secure=null;
>>>> HttpOnly=null
>>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 87.084
>>>> sec
>>>>
>>>> Results :
>>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>>>>
>>>> *Failure Case*
>>>> *-------------------*
>>>> *
>>>> *
>>>> 2011-12-11 13:15:14,956]  INFO
>>>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Started
>>>> Transport Listener Manager
>>>> [2011-12-11 13:15:14,957]  INFO
>>>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
>>>>           :  WSO2 Identity Server-3.2.0-SNAPSHOT
>>>> [2011-12-11 13:15:14,958]  INFO
>>>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
>>>> Carbon started in 26 sec
>>>> Successfully started Carbon server. Returning...
>>>> [Broker] BRK-1006 : Using configuration :
>>>> /Users/azeez/projects/wso2/org/trunk/carbon2/products/is/modules/integration/user-admin/target/carbontmp/wso2is-3.2.0-SNAPSHOT/repository/conf/advanced/qpid-config.xml
>>>> [2011-12-11 13:15:17,760]  INFO
>>>> {org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
>>>> url[https://localhost:9443/services/AuthenticationAdmin]
>>>>  org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
>>>> at
>>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>>>>
>>>>
>>>> On Sun, Dec 11, 2011 at 12:10 PM, Afkham Azeez <azeez at wso2.com> wrote:
>>>>
>>>>> Many people have faced this issue, and there is no resolution. See
>>>>> https://issues.apache.org/jira/browse/AXIS2-4807
>>>>>
>>>>> http://stackoverflow.com/questions/4456342/axis2-always-getting-404-errors
>>>>>
>>>>> http://stackoverflow.com/questions/5896480/getting-org-apache-axis2-axisfault-transport-error-404-error-not-found-everyi
>>>>>
>>>>> All errors are similar to the following:
>>>>>
>>>>> [2011-12-11 11:51:04,314] ERROR {UserAdminTest} -  Error in running
>>>>> integration tests over user admin service...
>>>>> org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
>>>>>  at
>>>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
>>>>> at
>>>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>>>>>  at
>>>>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>>>>> at
>>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450)
>>>>>  at
>>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277)
>>>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
>>>>>  at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
>>>>> at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
>>>>>  at
>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
>>>>> at
>>>>> org.wso2.carbon.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1298)
>>>>>  at UserAdminTest.addUser(UserAdminTest.java:135)
>>>>>
>>>>>
>>>>> --
>>>>> *Afkham Azeez*
>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>> * <http://www.apache.org/>**
>>>>> email: **azeez at wso2.com* <azeez at wso2.com>* cell: +94 77 3320919
>>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>> *
>>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>>> *
>>>>> *
>>>>> *Lean . Enterprise . Middleware*
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>**
>>>> email: **azeez at wso2.com* <azeez at wso2.com>* cell: +94 77 3320919
>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>> *
>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>> *
>>>> *
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>
>>>
>>> --
>>> Thilina Buddhika
>>> Associate Technical Lead
>>> WSO2 Inc. ; http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> phone : +94 77 44 88 727
>>> blog : http://blog.thilinamb.com
>>>
>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev at wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **azeez at wso2.com* <azeez at wso2.com>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Dileepa Jayakody,
Software Engineer, WSO2 Inc.
Lean . Enterprise . Middleware
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111215/d7d84217/attachment-0001.html>


More information about the Carbon-dev mailing list