AnsweredAssumed Answered

Axis throwing an exception with 1.1.2, unclear why

Question asked by rsfeir on Feb 1, 2006
Latest reply on Feb 2, 2006 by rsfeir
Ok so I read the API, looked at the examples, and very little of my code had to change to adapt to 1.1.2, however the part of the code that didn't change is simply throwing an exception and I'm not understanding why it would, mainly because AXIS is so great with exception reporting.  Can anyone tell me if you've seen this, and what the problem might be?  The code throwing this exception is this:

public static RepositoryServiceSoapBindingStub getRepositoryWebService() throws ServiceException
        // Create the respository service, adding the WS security header information
        EngineConfiguration config = new FileProvider(new ByteArrayInputStream(AlfrescoRepositoryHelper.WS_SECURITY_INFO.getBytes()));
        RepositoryServiceLocator repositoryServiceLocator = new RepositoryServiceLocator(config);
        return (RepositoryServiceSoapBindingStub)repositoryServiceLocator.getRepositoryService();

pulled directly from web service sample 1, with a slight change to the class name I use.  This used to work fine in 1.0.

The Exception is:

Feb 1, 2006 4:53:36 PM org.apache.axis.InternalException <init>
SEVERE: Exception:
org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Element type "parameter" must be followed by either attribute specifications, ">" or "/>".
org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Element type "parameter" must be followed by either attribute specifications, ">" or "/>".
   at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(
   at org.apache.axis.utils.XMLUtils.newDocument(
   at org.apache.axis.utils.XMLUtils.newDocument(
   at org.apache.axis.configuration.FileProvider.configureEngine(
   at org.apache.axis.AxisEngine.init(
   at org.apache.axis.AxisEngine.<init>(
   at org.apache.axis.client.AxisClient.<init>(
   at org.apache.axis.client.Service.getAxisClient(
   at org.apache.axis.client.Service.<init>(
   at gov.nih.niaid.eric.AlfrescoRepositoryHelper.getRepositoryWebService(
   at gov.nih.niaid.eric.AlfrescoRepositoryHelper.getTicket(
   at gov.nih.niaid.eric.AlfrescoRepositoryHelper.getContentLocation(
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   at java.lang.reflect.Method.invoke(
   at junit.framework.TestCase.runTest(
   at junit.framework.TestCase.runBare(
   at junit.framework.TestResult$1.protect(
   at junit.framework.TestResult.runProtected(
   at junit.framework.TestSuite.runTest(
   at junit.textui.TestRunner.doRun(
   at com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(
   at junit.textui.TestRunner.start(
   at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(
   at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(
   at com.intellij.rt.execution.junit2.JUnitStarter.main(

As usual your help is amazingly appreciated, and has been top notch all the way, I hope I don't wear out my welcome :)