Unexpected EOF in attribute value at [row,col {unknown-source}]: [2,3861] issue with web service reply in TIBCO BW 6.3 - tibco

When invoking a web service from TIBCO BW 6.3.3, getting error in the reply message. The error log as follows:
Can anyone please guide me to resolve the issue.
ERROR [Axis2 Task] com.tibco.bw.binding.soap - TIBCO-BW-BINDING- SOAP-550120: Error occurred while processing reply message from the service provider of the Operation [{urn:GenericSoap}GenericSoapOperation], SoapReferenceBinding [SOAPReferenceBinding], Application [webCenter.application:1.0] due to exception [org.apache.axiom.om.OMException]
15:11:51.647 ERROR [Axis2 Task] com.tibco.bw.binding.soap - com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in attribute value
at [row,col {unknown-source}]: [2,3861]
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
15:11:51.673 ERROR [bwEngThread:In-Memory Process Worker-7] com.tibco.bw.core - TIBCO-BW-CORE-500050: The BW process [webcenter.Process] instance faulted, JobId [bw0a100], ProcessInstanceId [bw0a100], ParentProcessInstanceId [-], Module [webCenter:1.0.0.qualifier], Application [webCenter.application:1.0].
<CausedBy> TIBCO-BW-CORE-500052: Invoke activity [GenericSoapOperation] fault.
<CausedBy> com.tibco.bw.binding.soap.BWSOAPReferenceBindingException: TIBCO-BW-BINDING-SOAP-550120: Error occurred while processing reply message from the service provider of the Operation [{urn:GenericSoap}GenericSoapOperation], SoapReferenceBinding [SOAPReferenceBinding], Application [webCenter.application:1.0] due to exception [org.apache.axiom.om.OMException]
<CausedBy> org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in attribute value
at [row,col {unknown-source}]: [2,3861]
<CausedBy> com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in attribute value at [row,col {unknown-source}]: [2,3861]

Check the encoding in the xml/xsd file, it has to be the same
<?xml version="1.0" **encoding="UTF-8"?**>

Related

DataTorrent: JDBC operator not working

I am replacing the console operator in WordCountDemo but it is giving me a operatorError in STRAM Events. When I click on it it shows me nullpointer error. I am very new to datatorrent.
Here is the complete error message:
Abandoning deployment due to setup failure. java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.datatorrent.lib.db.jdbc.JdbcStore.connect(JdbcStore.java:163)
at com.datatorrent.lib.db.jdbc.JdbcTransactionalStore.connect(JdbcTransactionalStore.java:118)
at com.datatorrent.lib.db.AbstractTransactionableStoreOutputOperator.setup(AbstractTransactionableStoreOutputOperator.java:94)
at com.datatorrent.lib.db.jdbc.AbstractJdbcTransactionableOutputOperator.setup(AbstractJdbcTransactionableOutputOperator.java:81)
at com.datatorrent.lib.db.jdbc.AbstractJdbcTransactionableOutputOperator.setup(AbstractJdbcTransactionableOutputOperator.java:58)
at com.datatorrent.stram.engine.Node.setup(Node.java:182)
at com.datatorrent.stram.engine.StreamingContainer.setupNode(StreamingContainer.java:1290)
at com.datatorrent.stram.engine.StreamingContainer.access$100(StreamingContainer.java:129)
at com.datatorrent.stram.engine.StreamingContainer$2.run(StreamingContainer.java:1369)
I guess you didn't set the properties that is needed by jdbc operator. You need to set driver/databaseurl/username/password
Here is an example
dt.operator."your operator name".store.databaseDriver=jdbc.mysql
dt.operator."your operator name".store.databaseUrl=....

Error compile apk in appcelerator

I try to compile apk using Appcelerator but i get this error and i using module ti.cloudpush. How to solve it.
Currently I'm using Titanium sdk: 5.2.0.GA
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/GoogleAuthUtil;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/UserRecoverableAuthException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/GoogleAuthException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/GooglePlayServicesAvailabilityException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/UserRecoverableNotifiedException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/GooglePlayServicesUtil;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/UserRecoverableException;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/AccountPicker;
[ERROR] :
[ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] : java.lang.RuntimeException: Translation has been interrupted
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608)
[ERROR] : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
[ERROR] : at com.android.dx.command.dexer.Main.run(Main.java:277)
[ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:245)
[ERROR] : at com.android.dx.command.Main.main(Main.java:106)
[ERROR] : Caused by: java.lang.InterruptedException: Too many errors
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600)
[ERROR] : ... 4 more
Here all the module that I used i the project
<modules>
<module platform="commonjs">ti.cloud</module>
<module platform="android">dk.napp.drawer</module>
<module platform="android">ti.admob</module>
<module platform="android">ti.ga</module>
<module platform="android">ti.cloudpush</module>
</modules>
Thanks
Google play services is included in ti.cloudpush, ti.admob, and ti.ga. You have conflicting versions of the library.
My recommendation is to select one version of google-play-services.jar and forcibly replace the jar files in all the modules with this one version.
I actually copied the ti.cloudpush module into my project directory so that I can maintain it directly (and keep the proper version of google-play-services.jar checked into my source code repository).
I have not had any problem if I replace the jar file with a newer version. You can cross-reference your jar file versions against this document: http://www.smorgasbork.com/2015/01/05/google-play-services-sdk-version-history/
BTW -- there is another module available for google analytics. I have used https://github.com/Sitata/titanium-google-analytics with much success. I'm not sure what the difference is between that one and Ti.GA (although I think Ben Bahrenburg is a great Ti developer, so I might have to look into that one).
Probably the problem is with the embedded google play services into cloudpush and admob, try to remove one of this module and see if it compile.

