In multithread, call FML API will cause an exception?
Hi, in our application, when we use multithread, we found that sometimes calling tpalloc, tpinit, Fldid32() and some functions will cause exception like "Unhandled exception in *.exe(LIBFML32.DLL): 0xC0000005:Access Violation ". But the exception does not always show, and sometimes occured in one function, but sometimes in another function.
I tried to add try{...}catch(...){} and found that the exception really occured but not everytime goes out.
And if in single thread mode, everything run well.
Does anyone knowes why this happened?
Thanks a lot.
Hi,
The FML routines are thread safe, so my guess is you have a bug in your application. You need to be careful of things like statics or other things that are not allocated on the stack or from heap using something like tpalloc().
Regards,
Todd Little
Oracle Tuxedo Chief Architect
Similar Messages
-
Calling SetLocalTime in C# causes Memory Leak (WEC7)
Hello,
I use SetLocalTime() in C#. Everything works well if I start explorer.exe and my application. But if I don't start explorer.exe at system start. SetLocalTime() causes memory leak in my application. I call the function frequently every hour.
public static bool SetzeLokalZeit(SYSTEMDATETIME lpSystemTime)
#if DEADLOCKDETECT
using (DdMonitor.Lock(MyTimeLock, "MyTimeLock#1"))
#else
lock (MyTimeLock)
#endif
bool ret = false; // no Success
try
GLB.LogFile.MyWrite("SetLocalTime");
SYSTEMDATETIME loc = new SYSTEMDATETIME();
loc.wYear = lpSystemTime.wYear;
loc.wMonth = lpSystemTime.wMonth;
loc.wDayOfWeek = lpSystemTime.wDayOfWeek;
loc.wDay = lpSystemTime.wDay;
loc.wHour = lpSystemTime.wHour;
loc.wMinute = lpSystemTime.wMinute;
loc.wSecond = lpSystemTime.wSecond;
loc.wMilliseconds = lpSystemTime.wMilliseconds;
ret = SetLocalTime(ref loc);
if (!ret) // no Success
int err = Marshal.GetLastWin32Error();
if (err > 0)
GLB.LogFile.MyWrite("ERROR CODE:" + err.ToString());
else ret = true;
catch (Exception ex)
GLB.LogFile.MyWrite("000023 Exception" + ex.Message);
finally
GLB.LogFile.MyWrite("SetLocalTime Ende");
return ret;
Has someone an idea what's the problem?
Best regards,
AndreasHello,
Here the answers to the questions:
1. Does the SetLocalTime function succeed?
Calling SetLocalTime doesn't cause an exception an the local time is set correctly.
2. Do you still get the memory leak if you remove all other calls?
Yes. I have removed any other code, but I also get the memory leak.
3. Does the memory leak also occur when you do this from native code?
I have not tried it yet. But I will still make it...
[DllImport("coredll.dll")]
private static extern void GetLocalTime(ref SYSTEMDATETIME lpSystemTime);
[DllImport("coredll.dll", SetLastError = true)]
private static extern bool SetLocalTime(ref SYSTEMDATETIME lpSystemTime);
[StructLayout(LayoutKind.Sequential)]
public struct SYSTEMDATETIME
public ushort wYear;
public ushort wMonth;
public ushort wDayOfWeek;
public ushort wDay;
public ushort wHour;
public ushort wMinute;
public ushort wSecond;
public ushort wMilliseconds;
public static bool Pub_SetLocalTime(SYSTEMDATETIME lpSystemTime)
lock (MyTimeLock)
bool ret = false; // no Success
try
loc_set.wYear = lpSystemTime.wYear;
loc_set.wMonth = lpSystemTime.wMonth;
loc_set.wDayOfWeek = lpSystemTime.wDayOfWeek;
loc_set.wDay = lpSystemTime.wDay;
loc_set.wHour = lpSystemTime.wHour;
loc_set.wMinute = lpSystemTime.wMinute;
loc_set.wSecond = lpSystemTime.wSecond;
loc_set.wMilliseconds = lpSystemTime.wMilliseconds;
ret = SetLocalTime(ref loc_set);
if (!ret) // no Success
int err = Marshal.GetLastWin32Error();
if (err > 0)
MessageBox.Show("Win32 Error:", err.ToString());
else ret = true;
catch (Exception ex)
MessageBox.Show("SetLocalTime,Exception:", ex.ToString());
finally
return ret;
Best regards,
Andreas -
Underscore causing an exception in a toolbar
// I'm using Netbeans 7.4 release candidtate 2
// 1) Start the JavaFx Ensemble program - thank you very much. It has saved me many hours.
// 2) In Ensemble Click on "Hidden Split Pane".
// 3) Click the "Source Code" tab.
// 4) Click the "Save Netbeans project".
// 5) Replace HiddenSplitPaneSample.java with this code (see below).
// 6) After starting: click the "double arrow" twice (maybe three times) to display the options in the center pane.
// 7) The second time you should get the exception. (See Netbeans output window.)
// 8) You get the double arrow because dividerPositions() is set too small; but that may be the way some user
// would have things "split".
// Why this is important to me. I included a phony getWord() method (see below). In my app getWord() will
// actually go to disk and get a word, in the human language that the user has selected somewhere else.
// Example: if they have English selected then getWord( "Add_One" ) will return "Add One" and display it as the buttons text.
// if they have Chinese selected then getWord( "Add_One" ) will return "Chinese equivalent of Add One" and display it as the buttons text.
// If there is no replacement in the file then getWord( "Add_One" ) will return "Add_One".
// The question is why does the underscore cause an exception? I could easily replace the under score with
// a dash (see below) because that doesn't cause the exception. But that begs the question what will happen
// when I'm using Chinese, Japanese, or Hindi? Is there a stray character here and there that will cause
// this exception?
// Notice also that it has removed my underscore: "Add_One" becomes "AddOne".
* Copyright (c) 2008, 2012 Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
import javafx.application.Application;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
import javafx.stage.Stage;
import javafx.scene.control.SplitPane;
import javafx.scene.control.SplitPaneBuilder;
import javafx.scene.control.ToolBar;
import javafx.scene.control.ToolBarBuilder;
import javafx.scene.layout.Pane;
import javafx.scene.layout.RegionBuilder;
import javafx.scene.layout.VBox;
public class HiddenSplitPaneSample extends Application {
ToolBar standardToolbar = null;
ScrollPane scrollPane = new ScrollPane ();
class MyPane extends Pane {
@Override
protected void layoutChildren() {
super.layoutChildren ();
double w = getWidth ();
double h = getHeight ();
double ph = standardToolbar.getHeight();
layoutInArea ( standardToolbar, 0, 0, w, ph, 0, HPos.CENTER, VPos.CENTER );
layoutInArea ( scrollPane, 0, 0+ph, w, h-ph, 0, HPos.LEFT, VPos.CENTER );
private String getWord ( String wordToGet ) {
return wordToGet;
private void init(Stage primaryStage) {
MyPane pane1 = new MyPane ();
pane1 .setPrefWidth ( 400 );
pane1 .setPrefHeight ( 400 );
standardToolbar = ToolBarBuilder.create().build();
standardToolbar .setPrefHeight ( 30 );
standardToolbar .setMinHeight ( 30 );
standardToolbar .setMaxHeight ( 30 );
pane1.getChildren() .add( standardToolbar );
Button addOneButton = new Button ( getWord( "Add_One" ) );
Button addTwoButton = new Button ( getWord( "Add_Two" ) );
Button addThreeButton = new Button ( getWord( "Add_Three" ) );
Button addFourButton = new Button ( getWord( "Add_Four" ) );
//Button addOneButton = new Button ( getWord( "Add-One" ) );
//Button addTwoButton = new Button ( getWord( "Add-Two" ) );
//Button addThreeButton = new Button ( getWord( "Add-Three" ) );
//Button addFourButton = new Button ( getWord( "Add-Four" ) );
standardToolbar .getItems().add ( addOneButton );
standardToolbar .getItems().add ( addTwoButton );
standardToolbar .getItems().add ( addThreeButton );
standardToolbar .getItems().add ( addFourButton );
VBox vbox = new VBox ();
scrollPane .setContent ( vbox );
scrollPane .setFitToWidth ( true );
pane1 .getChildren().add ( scrollPane );
Group root = new Group();
primaryStage.setScene(new Scene(root));
String hidingSplitPaneCss = HiddenSplitPaneSample.class.getResource("HiddenSplitPane.css").toExternalForm();
final SplitPane splitPane = SplitPaneBuilder.create().id("hiddenSplitter").items(
RegionBuilder.create().styleClass("rounded").build(),
pane1,//RegionBuilder.create().styleClass("rounded").build(),
RegionBuilder.create().styleClass("rounded").build()).dividerPositions(new double[]{0.33, 0.50}).build();
splitPane.getStylesheets().add(hidingSplitPaneCss);
root.getChildren().add(splitPane);
@Override public void start(Stage primaryStage) throws Exception {
primaryStage.setX ( 0 );
primaryStage.setY ( 0 );
primaryStage.setWidth ( 500 );
primaryStage.setHeight ( 500 );
init(primaryStage);
primaryStage.show();
public static void main(String[] args) { launch(args); }The underscore is being parsed as an indicator that the next character should be a mnemonic, and the underscore is then stripped. This happens by default on Buttons, but not on Labels.
See the API in the Labeled class. You can either turn parsing off, or you can use two underscores to represent one underscore. -
There is a problem with the phone app. When I want to call somebody the phone screen come too late. This will cause a problem if I call the wrong number. Apple please please please fix it as soon as possible and also check why the phone is always restart. I prefer to let us use the iOS 7 until you finished from the IOS 8 because Ios 8 still under construction there is a tones problems in the system. And this Will cause undirect problem for the iPhone 6
There is no apple here in this user to user technical forum.
Do this Use iTunes to restore your iOS device to factory settings -
An internal error occurred while calling 'submitReport' API. (Error: ERR_WI
An internal error occurred while calling 'submitReport' API. (Error: ERR_WIS_30270)
We get above mentioned error message at any point in WebI Rich Client.
DataSource: Teradata 12.0 (Local machine)
BO XI 3.1 Client installed on local machine
Universe (Secured connection)
WebI : desiging and creating in Standlone mode
WebI client version : 12.1.0.882
Many times above written error is thrown 2-3 times even when we click on OK button and lastly followed by new error message:-
Unable to get the first page of the current report - Web Intelligence will switch to structure view (WIJ 20003).
Flow: We create report based on locally saved universe. There are couple of scenarios for which error comes
1) After successfully saving the report, reopen and refresh causes this error (1st error and 2nd)
2) Droping a properly written variable on measure column, if done Ctrl + Z, report works sometimes (both or 2nd error message)
3) Draging out the mesaure or dimension from report (only 2nd error)
Report is simple and no other stuff except the cross tab table
Even if we start with simply dropping the dimension and measures on report, 2nd error comes at any time.
What we noticed is that if we do all desiging in structure mode and then run instead of in result mode, reports works for more time.You can have a look here:
Input Controls with Break Error on webi report
http://www.forumtopics.com/busobj/viewtopic.php?t=60789&postdays=0&postorder=asc&start=45
Re: internal error occurred while calling the 'submitReport' API.
I'm Back
HAPPY NEW YEAR -
Calling Java API from ABAP using JCo
I need to call Java API from ABAP & BSP also. For this I have got useful information related to JCo from following blog:
/people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
But, I am facing one problem. On executing Java program myExample5.java (recommended by Gregor Wolf) from command line I get following error message:
Server JCOSERVER01 changed state from [ STOPPED ] to [ STARTED ]
Exception in server JCOSERVER01:
com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 26 13:46:32 IST 2007.
This is caused by either a) erroneous server settings, b) the backend system has
been shutdown, c) network problems. Will try next startup in 1 seconds.
Connect to SAP gateway failed
Connect_PM TPNAME=JCOSERVER01, GWHOST=gateway, GWSERV=3300
LOCATION CPIC (TCP/IP) on local host
ERROR hostname 'gateway' unknown
TIME Thu Apr 26 13:46:32 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -2
MODULE ninti.c
LINE 336
DETAIL NiPGetHostByName2: hostname 'gateway' not found
SYSTEM CALL gethostbyname_r
COUNTER 1.
Can anyone please help me out. Do I need to do any setting?
I'll surely reward points.
Thanks & Regards,
Nilesh KumarHi Nilesh,
From the error i think that the error is with the hostname.
Please enter the the Application Server IP/Hostname.
If you are loggin to SAP System "XX1" from SAP GUI. Then click the change Item tab and see Application server name/IP let say "XX2" for hostname or "xx.xx.xx.xx" for IP.
Replace <i>srv[0] = new Server("gateway","sapgw00","JCOSERVER01",repository);</i>
with <i>srv[0] = new Server("XX2","sapgw00","JCOSERVER01",repository);</i>
If App Server is IP then replace with
<i>srv[0] = new Server("xx.xx.xx.xx","sapgw00","JCOSERVER01",repository);</i>
Let me know if it is throwing any error.
Thanks,
Prashil -
How to call Soap API plsql package with ws security ?
Hi all,
I want to consume a webservice which comes with the basic authentication (username and password in soap header).
By calling Soap api through a anonymous block shows this error
"Error report:
ORA-20000: wsse:InvalidSecurity - Missing <wsse:Security> in SOAP Header
ORA-06512: at "APPS.SOAP_API", line 124
ORA-06512: at "APPS.SOAP_API", line 157
ORA-06512: at line 76
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information."
My Anonymous Block is:
set serveroutput on
declare
l_request soap_api.t_request;
l_response soap_api.t_response;
l_return VARCHAR2(32767);
l_url VARCHAR2(32767);
l_namespace VARCHAR2(32767);
l_method VARCHAR2(32767);
l_soap_action VARCHAR2(32767);
l_result_name VARCHAR2(32767);
l_envelope VARCHAR2(32767);
BEGIN
l_url := 'my wsdl url'; -- i provided the original URL in my actual code
l_namespace := 'xmlns="my namespace"'; -- same here
l_method := 'get_details'; -- same here
l_soap_action := 'my soap action'; -- same here
l_result_name := 'REQUEST_STAT';
l_request := soap_api.new_request(p_method => l_method,
P_Namespace => L_Namespace);
soap_api.add_parameter(p_request => l_request,
p_name => 'Username',
p_type => '',
p_value => 'user1');
soap_api.add_parameter(p_request => l_request,
p_name => 'Password',
P_Type => '',
p_value => 'passwd');
soap_api.add_parameter(p_request => l_request,
p_name => 'empid',
p_type => '',
p_value => '9989');
soap_api.add_parameter(p_request => l_request,
p_name => 'emp_TYPE',
P_Type => '',
p_value => 'COCD');
soap_api.add_parameter(p_request => l_request,
p_name => 'name',
P_Type => '',
p_value => 'Danny');
soap_api.add_parameter(p_request => l_request,
p_name => 'STATUS',
P_Type => '',
p_value => 'pending');
soap_api.add_parameter(p_request => l_request,
p_name => 'mgr_name',
P_Type => '',
P_Value => 'Auditore');
soap_api.add_parameter(p_request => l_request,
p_name => 'ADDRESS',
P_Type => '',
p_value => '13 new street');
soap_api.add_parameter(p_request => l_request,
p_name => 'PHONE',
P_Type => '',
p_value => '123456');
l_Response := Soap_Api.Invoke(P_Request => l_Request,
P_Url => l_Url,
P_Action => L_Soap_Action);
l_return := soap_api.get_return_value(p_response => l_response,
p_name => l_result_name,
P_Namespace => Null);
-- DBMS_OUTPUT.put_line(l_return );
END;
I have Two questions :
1) Where to give the soap header details ?
2) In my soap header am also having the header atributes like "Responsiblity" ,"Resp Application" ,"Security Group" ,"Language" ,"Org ID"
Where to give these values in my anonymous block?
My Request.xml looks like this:
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-4" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>user1</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">passwd</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<sr:SOAHeader>
<!--Optional:-->
<sr:Responsibility>PURCHASING_SUPER_USER</sr:Responsibility>
<!--Optional:-->
<sr:RespApplication>PO</sr:RespApplication>
<!--Optional:-->
<sr:SecurityGroup>standard</sr:SecurityGroup>
<!--Optional:-->
<sr:NLSLanguage>american</sr:NLSLanguage>
<!--Optional:-->
<sr:Org_Id></sr:Org_Id>
</sr:SOAHeader>
</soapenv:Header>
<soapenv:Body>
<get:InputParameters>
<!--Optional:-->
<get:EMP_NUMBER>9969</get:EMP_NUMBER>
<!--Optional:-->
<get:EMP_TYPE></get:EMP_TYPE>
<!--Optional:-->
<get:name></get:name>
<!--Optional:-->
<get:STATUS></get:STATUS>
<!--Optional:-->
<get:MGR_NAME></get:MGR_NAME>
<!--Optional:-->
<get:ADDRESS></get:ADDRESS>
<!--Optional:-->
<get:PHONE></get:PHONE>
</get:InputParameters>
</soapenv:Body>
</soapenv:Envelope>Hi Arik,
Thanks for the reply. I got the solution by configuring a NonXA data source. The problem was with internal commits of the fnd_global.initialize api.
If the DB adapter is calling aPL/SQL procedure (written inside a pakcage) using the data source configured to support XA, will expect not to have any commits in side the procedure or anywhere, the XA driver will take of the commits and whole transactions. By default the FND_GLOBAL.INITIALIZE(...) procedure will have the internal commits, so it was throwing the errors.
The solution was configuring the a NonXA Data source in the databae adapter configuration will allow the commits inside the callings procedures. So we created Two data sources one for XA and another for NonXA and we are using the NonXA datasource whereever we are calling the EBS APIs which have the internal commits.
-- Khaleel -
I have a mid-2009 MBP and I've been using my BOSE Companion 20 with it for about half a year now. It was fine until recently, when i want to adjust the volume using the pod on the BOSE Companion 20, it will cause like a surge in volume, spiking it up and down. It will not stablise itself! It's very fustrating. Anybody with the same issue?
I have the BOSE Companion 5 speakers and have had the same problem. I've searched everywhere and gotten nowhere. My speakers are way past their warranty, so calling Bose would probably get me no where either. Only thing I can think of is that the speakers overheat which causes the spikes in the volume. I've tried unplugging them for a few minutes and then plug them back on. The problem does go away, but after about 5 minutes, same problem.
-
A cycle is detected in the object graph. This will cause an infinite loop.
People,
Looking for a little guidance. Please point me in the correct direction if I am mistaken. I am using Jersey 2.11 and generating JAXB definitions from XSD.
I have a periodic exception that seems to be timing based. If I change the timing of the message sent in anyway the error does not occur. The other issue is that the cycle reported in the error changes some times, however, the cycles reported can not occur based on the XSD definition. I have also dumped the message before sending and it definitely does not contain the cycle reported.
In this specific scenario, I am sending a message of NotificationType which contains a list of DocumentType, however, DocumentType can never contain NotificationType so the following cycle is not possible:
net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3]
I am wondering if there could be a different reason for receiving the following exception?
Thank you for the help,
John
[code]
[ERROR] [08/22/2014 11:16:22.307] [NSI-DISCOVERY-akka.actor.default-dispatcher-4] [akka://NSI-DISCOVERY/user/discovery-notificationRouter/$c] HTTP 500 Internal Server Error
javax.ws.rs.ProcessingException: HTTP 500 Internal Server Error
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:667)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:664)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:664)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333)
at net.es.nsi.pce.discovery.actors.NotificationActor.onReceive(NotificationActor.java:100)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:97) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
at org.glassfish.jersey.message.internal.AbstractJaxbElementProvider.writeTo(AbstractJaxbElementProvider.java:152)
at org.glassfish.jersey.message.internal.AbstractJaxbElementProvider.writeTo(AbstractJaxbElementProvider.java:85)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
at org.glassfish.jersey.filter.LoggingFilter.aroundWriteTo(LoggingFilter.java:293)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1154)
at org.glassfish.jersey.client.ClientRequest.writeEntity(ClientRequest.java:503)
at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:315)
at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:227)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:246)
... 22 more
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[Exception [EclipseLink-25003] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred marshalling the object
Internal Exception: Exception [EclipseLink-25037] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A cycle is detected in the object graph. This will cause an infinite loop: net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3]
at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:403)
at org.glassfish.jersey.message.internal.XmlJaxbElementProvider.writeTo(XmlJaxbElementProvider.java:139)
at org.glassfish.jersey.message.internal.AbstractJaxbElementProvider.writeTo(AbstractJaxbElementProvider.java:150)
... 33 more
Caused by: Exception [EclipseLink-25003] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred marshalling the object
Internal Exception: Exception [EclipseLink-25037] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A cycle is detected in the object graph. This will cause an infinite loop: net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3
at org.eclipse.persistence.exceptions.XMLMarshalException.marshalException(XMLMarshalException.java:97)
at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:911)
at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:848)
at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:401)
... 35 more
Caused by: Exception [EclipseLink-25037] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A cycle is detected in the object graph. This will cause an infinite loop: net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3
at org.eclipse.persistence.exceptions.XMLMarshalException.objectCycleDetected(XMLMarshalException.java:400)
at org.eclipse.persistence.internal.oxm.XPathObjectBuilder.buildRow(XPathObjectBuilder.java:207)
at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:118)
at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:1)
at org.eclipse.persistence.internal.oxm.XMLCompositeObjectMappingNodeValue.marshalSingleValue(XMLCompositeObjectMappingNodeValue.java:237)
at org.eclipse.persistence.internal.oxm.XMLCompositeObjectMappingNodeValue.marshal(XMLCompositeObjectMappingNodeValue.java:149)
at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:102)
at org.eclipse.persistence.internal.oxm.record.ObjectMarshalContext.marshal(ObjectMarshalContext.java:59)
at org.eclipse.persistence.internal.oxm.XPathNode.marshal(XPathNode.java:393)
at org.eclipse.persistence.internal.oxm.XPathObjectBuilder.buildRow(XPathObjectBuilder.java:238)
at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:118)
at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:1)
at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.marshalSingleValue(XMLCompositeCollectionMappingNodeValue.java:321)
at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.marshal(XMLCompositeCollectionMappingNodeValue.java:104)
at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:149)
at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:102)
at org.eclipse.persistence.internal.oxm.record.ObjectMarshalContext.marshal(ObjectMarshalContext.java:59)
at org.eclipse.persistence.internal.oxm.XPathNode.marshal(XPathNode.java:393)
at org.eclipse.persistence.internal.oxm.XPathObjectBuilder.buildRow(XPathObjectBuilder.java:238)
at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:118)
at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:1)
at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:743)
at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:901)
... 37 more
[/code]Unfortunately, even this thread is unanswered, i am closing the thread.as it it creating problems for further posting
-
Calling oracle API having parameter as record type throughPL/SQL WebService
Hi All,
I dont know whether this is the right forum to put this query, but as i am using a pl/sql web service , putting the query on this forum.
My requirement is to call oracle API which in turh creates a single Invoice(using Ar_Invoice_Api_Pub.create_single_invoice )
But the issue is this API in turn has some of the input parameters as Record type and table type, my concern is how to pass this data(record type or table type) as parameter thorugh java code .. If i use Collection or Hashmap will it work , I dont think so , some intermediate conversion will require.
Subsequently the other requirement is fetch this record/table type data and return it to the java code
Please correct me if i am wrong and suggest a proper solution if anybody is aware off or tried such things before.
Thanks in advance.
Regards,
Anant.Hi,I'm new comer of this world,
I've a pl/sql like this:
package MY_WS_API is
type record_set is ref cursor;
PROCEDURE Get_User_Info(p_user_id VARCHAR2,
p_rep_id VARCHAR2,
p_flag out number,
p_msg out varchar2,
p_recordset out record_set);
end MY_WS_API;
when I using jdeveloper trying to publish it as a webservice, in the step 4 of the wizzard poping me choose the program unit to expose, the PROCEDURE Get_User_Info is not available and told me "Ref cursor Type is not supported due to a jdbc limitation and Ref Cursor Types are only supported for use of return type".
THE QUESTION is:
1.the cursor I used is of return type,I'm not very understanding the "why not" message upon.
2.in such case , need I trans the return cursor into Object[] if have to?
3.any other limitation for generating WS from PL/SQL using jdeveloper?
Thanks! -
Apps that use non-public APIs will be rejected
Hi guys
Just reading the iOS guidelines before I get too deep into making the native version of a web app.
I was wondering what:
Apps that use non-public APIs will be rejected
means when submitting an app made in AIR - does it mean you can't use your own custom classes?
CheersIf you mean custom AS3 classes, yes you can use those. What you can't do is create an ANE that calls into the private frameworks of iOS itself.
-
Calling multiple API for AP invoices
Hi I want to invoke the AP_INVOICES_INTERFACES AND AP_INVOICES_LINES_INTERFACE from bpel. I have coded the transformation for the header part that is ap_invoices_interfaces and have sucessfully invoked it. Now how to invoke the ap_invoices_lines_interface should i have another transformation and another invoke to call the api.
If values for one or more input parameters of the second API come from output parameters of the first API, then you'll need a transformation to map those values. If all of the values for input parameters of the second API come from somewhere else then an assign activity will be sufficient. You will need another invoke to invoke the second API, regardless of whether there is or is not a transform or assign.
-
Exception while calling native profiler (root cause: no message available [
Hi,
We are setting up MAM30 using the new technology (NWMADMIN). During sync. I get the error message "Exception while calling native profiler (root cause: no message available [java.lang.reflect.Invocat...". Can anyone help me on this?
Thanks
Kind regards
JacobHi Jacob,
I once faced this problem(no in MAM though)
I will try to guess the solution to your problem,
1) My first guess would be that, the header file in MAM30 using the 'javah' tool, did not pass the fully qualified name of the class as the argument. The 'javah' tool will not complain and will produce an incorrect header file.
2) The Native method names wouldnt have got a match for the java method names, might be missing the package name. here you need to import the missing ones.
3) Or you would be calling static native methods using objects, it should be accessed in a static way. you can call them directly.
Hope this helps.
Regards
Divya. -
Calling Windows API From Forms.
For example, how can i call the MessageBoxA function from user32.dll whilst working in an Oracle Forms Application.
Thank you.You shall have to use the WEBUTIL_C_API.Invoke_Int function for this purpose. Please see the following example that Locks the workstation.
-- IMPORTANT
-- Be sure to review the following My Oracle Support Note
-- Doc ID: 285331.1 - "Exception When Calling PASCAL style Function Via WebUTIL_C_API"
declare
rc pls_integer;
f_handle WEBUTIL_C_API.FUNCTIONHANDLE;
args Webutil_c_api.parameterlist;
winSysDir varchar2(255) := Client_Win_API_ENVIRONMENT.Get_Windows_Directory || '\system32\';
--- IMPORTANT ---
-- WEBUTIL_C_API CURRENTLY ONLY SUPPORTS CALLING C STYLE LIBRARIES, THEREFORE SOME WINDOWS LIBRARIES CANNOT BE CALLED.
-- ADDITIONALLY, IT IS NOT RECOMMENDED THAT YOU ATTEMPT TO CALL FUNCTIONS WHICH REQUIRE ARGS.
-- USE EXTREME CAUTION WHEN CALLING WINDOWS APIS.
-- BE SURE TO THOROUGHLY TEST BEFORE MOVING TO PRODUCTION
-- LOOK CLOSELY AT BOTH STABILITY AND MEMORY USAGE AS SOME CALLS
-- MAY RESULT IN THE APPEARANCE OF A MEMORY LEAK.
-- This call to USER32.DLL will reference the LOCKWORKSTATION function.
-- If the current OS user does not have a password configured, the workstation may not lock.
-- The Windows LockWorkStation function requires no args to be passed in.
-- WebUtil expects something to be passed in. So an empty paramlist will be created.
begin
If webutil_clientinfo.get_operating_system LIKE 'Win%' Then
f_handle := WEBUTIL_C_API.register_function(winSysDir||'user32.dll','LockWorkStation');
args := WEBUTIL_C_API.create_parameter_list;
If the function succeeds, the return value is nonzero. Because the function executes asynchronously,
a nonzero return value indicates that the operation has been initiated. It does not indicate whether
the workstation has been successfully locked. If the function fails, the return value is zero.
http://msdn.microsoft.com/en-us/library/aa376875(v=VS.85).aspx
rc := WEBUTIL_C_API.Invoke_Int(winSysDir||'user32.dll','LockWorkStation',args);
End if;
WEBUTIL_C_API.Destroy_Parameter_List(args);
WEBUTIL_C_API.Deregister_Function(f_handle);
SYNCHRONIZE;
end; -
OIM 11g - Error while calling ignoreEvent() API
Hi,
I am getting the following error,while calling ignoreEvent API in my recon code:
"Thor.API.Exceptions.tcAPIException: Problem with the matching rule"
Any ide what could be causing the issue?.ThanksHi
This means, the reconciliation matching rules are not defined correctly. Please verify the following:
1. The key fields defined in the process definition for process match
2. The reconciliation rule defined for this resource object for entity match. This rule should the valid and active check boxes checked.
After verifying the above, click on the "Create Reconciliation Profile" button present in the Resource object's tabs.
Regards
user12841694
Maybe you are looking for
-
OIM 11g - Reconciliation of Target Resource Status
Hi, We're working with OIM 11.1.1.5.2 and connectors DBUM 9.1.0.4 and MSAD 9.1.1.7. Provisioning and reconciliation seem to be working correctly, but we found that the status of the resource is not getting reconciled on OIM console. For example, if w
-
I can't uninstall/install iTunes or Quicktime onto my com.
i can't uninstall itune or quicktime due to " Could not access network location C:\ProgramFiles\iTunes\iTunes.Resources\sv.lproj\EULA.nib" and for Quicktime " Could not access network location C:\ProgramFiles\Quicktime\QTSystem\QuicktimeVR.Resources
-
Failure to sync contacts and calendar from Outlook through BlackBerry Link after update
Hi everyone, I have both z10 and z30. I have been syncronizing my Outlook contacts and calendars to both of them through Blackberry Link. My z10 automatically updated several days ago and I lost everythiing on the phone including contacts, calendar,
-
Is ODI 12c included in 12c Oracle Server License?
Hello, I'm looking into the licensing information and the only thing I was able to find out about ODI 12c is for Data integrator Enterprise Edition, that costs some 23k per CPU. Plus Golden Gate for access to non-Oracle data sources. Can someone plea
-
I want to update my iPad's software. But if you would go to general there is no Software update showing up...