James Hannoy

Greenhorn
+ Follow
since Dec 26, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by James Hannoy

Facing the same issue here
Does anybody know how to fix this?

After searching it seems that this is a problem with XSLT parsing that still exists. I'm using the following platforms and tools:

Product Version: NetBeans IDE Dev (Build 200807040101)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

-Thanks,
JH.
16 years ago
Does anybody know how to fix this?

After searching it seems that this is a problem with XSLT parsing that still exists. I'm using the following platforms and tools:

Product Version: NetBeans IDE Dev (Build 200807040101)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

-Thanks,
JH.
16 years ago
Hi All,

Written one simple sync bpel composite application.
Everything worked correctly and things got deployed correctly also.

But while try to run a simple testcase, getting the following error in NetBeans 6.1 (Glassfish 2, Java 6):

java.lang.IllegalArgumentException: Not supported: indent-number at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute



Found that some others also encountered that.
Does anybody know of any fix?

-Thanks,
James.
16 years ago
Never mind, I resolved this and client is running fine.
Also, just for your information, the @WebServiceRef(wsdlLocation = "http://127.0.0.1:8080/project/NewService?wsdl") is not any problem.

I only had some jar mismatches. This works alright now.

Many thanks for your kind help,
James.
17 years ago
I have resolved it using JDK 6.

Thanks,
JH.
17 years ago
Hi,

I am writing a small client app to call a webservice which is very similar to the following:




However as my editor shows there is no such method called getPort() in Service class!!!

Could anyone please guide me?

-Thanks,
James.
17 years ago
Hi,

Any pointers to resolve this please?

-Thanks,
JH.
17 years ago
I am getting new exceptions now:



Will be thankful if you can get me some pointers.

-Thanks,
James.
17 years ago
Thanks for the tip. I am able to resolve this problem.

Thanks!
James.
17 years ago
Hi,

You were absolutely right man

I got the chance to test it and it produces the following output:


I think I have to check from where it is getting that 2.6.2

-Thanks,
JH.
17 years ago
In that case, it must be something else and not the version issue

The Meta-INF version info for the xercesimpl is as follows:

Name: org/apache/xerces/impl/Version.class
Comment: Xerces-J 2.9.0Implementation-Title: org.apache.xerces.impl.Version
Implementation-Version: 2.9.0


And I have copied the same under my ANT 1.7.0/lib!

So don't think that this could be the issue. Must be missing something else.

-Thanks,
James.
17 years ago
Thanks Jaikiran to point that out.

I'll post my feedback as soon as I get a chance to test it again. But what version of that jar should I use?

-Thanks,
James.
17 years ago
Got a reference of this under the following FAQ:

http://jbws.dyndns.org/mediawiki/index.php?title=FAQ

Which says under section "Why do I get a NullPointerException when using wstools?" that this is a ANT bug. So I have copied xercesImpl.jar and xml-apis.jar files of xerces-2_9_0 version to my ANT/lib folder.

But still no luck and getting the same exception

-Thanks,
JH.
17 years ago
I've made the following changes in the doTest() method:


public void doTest(String[] args) {
try {
System.out.println("Calling Service...");
URL url = new URL("http://127.0.0.1:8080/project/NewService?wsdl");
QName qname = new QName("urn:session", "NewService");

[B]
/* Changes made: commented */
//service = Service.create(url, qname);

/* Changes made: added */
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
[/B]System.out.println(service.getServiceName());
System.out.println("Retrieving port from the service " + service);

NewService newService = service.getPort(qname, NewService.class);
System.out.println(" Invoking create operation on the NewService port");
SomeObj so = newService.create("Hello");
System.out.println("Created: " + so.toString());
} catch (Exception e) {
e.printStackTrace();
}
}



However still getting the following:


run.wsclient:
[java] Calling Service...
[java] java.lang.NullPointerException
[java] at java.lang.System.arraycopy(Native Method)
[java] at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown Source)
[java] at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java:730)
[java] at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:202)
[java] at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:391)
[java] at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172)
[java] at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
[java] at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
[java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:115)
[java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
[java] at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImpl.java:111)
[java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
[java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
[java] at testcases.WSClient.doTest(WSClient.java:39)
[java] at testcases.WSClient.main(WSClient.java:82)



Any other pointers please?

-Thanks,
James.
17 years ago