[JBoss AOP] - Re: Jboss AOP with web services upon jboss
by abdujaparov
Hi, I've modified my war file in this way:
In META-INF directory there is the file:
jboss-aop.xml, this file is only in this place;
In WEB-INF:
directory WEB-INF:
-file web.xml;
+directory classes:
+directory xml:
-XMLJDomWriterStat.class
-XMLSaxReaderStat.class
+directory services:
-ServiceAOP.class;
-ServiceAOPAspect.class;
-ServiceAOP$fattoriale_9086071828619756113.class (this class was generated by jboss aop ide with eclipse automatically).
When I try to invoke a method of the web service, also a method whitout a binding with the aspect I receive this error:
| Exception in thread "main" AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
| faultSubcode:
| faultString: org.xml.sax.SAXParseException: Premature end of file.
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file.
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
| at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
| at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
| at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
| at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
| at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
| at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
| at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
| at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
| 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 clientLett.ServiceLettBindingStub.fattoriale(ServiceLettBindingStub.java:117)
| at Test.main(Test.java:38)
|
| {http://xml.apache.org/axis/}hostname:angelinux
|
| org.xml.sax.SAXParseException: Premature end of file.
| at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
| at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
| at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
| at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
| at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
| 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 clientLett.ServiceLettBindingStub.fattoriale(ServiceLettBindingStub.java:117)
| at Test.main(Test.java:38)
| Caused by: org.xml.sax.SAXParseException: Premature end of file.
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
| at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
| at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
| at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
| at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
| at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
| ... 10 more
|
Why? How can I resolve?
Are there problems with installation of jboss aop on jboss42? I installed it copying the directory jboss-aop_1.5.6.GA/jboss-40-install/jboss-aop-jdk50.deployer in jboss-4.2.1.GA/server/default/deploy, I've followed the guide. Is it right?
Please help me I cannot go on with this error.
Thanks, bye bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097731#4097731
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097731
18Â years, 8Â months
[JBossWS] - Re: AOP with web service
by abdujaparov
Hi, I've modified my war file in this way:
In META-INF directory there is the file:
jboss-aop.xml, this file is only in this place;
In WEB-INF:
directory WEB-INF:
-file web.xml;
+directory classes:
+directory xml:
-XMLJDomWriterStat.class
-XMLSaxReaderStat.class
+directory services:
-ServiceAOP.class;
-ServiceAOPAspect.class;
-ServiceAOP$fattoriale_9086071828619756113.class (this class was generated by jboss aop ide with eclipse automatically).
When I try to invoke a method of the web service, also a method whitout a binding with the aspect I receive this error:
| Exception in thread "main" AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
| faultSubcode:
| faultString: org.xml.sax.SAXParseException: Premature end of file.
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file.
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
| at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
| at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
| at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
| at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
| at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
| at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
| at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
| at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
| 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 clientLett.ServiceLettBindingStub.fattoriale(ServiceLettBindingStub.java:117)
| at Test.main(Test.java:38)
|
| {http://xml.apache.org/axis/}hostname:angelinux
|
| org.xml.sax.SAXParseException: Premature end of file.
| at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
| at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
| at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
| at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
| at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
| 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 clientLett.ServiceLettBindingStub.fattoriale(ServiceLettBindingStub.java:117)
| at Test.main(Test.java:38)
| Caused by: org.xml.sax.SAXParseException: Premature end of file.
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
| at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
| at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
| at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
| at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
| at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
| ... 10 more
|
Why? How can I resolve?
Thanks, bye bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097730#4097730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097730
18Â years, 8Â months
[JBoss Seam] - Re: Nested Conversations (tricky interceptor)
by denis-karpov
anonymous wrote : Entities references in conversational components are moved from the object to the conversation at the end of a request and are repopulated in the object at the beginning of the next request.
As I understand not a request, but method invocation.
I can tell you where is the problem.
Suppose that we have component AA in parent conversation with a field reference bb to an another component Q. At some point this reference is moved to conversation context with the name "AA.bb".
Then we start nested conversation. We can still access field bb in the nested conversation, because in the time of invocation it gets reference from the parent conversation and put it inside the component.
Then we change the reference of the field. And at the end of an invocation seam moves the reference to the conversation context (nested)
Then we end the nested conversation. And try to access field bb in the parent conversation. Seam restores a reference from context (parent). And we get the old value.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097725#4097725
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097725
18Â years, 8Â months