System.ComponentModel.Win32Exception was unhandled

While running process to Hadoop automated build from source in visual studio I am facing this error
Exception: An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
An unhandled exception of type 'System.InvalidOperationException' occurred in System.dll
Please help me to resolve this.
Thanks in advance.

How to fix "[Fatal Error] hive-default.xml:1:1: Content is not allowed in prolog" error in HIVE

I am getting below error while starting Hive
root#ubuntu:~# hive
[Fatal Error] hive-default.xml:1:1: Content is not allowed in prolog.
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1401)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1269)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1200)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:415)
at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:663)
at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:595)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:434)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:197)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1300)
... 11 more
root#ubuntu:~#
Some one please help me to fix this issue.
Thanks in advance.
As you can see, the error is coming due to the hive-default.xml
Please have a look at this file. There might be a white space or any other text at the starting of the xml file which is causing the error
You can refer this question on stackoverflow org.xml.sax.SAXParseException: Content is not allowed in prolog which has the same error as you got, just for a different file
hive-default.xml.template is located in the conf directory in your installation root.
You might want to create hive-site.xml to override the default values

Spring SAML ServletException

I've created a weblogic 12c version of the Spring Security SAML sample application. When I try to run it, I get the following error:
]] Root cause of ServletException.
weblogic.servlet.jsp.CompilationException: Failed to compile JSP
/WEB-INF/security/idpSelection.jsp idpSelection.jsp:1:1: The validator
class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with
the following exception: "java.lang.ClassCastException:
weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to
javax.xml.parsers.SAXParserFactory". <%# page ^-------
import="org.springframework.security.saml.metadata.MetadataManager"%>
----------------------------------------------------------------------------^
at
weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:244)
at
weblogic.servlet.jsp.JavelinxJSPStub.compilePage0(JavelinxJSPStub.java:180)
at
weblogic.servlet.jsp.JavelinxJSPStub.access$000(JavelinxJSPStub.java:50)
at
weblogic.servlet.jsp.JavelinxJSPStub$1.run(JavelinxJSPStub.java:108)
at java.security.AccessController.doPrivileged(Native Method)
Truncated. see log file for complete stacktrace
<[ServletContext#11256322[app:_auto_generated_ear_ module:SAML2Sample
path:null spec-version:3.0]] Problem occurred while serving the error
page. javax.servlet.ServletException:
weblogic.servlet.jsp.CompilationException: Failed to compile JSP
/error.jsp error.jsp:1:1: The validator class:
"org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the
following exception: "java.lang.ClassCastException:
weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to
javax.xml.parsers.SAXParserFactory". <%# page
import="java.io.StringWriter" %>
^---------------------------------------^
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:306)
at
weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:483)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:372)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:587)
Truncated. see log file for complete stacktrace Caused By:
weblogic.servlet.jsp.CompilationException: Failed to compile JSP
/error.jsp error.jsp:1:1: The validator class:
"org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the
following exception: "java.lang.ClassCastException:
weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast to
javax.xml.parsers.SAXParserFactory". <%# page
import="java.io.StringWriter" %>
^---------------------------------------^
at
weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:244)
at
weblogic.servlet.jsp.JavelinxJSPStub.compilePage0(JavelinxJSPStub.java:180)
at
weblogic.servlet.jsp.JavelinxJSPStub.access$000(JavelinxJSPStub.java:50)
at
weblogic.servlet.jsp.JavelinxJSPStub$1.run(JavelinxJSPStub.java:108)
at java.security.AccessController.doPrivileged(Native Method)
Truncated. see log file for complete stacktrace
>
Any ideas on what's causing the CompilationException? Thanks!
For those of you who may run into this in the future, changing the scope of the dependency (javax.servlet/jstl) from compile to provided in the pom.xml fixed my problem.

Resources