Server error when calling the DatabaseController.replaceConnection() method
<p>I am receiving the error message below when calling the DatabaseController.replaceConnection() method. Can anyone tell me what may be the cause of this? The code being executed is below the error message.
</p>
<p>
Thank you.
</p>
<pre>
A server error occured while processing the CrystalReport object, wfr.rpt (AVTJyRKrfDxKtXX31l5E9Ek), from the CMS.
Unable to connect to the server: ATHENA.ReportApplicationServer.
--- java.lang.Boolean cannot be cast to java.lang.String
Stack Trace:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server:
ATHENA.ReportApplicationServer. - java.lang.Boolean cannot be cast to java.lang.String--
Error code:-2147217387 Error code name:connectServer
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.
throwReportSDKServerException(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.
request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.DatabaseController.replaceConnection(Unknown Source)
at aiConfigUtility.cmdlline.ImportExportBiarFile.changeReportDataSource(ImportExportBiarFile.java:561)
at aiConfigUtility.cmdlline.ImportExportBiarFile.processBiarFile(ImportExportBiarFile.java:726)
</pre>
<br />
<pre>
private void test(String reportName)
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects;
IInfoObject reportObj;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dc;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB; //0;
Fields connFields = null;
String queryStr = "Select * From CI_INFOOBJECTS " +
"Where SI_NAME='wfr.rpt' AND SI_KIND='CrystalReport' AND SI_INSTANCE=0";
newInfoObjects = getCms().executeQuery(queryStr);
if(newInfoObjects.size() > 0)
reportObj = (IInfoObject)newInfoObjects.get(0);
try
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dc = clientDoc.getDatabaseController();
conInfos = dc.getConnectionInfos(null);
for(int i = 0; i < conInfos.size(); ++i)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(i);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue("QE_ServerDescription", "alio");
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
logonProps.putStringValue("Server", "alio");
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName("admin");
newConInfo.setPassword("password");
<b>dc.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);</b>
catch(ReportSDKServerException Ex)
String msg = "A server error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
catch(Exception Ex)
String msg = "An error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
finally
clientDoc.save();
getCms().commitToInfoStore(newInfoObjects);
clientDoc.close();
</pre>
Edited by: Mark Young on Sep 10, 2009 2:13 PM
<p>I just wanted to provide an update to this. I did find a work-around for this, but I cannot explain it. The post I added to a related thread on 23 Sept. 2009, Trying to change the data source for a Crystal Report. (thread 1472257), explains a work-around I found for that problem. It seemed to resolve this one simultaneously.
</p>
<p>
I don't know why it works. If anyone has a comment or some insight, it is welcome. Thank you in advance.
</p>
Similar Messages
-
500 Internal Server Error - When calling LOV's
I receiving the following error when calling a LOV.
Both date LOV's and LOV's based on a foreign key fail.
500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Errors compiling:D:\Oracle\oc4j\j2ee\home\application-deployments\ois\web\persistence\_pages\_jheadstart\_lovFrame.java
error: Invalid class file format in C:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
D:\Oracle\oc4j\j2ee\home\application-deployments\ois\web\persistence\_pages\_jheadstart\_lovFrame.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
package _jheadstart;
^
2 errorsMarcel,
JDeveloper will not run out of the box with JDK 1.4. There is a help topic 'Configuring Support for JDK 1.4.0.01 in JDeveloper' that gives you some information.
But you also need to verify the compatability of all the frameworks you use with JKD 1.4, including BC4J, MVC and UIX. E.g. the classes12.jar we normally use for a JHeadstart application only works with JKD 1.2/1.3.
Having found out which versions of the frameworks you need, the next step is to validate whether the JHeadstart runtime classes will work with these versions. We have no experience ourself in this respect.
If it is an option for you, you might consider to downgrade to JKD 1.3.
Jan Kettenis -
Getting 500 internal server error when calling IIS application in portal
Hello All,
We have setup to access IIS application from portal http server. We have setup proxy rules in portal http server. When we are accessing the link of IIS,we are getting 500 internal server error.
In the sso log file,we are getting the below error.
[ERROR] AJPRequestHandler-ApplicationServerThread-17 Unexpected Exception received
java.lang.NullPointerException
at oracle.security.sso.server.policy.FilePolicyManager.getAuthLevel(FilePolicyManager.java:325)
at oracle.security.sso.server.auth.AuthDirector.getAuthLevel(AuthDirector.java:199)
at oracle.security.sso.server.ui.SSOLoginServlet.doPost(SSOLoginServlet.java:316)
at oracle.security.sso.server.ui.SSOLoginServlet.doGet(SSOLoginServlet.java:278)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Please advise.
Thank you,
VijayQuestion:
Do you have to sign on to the IIS application?
Or are you just trying to link to it? -
Get Internal Server Error when run the site
the url of my site is :
http://webdb.us.colorcon.com:7777/pls/portal30
everything ran fine till yesterday. but i also created 2 new sites as follows :-
http://webdb.us.colorcon.com:7777/pls/prtltest http://webdb.us.colorcon.com:7777/pls/prtltran
the prtltest is a test site and
the prtltran is a training site
but when i log in to my original site today, i get Internal Server Error. i did the troubleshooting and the following URL failed :-
http://webdb.us.colorcon.com:7777/servlet/IsItWorking
the troubleshooting guide on OTN says the following maybe the cause :-
The Apache JServ is not working correctly. Most "internal server errors" are related to Apache Jservs failure to start.(usually due to a port conflict).
Please look at the following log files for details: Apache Listener log files in IAS_HOME/Apache/Apache/logs, and the
Apache JServ log files in IAS_HOME/Apache/Jserv/logs.
is it because the newsites share the same port number 7777 as the existing ones ?
i looked at the log files and all it says is, some files not found.
is there anything else i seem to be missing ?
any help wouldbe appreciated.
thanx
nullAre you using multiple listeners or just one? If you have multiple listeners, then you need to update the jserv.properties file for each with a distinct port. The default is 8007.
If you are using one listener (which you can do) then the apache/jserv configuration is is wrong. What are the files that it says are missing? -
Error when calling the method in service
Now I know how to give certain parameters to the service when invoking the call asked in the previous thread, but I got errors when I try to run it:
namespace mismatch require http://myservices.supermarket found none
java.net.MalformedURLException
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at supermarket.myservices.SupermarketClient.parseXmlFile(SupermarketClient.java:80)
at supermarket.myservices.SupermarketClient.run(SupermarketClient.java:60)
at supermarket.myservices.SupermarketClient.main(SupermarketClient.java:219)
Exception in thread "main" java.lang.NullPointerException
at supermarket.myservices.SupermarketClient.parseDocument(SupermarketClient.java:96)
at supermarket.myservices.SupermarketClient.run(SupermarketClient.java:63)
at supermarket.myservices.SupermarketClient.main(SupermarketClient.java:219)
And below is my client program's code:
public void invokeWebService(){
try{
this.isID = new String("selected");
this.isBrand = new String("selected");
this.isName = new String("selected");
this.isWeight = new String("selected");
this.isPrice = new String("selected");
this.isSpecialPrice = new String("selected");
this.isMemberPrice = new String("selected");
this.isType = new String("seletced");
//service address
String endpoint = "http://localhost:8080/axis2/services/Supermarket";
//initialize web service call
Service service = new Service();
Call call = (Call) service.createCall();
Object[] params = new Object[]{isID, isBrand, isName, isWeight, isPrice, isSpecialPrice, isMemberPrice, isType};
//set web service address
call.setTargetEndpointAddress(new java.net.URL(endpoint) );
//set operation name
call.setOperationName(new QName("execute"));
//call the service and get the result ret
String ret = (String)call.invoke(params);
initialReader(ret);
catch (Exception e)
System.err.println(e.toString());
}What's wrong with it? I really don't have any idea on it......Hi ,
Please check :
SAP Note 1286149 - Configuration Wizard: PI Self Test for NetWeaver
SAP Note 1477280 - PI CTC: J2EE User for Self Tests needs PI Admin Rights
You will find which roles need to be assigned.
Award points if useful.
Thanks,
Ravi -
Getting 500 Internal Server error when calling createUrlwidget
We are using API version 9. I currently have an ASP.net/C# application that sends documents to echosign, and that works fine. I'm trying to create a new web application that creates a widget, so the user can be presented with the document to sign. I am calling the createUrlwidget method, but getting an internal server error, and I don't know why.
Here's my code (the url I use to call the service is https://secure.echosign.com/services/EchoSignDocumentService9)
The error occurs below on the line:
using (StreamWriter sw = new StreamWriter(req.GetRequestStream()))
sw.Write(message);
try
XmlDocument xRequest = BuildEchosignWidgetRequest(byteMyFile); //build soap envelope
XmlDocument xResponse = SendRequest("createUrlWidget", xRequest);
XmlNodeList xSuccess = xResponse.GetElementsByTagName("success");
if (xSuccess[0].InnerText == "true")
XmlNodeList xUrl = xResponse.GetElementsByTagName("url");
string strURL = xUrl[0].InnerText; //the response xml
Response.Redirect(strURL); //launch the widget
else //we got an error
XmlNodeList xError = xResponse.GetElementsByTagName("errorMessage");
string strErrorMessage = xError[0].InnerText;
throw new Exception("Unable to create Echosign Widget;" + strErrorMessage);
catch (Exception ex)
lblErrorMessage.Text = "Error: Unable to send document for signature(s).\n" + ex.Message;
private XmlDocument SendRequest(string operation, XmlDocument xRequest)
XmlDocument functionReturnValue = default(XmlDocument);
functionReturnValue = null;
string message = xRequest.OuterXml; //soap envelope
WebRequest req = HttpWebRequest.Create(System.Configuration.ConfigurationManager.AppSettings[QueryStringCo nstants.EchoSignWebServiceURL]);
req.ContentLength = message.Length;
req.ContentType = "text/xml; charset=UTF-8";
req.Headers.Add("SOAPAction", "\"\"");
req.Method = "POST";
req.Proxy = null;
req.Timeout = 1000 * 60;
//this is where the web service call is finally made
using (StreamWriter sw = new StreamWriter(req.GetRequestStream()))
sw.Write(message);
WebResponse resp = req.GetResponse();
using (StreamReader sr = new StreamReader(resp.GetResponseStream()))
XmlDocument xResponse = new XmlDocument();
xResponse.LoadXml("<?xml version=\"1.0\" encoding=\"utf-8\" ?>" + sr.ReadToEnd());
functionReturnValue = xResponse;
return functionReturnValue;when we wrote our initial echosign application, version 9 was current. the person that wrote it is gone, and we don't have much expertise with web services, so when we updated it, we kept using version 9. Our existing application sends the document to echosign with email addresses of the required signers, and they are notified by email, and this all works fine.
We are now trying to present the document to the end user directly using the widget, so I kept using the same version of the api. I don't know what is involved (if anything) in upgrading to the newest version. Do I just need to change the call from https://secure.echosign.com/services/EchoSignDocumentService9 to https://secure.echosign.com/services/EchoSignDocumentService17 , and then make sure that I create the SOAP request according to the documentation (in case the methods have changed)?
As far as your question about "generating a request log", I'm not sure what this means.
Thanks in advance for your help. -
500 internal server error when using the web interface
I've created several tables in Visual Studio, and I'm using a .NET backend for my mobile services.
The table code looks something like this...
using Microsoft.WindowsAzure.Mobile.Service;
namespace AzureService.DataObjects
public class Country : EntityData
public string Name { get; set; }
I then added a scaffolded item to generate the controller for my table, then published.
I then went to my azure service, flipthechipservice.azure-mobile.net, and tried to run the default POST with default data.
I then get back a popup, which looks like the following...
Now what baffles me is I have already created another table, called 'Call', which has exactly the same 'Name' field as the above Country table, yet the Call POSTs work.
I then tried creating another table, with a Name field, and I get the 500 error again.
How can this be possibly happening? Nothing is different, and now I get 500 errors?
This makes no sense.
ThanksThank you, I looked at the logs, and this is the error...
System.NotSupportedException: Model compatibility cannot be checked because the database does not contain model metadata. Model compatibility can only be checked for databases created using Code First or Code First Migrations.
at System.Data.Entity.Internal.ModelCompatibilityChecker.CompatibleWithMode
I looked this error up, and tried
this proposed solution on StackOverFlow
I changed the line of code in my WebApiConfig Register() method from...
Database.SetInitializer(new MobileServiceInitializer());
to
Database.SetInitializer<MobileServiceContext>(new DropCreateDatabaseIfModelChanges<MobileServiceContext>());
I also have this in my WebApiConfig...
public class MobileServiceInitializer : DropCreateDatabaseIfModelChanges<MobileServiceContext>
protected override void Seed(MobileServiceContext context)
base.Seed(context);
My understanding is that the database should drop and create if the model changes? So why is this not happening?
I then tried another solution, and changed DropCreateDatabaseIfModelChanges to DropCreateDatabaseAlways. I still get an internal error. Then the logs show this problem...
System.Data.SqlClient.SqlException (0x80131904): Cannot open database "master" requested by the login. The login failed.
Login failed for user 'QEOzFqAnDXLogin_flipthechipservice'.
This session has been assigned a tracing ID of 'a3b12e78-90f2-4db0-a5ca-6895eebd246c'. Provide this tracing ID to customer support when you need assistance.
at System.Data.SqlClient.SqlInternalConnection.OnError
As an additional question, how do I re-generate my local SQL database when debugging on my local PC's web browser? I deleted the database, but can't seem to get it back?
Thanks -
Problem : when calling the findbyPrimaryKey(id) method
when I call the create() method and insert into the database it works fine but when i call the findByPrimaryKey() method it doesnt return anything and gives the following error.
Cannot find principal mapping information for data source with JNDI name jdbc/Cloudscape
Sinetread this one:
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/jdbc.html
Almost at the bottom you wil see your error message explained. -
Compiled and trying to deploy a form - an error when calling the form
Hi!
I used to deal with Forms 6i and I'm quite new to 10g.
Is it enough to just replace an .fmx file on the server?
We have a software product written on Forms 10g which is running on our server.
I found where working .fmx files are located on the server.
I also found which seems to be the source files.
My actions:
1) Selected one of the forms and compiled it in Bulder 10g successfully.
2) Replaced an .fmx file with one which I had comiled.
3) In user interface, press the button which calls my form, but nothing happens. The form is not created. No error messages.
4) Put the original .fmx back - and everyting works: after pressing the button the form starts.
What's wrong? Improper way of compilation or deployment?
Any suggestion would be appreciated.
Thanking in advance,
RomanRoman Churakov wrote:
Thank you, Christian!
You are right!
According to my last test, when I try to call the form directly from the url (via parameter form=myform.fmx), I get the following:
1) With the orginal myform.fmx, the form starts
2) With the form compiled by me, I get error: "Cannot read form myform.fmx"
Though the file names are identical, the file compiled on windows doesn't go.
P. S.
Nevertheless, that's weird for me: I supposed that since Forms 10g is based on Java, the compilation must be platform-independent.
Edited by: Roman Churakov on 20.01.2012 1:58I think you have just a problem with upper/lowercase.
.) ensure your fmx is exactly myform.fmx
I am not sure but I think you get this message also if there is a wrong attached-library-name in the source.
So if its still not working convert the fmb to text (file->convert...), check if the libraries are attached correctly (case sensitive on UX/LX) the libs are visible in the first lines, check if some libs are attached multiple times, correct that stuff, and convert back from text to fmb.
Hope that helps! -
Two Incidents created when calling the AppsLogger createIncident method
when trying to create the Incident using the below method AppsIncidentInfo createIncident(Object pThis, String pAppShortName, String pMessageName, Map<String, Object> pMap, Throwable pException) of class AppsLogger.java (Line No:745 /jdeveloper/jdev/oaext/oracle.apps.fnd.applcore-src.zip!/oracle/apps/fnd/applcore/log/AppsLogServiceImpl.java),
it is creating two incidents with same Error Message. But it is suppose to create only one Incident
when debug this above method it is calling the AppsIncidentInfo write(Object pThis, MessageVORow pMessage, Map<String, Object> pMap, Throwable pException) method iof class AppsLogServiceImpl.java
( /jdeveloper/jdev/oaext/oracle.apps.fnd.applcore-src.zip!/oracle/apps/fnd/applcore/log/AppsLogServiceImpl.java). In Line No 377 of class AppsLogServiceImpl.java it is creating the incident. And again in Line No 1542 of class AppsLogServiceImpl.java also it is creating Incident.
Could anyone please suggest whether this is the expected behavior or do we need to restrict the second Incident creation in Line No 1542 of class AppsLogServiceImpl.java with condition
if (_checkIncidentMarkerExists(pMessage) == false).
Edited by: 902796 on Feb 2, 2012 4:26 AMYou are sure you are in the right forum?
Looks like OA {forum:id=210}
Timo -
Internal Server Error - when calling report
Dears
We are usig oracle application server 10g on Winodws 2003, we configured a report server called HRreport but when we call this address
http://appsever2a:7778/reports/rwservlet?
the page is opned , but when we call
http://appsever2a:7778/reports/rwservlet?server=HRreports
the output is:
""Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log. ""
i check the server error log whic contain this :
[Tue Mar 27 15:09:46 2007] [error] [client 10.1.1.12] [ecid: 1174997086:10.1.1.12:5380:6408:195,0] MOD_OC4J_0033: Failed to receive an ajp13 message from oc4j.
[Tue Mar 27 15:09:46 2007] [warn] [client 10.1.1.12] [ecid: 1174997086:10.1.1.12:5380:6408:195,0] MOD_OC4J_0078: Network connection errors happened to host: appsever2a and port: 12502 while receiving the first response from oc4j. This request is recoverable.
[Tue Mar 27 15:09:46 2007] [error] [client 10.1.1.12] [ecid: 1174997086:10.1.1.12:5380:6408:195,0] MOD_OC4J_0121: Failed to service request with network worker: OC4J_BI_Forms_15 and it is not recoverable.
[Tue Mar 27 15:09:46 2007] [error] [client 10.1.1.12] [ecid: 1174997086:10.1.1.12:5380:6408:195,0] MOD_OC4J_0013: Failed to call destination: OC4J_BI_Forms's service() to service the request.
Please we need your help
Thanks SulimanHi All
any suggestions ....
Thanks -
Error when calling the business services with Encryption - MustUnderstand h
I was getting this error when i invoke my business service through Oracle Service Bus Console:
*<faultstring>*
*MustUnderstand headers:[{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood*
*</faultstring>*
*<faultcode>SOAP-ENV:MustUnderstand</faultcode>*
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>
<soapenv:Body>
<ger:gerarHashSenha xmlns:ger="http://www.abc.com.br/SomeService">
<!--Optional:-->
<arg0>string</arg0>
</ger:gerarHashSenha>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<ns1:EncryptedKey Id="FLTGqSbFbsmt2Q2l" xmlns:ns1="http://www.w3.org/2001/04/xmlenc#">
<ns1:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
<ns2:KeyInfo xmlns:ns2="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference wsu:Id="str_a6QZHoS8oRqxbtgS" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<ns2:X509Data>
<ns2:X509IssuerSerial>
<ns2:X509IssuerName>
CN=SerasaACGlobal,OU=Serasa Autoridade Certificadora Global,O=Serasa,C=BR
</ns2:X509IssuerName>
<ns2:X509SerialNumber>5023300869337873804</ns2:X509SerialNumber>
</ns2:X509IssuerSerial>
</ns2:X509Data>
</wsse:SecurityTokenReference>
</ns2:KeyInfo>
<ns1:CipherData>
<ns1:CipherValue>
l3um2rVftq5ddA24DPNpZpofHEcmCha9ZBraglFKKzTpL+PhKmRmAyaJC2V5xWqBssxQGRDWhN9z+eHP8ENLMDP/mlHRw89WWQ7VkATSAd+k8ny/lesTLO7RUuLAiPlueOYUN8vpD4BJcI/lL/8jL0utMrQ7k+fhELDnBMB0lIY=
</ns1:CipherValue>
</ns1:CipherData>
<ns1:ReferenceList>
<ns1:DataReference URI="#Ak1K01RK8B6RKDn3"/>
</ns1:ReferenceList>
</ns1:EncryptedKey>
</wsse:Security>
</soap:Header>
<soapenv:Body>
<ns1:EncryptedData Id="Ak1K01RK8B6RKDn3" Type="http://www.w3.org/2001/04/xmlenc#Content" MimeType="text/xml" Encoding="UTF-8" xmlns:ns1="http://www.w3.org/2001/04/xmlenc#">
<ns1:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
<ns1:CipherData>
<ns1:CipherValue>
RMu5vmRk3KczXzx57Wc8sIcdBDySyGOL4P0VrN+rwOjOcqc3ALCGbxu9VlRB4nJJTDb/1wxuh+lJlnBEgwS+7q1JVDuA81HDSqq4oPtqhQ2wYVMyxOY0YVm2Tj8ntUdTYh0OQrPg0TwmSsi3UUnuKDPR9tQqmZvHc+DF+j8yI71nSN4WPp1MVBr8E7Z7B9sPBDlI7Bp9n68=
</ns1:CipherValue>
</ns1:CipherData>
</ns1:EncryptedData>
</soapenv:Body>
</soapenv:Envelope>
Response Document
The invocation resulted in an error: Internal Server Error.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<faultstring>
MustUnderstand headers:[{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood
</faultstring>
<faultcode>SOAP-ENV:MustUnderstand</faultcode>
</SOAP-ENV:Fault>
</S:Body>
</S:Envelope>
Response Metadata
<con:metadata xmlns:con="http://www.bea.com/wli/sb/test/config">
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:user-header name="Set-Cookie" value="JSESSIONID=YypvL1RGdHs3fRGs3RSwvGrdQpzhTyY6FJ0z6VK1tRtLhR5L9V7S!-778340443; path=/"/>
<tran:user-header name="X-Powered-By" value="Servlet/2.5 JSP/2.1"/>
<http:Cache-Control>no-cache="Set-Cookie"</http:Cache-Control>
<http:Content-Type>text/xml;charset="utf-8"</http:Content-Type>
<http:Date>Fri, 28 May 2010 00:41:40 GMT</http:Date>
<http:Transfer-Encoding>chunked</http:Transfer-Encoding>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">2</tran:response-code>
<tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">Internal Server Error</tran:response-message>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
<http:http-response-code xmlns:http="http://www.bea.com/wli/sb/transports/http">500</http:http-response-code>
</con:metadata>
Edited by: victorjabur on May 27, 2010 5:48 PMI've the same issue... did someone come across. OTN moderators please answer to this.
-
Object Referenced Error When calling the Windows Form during Runtime
Hi,
I am getting Object reference errors when running windows form during runtime. In debugging mode in MS Visual studio 2005, I am not getting this error. I'm calling the window form from menu and called the window in a thread as suggested in one of forums . I don't see anyone in the forum mentioned this problem I have. Any help would be deeply appreciated. Below are the error and code samples.
ERROR Message
Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Project1.Loadxml.Loadxml_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Edited by: Albert Tio on Feb 16, 2011 9:55 AMHere is the code.
Option Strict Off
Option Explicit On
Friend Class GetEvents
Public WithEvents SBO_Application As SAPbouiCOM.Application
Public SboGuiApi As SAPbouiCOM.SboGuiApi
Public oForm As SAPbouiCOM.Form
Public oDBDataSource As SAPbouiCOM.DBDataSource
Public oCompany As SAPbobsCOM.Company
Public RS As SAPbobsCOM.Recordset
Public oPrev_Bank As String, oPrev_AcctType As String
Public oLoadXml As Loadxml
Public Sub SetApplication()
'Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
' by following the steps specified above, the following
' statment should be suficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
' connect to a running SBO Application
SboGuiApi.Connect(sConnectionString)
' get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
End Sub
Public Sub SetCompany()
Dim ret As Long
Dim MsgStr As String
Dim Cookie As String
Dim ConnStr As String
Try
oCompany = New SAPbobsCOM.Company
Cookie = oCompany.GetContextCookie
ConnStr = SBO_Application.Company.GetConnectionContext(Cookie)
'//before setting the SBO login context make sure the company is not connected
If oCompany.Connected = True Then
oCompany.Disconnect()
End If
ret = oCompany.SetSboLoginContext(ConnStr)
If Not ret = 0 Then
Exit Sub
End If
ret = oCompany.Connect
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
MsgStr = ""
If Not ret = 0 Then
oCompany.GetLastError(ret, MsgStr)
SBO_Application.MessageBox(MsgStr)
Else
End If
End Sub
Public Sub New()
MyBase.New()
' set SBO_Application with an initialized application object
SetApplication()
SetCompany()
AddMenuItems()
End Sub
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
Dim myThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf LoadXmlMainThread))
Try
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
'SBO_Application.MessageBox("My sub menu item was clicked")
'// Create a form to be launched in response to a click on the
'// new sub menu item
myThread.SetApartmentState(System.Threading.ApartmentState.STA)
myThread.Start()
'Loadxml.ShowDialog()
End If
Catch ex As Exception
SBO_Application.MessageBox("1." & ex.Message)
End Try
'If (pVal.MenuUID = "MyGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My GoTo Menu was clicked")
'End If
'If (pVal.MenuUID = "MySecondGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My Second GoTo Menu was clicked")
'End If
End Sub
Private Sub LoadXmlMainThread()
'Dim lLoadxml As New Loadxml
Try
oLoadXml = New Loadxml
oLoadXml.WindowState = FormWindowState.Maximized
oLoadXml.ShowInTaskbar = True
oLoadXml.TopMost = True
oLoadXml.Activate()
Application.Run(oLoadXml)
Catch ex As Exception
SBO_Application.MessageBox("2." & ex.Message)
End Try
End Sub
Private Sub AddMenuItems()
'// Let's add a separator, a pop-up menu item and a string menu item
Dim oMenus As SAPbouiCOM.Menus
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim i As Integer '// to be used as counter
Dim lAddAfter As Integer
Dim sXML As String
'// Get the menus collection from the application
oMenus = SBO_Application.Menus
'Save an XML file containing the menus...
'sXML = SBO_Application.Menus.GetAsXML
'Dim xmlD As System.Xml.XmlDocument
'xmlD = New System.Xml.XmlDocument
'xmlD.LoadXml(sXML)
'xmlD.Save("c:
mnu.xml")
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
Dim sPath As String
sPath = Application.StartupPath
'sPath = sPath.Remove(sPath.Length - 3, 3)
If sPath.EndsWith("\") = False Then
sPath = sPath & "\"
End If
'// find the place in wich you want to add your menu item
'// in this example I chose to add my menu item under
'// SAP Business One.
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
oCreationPackage.UniqueID = "MyMenu01"
oCreationPackage.String = "Unbridle Menu"
oCreationPackage.Enabled = True
oCreationPackage.Image = sPath & "unbridle.bmp"
oCreationPackage.Position = 15
oMenus = oMenuItem.SubMenus
Try ' If the manu already exists this code will fail
oMenus.AddEx(oCreationPackage)
'// Get the menu collection of the newly added pop-up item
oMenuItem = SBO_Application.Menus.Item("MyMenu01")
oMenus = oMenuItem.SubMenus
'// Create s sub menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MySubMenu"
oCreationPackage.String = "Unbridle Monitoring"
oMenus.AddEx(oCreationPackage)
Catch er As Exception ' Menu already exists
'SBO_Application.MessageBox("Menu Already Exists")
End Try
End Sub
End Class
Public Class Loadxml
'Inherits System.Windows.Forms.Form
Public sBPpath As String
Public sGLpath As String
Public sBillpath As String
Public bRun As Boolean
Private Sub Loadxml_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextGL.Text = System.Configuration.ConfigurationSettings.AppSettings("GLAcctDownloadPath").ToString()
Me.TextBP.Text = System.Configuration.ConfigurationSettings.AppSettings("BPAcctUPloadPath").ToString()
Me.TextBill.Text = System.Configuration.ConfigurationSettings.AppSettings("BillUPloadPath").ToString()
Me.NotifyIcon1.Visible = False
End Sub
End Class -
Error when calling the sample code with client
The start samples are really good and useful.
However I get an error when connecting to the API App on Azure. The code generated when "adding the reference" has a file called Values.cs. I get an error on line 219:
resultModel = StringCollection.DeserializeJson(responseDoc);
The correct line should be
resultModel = MyContactsListConsole.Models.
StringCollection.DeserializeJson(responseDoc);
I guess there is a naming issue. The StringCollection defined in Contactlists/Models cannot be inferred without a fully qualified path since StringCollection is already in
System.Collections.Specialized
When I update the code to point to MyContactsListConsole.Models then it works.
//Mikael Sand (MCTS, ICC 2011) -
Blog Logica SwedenSorry you had to discover this bug, Michael. It is a known issue we outlined in the release notes, and have since repaired it in the upcoming release. This is only an issue when your API returns an array of strings, as is the case for the default ValuesController
file. Sorry about that, but know that we've fixed it. -
Bug Report - DB toolkit returns error when calling the DefaultDatabase property with SQLite
There's an old bug in the DB toolkit where calling the DefaultDatabase property returns error -2147217887 if you're using certain DBs (such as SQLite or PostgreSQL and I believe MySQL as well).
The problem is that this property is called by a VI which is used in some of the commonly used VIs (such as the insert VI),
causing them to fail. Whoever wrote the code was aware of this issue,
since they added a comment about it, as you can see below.
The immediate fix for this is pretty easy - add code to ignore the error or don't call the property at all. It's not used anywhere in the toolkit and unless you're using the VI yourself to get the property, this won't break any code. The problem with this is that you need to do this in every PC.
NI already has a CAR for this (CAR 232063) and should hopefully fix it, so there's no need to take further action at the moment. This post is for people searching for this in the future.
Try to take over the world!Interesting. I have seen this before but it returned a different error code. (Error -2147352567)
=====================
LabVIEW 2012
Maybe you are looking for
-
How to change the apple id for daughter's icloud
We bought our daughter an iphone last year. When we set the phone up for her we used my apple id for her icloud. Now she has her own apple id and would like to have her own icloud. When we go into the icloud settings on her phone it will not allow us
-
4G weak but won't switch to 3G
My phone is constantly getting stuck between a weak 4G signal and 3g. This occured after the last software update and conspiracy theory 101 tells me that this is Verizons way of trying to limit my unlimited data. There should be an option to stay o
-
Does FM2-A75IA-E53 fits in Streacom FC8 EVO?
I am about to purchase a FM2-A75IA-E53 mobo but first I need to know if it will fit in a Streacom FC8 EVO Chassis? As you can see, there are some pretty explicit measurements. Streacom provides some soc1155 models that fit but don't provide info on F
-
Hi all, Can anybody send me the document for LSMW and SCAT. I need it urgently. My email id is [email protected] Thanks in advance. Regards, MHP Edited by: MHP on Jan 10, 2008 9:28 AM
-
NRA withholding for payments to Foreign vendors
Hi I would like to discuss with configurators from other US companies as to how they have implemented NRA withholding. In particular, how they handle varying tax rates for certain countries under tax treaties. Thanks Deepa