hirenmayani / trideveloper

Automatically exported from code.google.com/p/trideveloper
2 stars 1 forks source link

BusinessConnect TRIRIGA Client No Support for attachments error #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've followed your instructions on building the library for our specific 
installation of TRIRIGA.

I've built a new project and am just testing that it can connect successfully.
I get the following error:
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.RuntimeException: No support for attachments
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException: No support for attachments
    at org.apache.axis.Message.setup(Message.java:372)
    at org.apache.axis.Message.<init>(Message.java:235)
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:779)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.trideveloper.tririga.ws.TririgaWSHttpBindingStub.getHttpSession(TririgaWSHttpBindingStub.java:3450)
    at com.trideveloper.tririga.TririgaClientFactory.newConnection(TririgaClientFactory.java:222)
    at com.trideveloper.tririga.TririgaClientFactory.newTririgaClient(TririgaClientFactory.java:139)
    at com.cfi.tririga.ws.wsTest.testing(wsTest.java:19)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    {http://xml.apache.org/axis/}hostname:BrianVm4400

java.lang.RuntimeException: No support for attachments
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.trideveloper.tririga.ws.TririgaWSHttpBindingStub.getHttpSession(TririgaWSHttpBindingStub.java:3450)
    at com.trideveloper.tririga.TririgaClientFactory.newConnection(TririgaClientFactory.java:222)
    at com.trideveloper.tririga.TririgaClientFactory.newTririgaClient(TririgaClientFactory.java:139)
    at com.cfi.tririga.ws.wsTest.testing(wsTest.java:19)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: No support for attachments
    at org.apache.axis.Message.setup(Message.java:372)
    at org.apache.axis.Message.<init>(Message.java:235)
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:779)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
    ... 33 more

Here is my test class.
package com.cfi.tririga.ws;

import java.io.IOException;

import org.springframework.test.AbstractDependencyInjectionSpringContextTests;

import com.trideveloper.tririga.*;

import com.tririga.ws.dto.HttpSession;

import junit.framework.TestCase;

public class wsTest extends AbstractDependencyInjectionSpringContextTests{

    public void testing() {
        TririgaClientFactory fac = TririgaClientFactory.getInstance("http://aegondev:8001/", "tririgaapi", "tririgaapi");

        try {
            TririgaClient client = fac.newTririgaClient();

            com.trideveloper.tririga.ws.dto.HttpSession session = client.getHttpSession();
            long sessionid = session.getId();

            assertTrue(sessionid> 0);
        } catch (IOException exception) {
            // TODO Auto-generated catch-block stub.
            exception.printStackTrace();
        }

    }

}

We are using 2.7.2 on Windows Server 2008.
I'm using Eclipse Galileo.

I also tried using the built in Web Service Client wizard and get the same 
problem.

I'm not a java guy so I'm not exactly sure how to debug this issue.

Original issue reported on code.google.com by bvanderzanden@gmail.com on 4 Nov 2010 at 4:05

GoogleCodeExporter commented 8 years ago
I seemed to have fixed the issue.  I added in the mail.jar file to the 
classpath and it's working now.

Original comment by bvanderzanden@gmail.com on 4 Nov 2010 at 4:40