Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: SCOM connector using Java

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post SCOM connector using Java

    Hi,

    I am trying to create a connector for Microsoft SCOM(2007) . The wsdl is accessible at server and able to generate stub using JWSDP. But When i try to connect using the generated stub, I am getting an error,
    Error..The security context token is expired or is not valid. The message was not processed.
    javax.xml.ws.soap.SOAPFaultException: The security context token is expired or is not valid. The message was not processed.
    at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder. toMessageInfo(ClientEncoderDecoder.java:80)
    at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder .toMessageInfo(SOAPXMLDecoder.java:200)
    at com.sun.xml.ws.protocol.soap.client.SOAPMessageDis patcher.receive(SOAPMessageDispatcher.java:549)
    at com.sun.xml.ws.protocol.soap.client.SOAPMessageDis patcher.doSend(SOAPMessageDispatcher.java:288)
    at com.sun.xml.ws.protocol.soap.client.SOAPMessageDis patcher.send(SOAPMessageDispatcher.java:153)
    at com.sun.xml.ws.encoding.soap.internal.DelegateBase .send(DelegateBase.java:85)
    at com.sun.xml.ws.client.EndpointIFInvocationHandler. implementSEIMethod(EndpointIFInvocationHandler.jav a:176)
    at com.sun.xml.ws.client.EndpointIFInvocationHandler. invoke(EndpointIFInvocationHandler.java:105)
    at $Proxy27.setup(Unknown Source)
    at Test.OmcfProxy.main(OmcfProxy.java:238)

    below is the code part:
    ConnectorFrameworkDataAccess connectorFrameworkDataAccess = new ConnectorFrameworkDataAccess(new URL("http://a3a-mspoctst1:51905/ConnectorFramework?wsdl"),new QName("http://tempuri.org/","ConnectorFrameworkDataAccess"));
    IConnectorFramework port = (IConnectorFramework)connectorFrameworkDataAccess.getPort(IConnectorFramework.class);
    connectorInfo.setName(objectFactory.createConnectorInfoName("Test OMCF"));
    String connectionResult = port.setup(ObjectFactory.createConnectorInfo(connectorInfo));

    Thanks for any help,
    Thej


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: SCOM connector using Java

    This to me sounds like a certificate error.

    Found another thread about this: java.net Forums : Java Client <--> WCF Server : How ...

    // Json

  3. #3
    Junior Member
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Re: SCOM connector using Java

    Hi Jason,

    I have creates certificates and installed on both client and server. But still the issue was same.
    I suspect the installation of certificates .
    Still when I try to access the service and when i use HTTP MOnitor tool I get error,

    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/soap/fault</a:Action></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Sende r</s:Value><s:Subcode><s:Value xmlns:a="http://schemas.xmlsoap.org/ws/2005/02/sc">a:BadContextToken</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en-US">The security context token is expired or is not valid. The message was not processed.</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>

    Any suggestions are welcome.

    Thanks,
    Thej

Tags for this Thread