CORBA IDL "pragma ID" not solving problem
Similar to "CORBA Bug?", I get the stacktrace that is listed at the end of this note. I have put "pragma ID..." for typedefs, structs and interfaces in my idl file. I did nothing else to the code. The same errors were generated, so I assume the "pragma ID..." had no effect.
This program connects to a Cloudscape DB on the server, and works very well with servants that have only "string" types. It produces errors with strings that have user-defined or boolean return types.
I appreciate any help in this matter.
Gary Lance
[email protected]
Exception in thread "main" org.omg.CORBA.UNKNOWN:
vmcid: SUN minor code: 202 completed: Maybe at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at
com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.ge
tSystemException(ReplyMessage_1_2.java:90)
at
com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemEx
ception(ClientResponseImpl.java:105)
at
com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke
(GenericPOAClientSC.java:129)
at org.omg.CORBA.portable.ObjectImpl._invoke
(ObjectImpl.java:457)
at TeachApp._TeachingStub.getProfessors
(_TeachingStub.java:43)
at TeachEntry.getNames(TeachEntry.java:127)
at TeachEntry.<init>(TeachEntry.java:85)
at TeachEntry.main(TeachEntry.java:295)
I had this problem myself and I finally managed to crack it ...
Let's take an example IDL for reference
typedef string<100> Name;
struct PersonStruct {
string age;
Name name;
typedef sequence<PersonStruct> PersonSeq;
interface PersonHandling {
long getPersons(in string personId, in Name name, out PersonSeq persons);
};The method getPerson returns an array of PersonStructs.
The most likely place where the error 202 is thrown is in the implementation class
public int getPersons(String personId, String name, PersonSeqHolder persons) {
PersonStruct a = new PersonStruct();
a.age = "28";
a.name = "John Smith";
persons = new PersonSeqHolder(); //this line is the cause of error 202
persons.value = new PersonStruct[]{a};
return 0;
}The return PersonSeqHolder object should not be reinitialised. We must use the object given in the input params as is ..
i.e. persons = new PersonSeqHolder();//should be removed Remove this line and simply set the value
persons.value = new PersonStruct[]{a};
Similar Messages
-
This problem only happens with one website when I try to follow hyperlinks to other pages. They have directed me to Firefox troubleshooting section. I have followed the advice there but it has not solved my problem.
I haven't been able to go on line since 7.01 and up. I have to use ieexplorer. are you idiots or what. I can't even contact you because i have to be in your latest version but i can't get the internet with the latest version. good bye for good
-
Running headless not solving problem with X11 connectivity error
I'm having a variation on a problem referenced in quite a few places, but I don't seem to be getting any closer to a solution.
I'm running a stand-alone, console-only application that uses javax.swing.text.html.HTMLEditorKit to return plain text from HTML for use in multi-part e-mails. That class is causing the following error when running on the Unix server:
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:175)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:124)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at java.awt.Toolkit$2.run(Toolkit.java:796)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:787)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1572)
at java.awt.EventQueue.isDispatchThread(EventQueue.java:731)
at javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1269)
at javax.swing.text.StyleContext.reclaim(StyleContext.java:448)
at javax.swing.text.StyleContext.addAttribute(StyleContext.java:305)
at javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:568)
at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1497)
at javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1307)
at javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:1255)
at javax.swing.text.StyleContext.addStyle(StyleContext.java:117)
at javax.swing.text.StyleContext.<init>(StyleContext.java:97)
at javax.swing.text.html.StyleSheet.<init>(StyleSheet.java:177)
at javax.swing.text.html.HTMLEditorKit.getStyleSheet(HTMLEditorKit.java:387)
at javax.swing.text.html.HTMLEditorKit.createDefaultDocument(HTMLEditorKit.java:218)
I don't have the option of starting an X11 service on this server, so I have to find another way around.
I'm using Java 1.4.2, so my understanding is that headless mode should solve this problem for me. I've tried adding the statement
System.setProperty("java.awt.headless","true");
to the code with no avail, and tried running it with the option "-Djava.awt.headless=true" from the command line, also with no luck.
Is anyone able to give me a tip on what other course of action I can try?Thanks, but I'm not sure what you mean. I don't know that I have access to "the source of X11GraphicsEnvironment" and I'm not confident I could locate and solve the problem if I did.
I'm a little puzzled that it's not working in headless mode, because everything that my searching turned up indicated that it worked fine in 1.4.2 unless heavyweight components were used, which they aren't. -
Hello Friends,
I am using 6 tables in my report.i want to display recores by AT NEW and Related stuff.
Can i use following code for query and internal tables ?
or Sujjest me Better code.
to use loop within loop is not good idea.
I want to disply Records
total Document type wise ->year wise -> Month wise -> Sales Order Number wise->Item Numberwise -> Production order numberwise
This is interactive report of 8-9 screens !!
Main problem is to make AT new with different loop !!
Sujjest me with code !!
Points will be rewarded soon !!
Regards,
Nimesh Master
TABLE DECLARATION ************************
TABLES : VBAK,AFPO,AUFM,MAKT,KNA1,VBAP.
INTERNAL TABLE DECLARATION *******************
DATA : BEGIN OF T1 OCCURS 0,
AUART TYPE VBAK-AUART,
NETWR TYPE VBAK-NETWR,
KUNNR TYPE VBAK-KUNNR,
VBELN TYPE VBAK-VBELN,
AUDAT TYPE VBAK-AUDAT,
END OF T1.
DATA : BEGIN OF T2 OCCURS 0,
NETWR TYPE VBAP-NETWR,
POSNR TYPE VBAP-POSNR,
END OF T2.
DATA : BEGIN OF T3 OCCURS 0,
AUFNR TYPE AFPO-AUFNR,
KDPOS TYPE AFPO-KDPOS,
KDAUF TYPE AFPO-KDAUF,
PSMNG TYPE AFPO-PSMNG,
WEMNG TYPE AFPO-WEMNG,
END OF T3.
DATA : BEGIN OF T4 OCCURS 0,
DMBTR TYPE AUFM-DMBTR,
MATNR TYPE AUFM-MATNR,
ELIKZ TYPE AUFM-ELIKZ,
END OF T4.
DATA : BEGIN OF T5 OCCURS 0,
NAME1 TYPE KNA1-NAME1,
END OF T5.
DATA : BEGIN OF T6 OCCURS 0,
MAKTX TYPE MAKT-MAKTX,
END OF T6.
FREE T1.
SELECT VBELN NETWR AUART AUDAT KUNNR FROM VBAK INTO CORRESPONDING FIELDS
OF TABLE T1 WHERE AUART IN AUART AND VBELN IN VBELN.
FREE T2.
SELECT NETWR POSNR FROM VBAP INTO CORRESPONDING FIELDS OF TABLE T2
FOR ALL ENTRIES IN T1 WHERE VBELN = T1-VBELN .
FREE T3.
SELECT AUFNR PSMNG WEMNG KDPOS FROM AFPO INTO CORRESPONDING FIELDS OF
TABLE T3 FOR ALL ENTRIES IN T1 WHERE KDAUF = T1-VBELN .
FREE T4.
SELECT DMBTR MATNR ELIKZ FROM AUFM INTO CORRESPONDING FIELDS OF
TABLE T4 FOR ALL ENTRIES IN T3 WHERE AUFNR = T3-AUFNR.
FREE T6.
SELECT MAKTX FROM MAKT INTO CORRESPONDING FIELDS OF TABLE T6 WHERE
MATNR = T4-MATNR.
FREE T5.
SELECT NAME1 FROM KNA1 INTO CORRESPONDING FIELDS OF TABLE T5 WHERE
KUNNR = T1-KUNNR.
LOOP AT T1.
AT NEW VBELN.
WRITE : / T1-VBELN .
ENDAT.
AT NEW AUFNR.
WRITE : / T1-AUFNR.
ENDAT.
AT END OF AUFNR.
SUM.
IF T1-PSMNG = T1-WEMNG.
T1-CLOSE_ORD1 = T1-CLOSE_ORD1 + T1-DMBTR.
ELSE.
T1-OPEN_ORD1 = T1-OPEN_ORD1 + T1-DMBTR.
ENDIF.
TOT_DMBTR_C = TOT_DMBTR_C + T1-CLOSE_ORD1.
TOT_DMBTR_O = TOT_DMBTR_O + T1-OPEN_ORD1 .
ENDAT.
AT END OF VBELN.
SUM.
P = TOT_DMBTR_C.
Q = TOT_DMBTR_O.
TMP_OC_SALES = NET_PRICE - P.
TMP_PER_SALES = ( TMP_OC_SALES * 100 ) / NET_PRICE .
TMP_TOT_MAT = P + Q.
TMP_PER_MAT = ( TMP_TOT_MAT * 100 ) / NET_PRICE.
TOT_NET_SALES_A = TOT_NET_SALES_A + NET_PRICE.
TOT_P_A = TOT_P_A + P.
TOT_Q_A = TOT_Q_A + Q.
ENDIF.
FORMAT COLOR 2 ON.
WRITE : 20 NET_PRICE,
50 P,
65 Q,
83 TMP_OC_SALES,
100 TMP_PER_SALES,'%',
120 TMP_TOT_MAT ,
139 TMP_PER_MAT,'%'.
FORMAT COLOR 2 OFF.
ENDAT.
ENDLOOP.
1. Tell me is it appropriate to take same number of INTERNAL TABLE as DDIC
TABLE ??
2. Wat should be the queries for them ?
3. How i use AT NEW with Different Loop for Internal tables ??i am gving u the silmilar kind of code where i used 4-5 tables.
1> used for all entries tat will increase the performance
2> use read instead of at
3> use work area
REPORT ZBH_FI_ALV1 No Standard Page Heading.
TABLES:T001,SKA1,SKB1,BKPF,BSEG.
TYPE-POOLS:slis.
TYPES DECLARTIONS
TYPES:begin of str_bkpf,
blart type blart,
bukrs type bukrs,
belnr type bseg-belnr,
gjahr type gjahr,
budat type budat,
end of str_bkpf.
TYPES: begin of str_bseg,
belnr type belnr_d,
gjahr type gjahr,
buzei type buzei,
bschl type bschl,
hkont type hkont,
bukrs type bukrs,
blart type blart,
budat type bkpf-budat,
saknr type saknr,
fstag type fstag,
ktopl type ktopl,
bilkt type bilkt,
end of str_bseg.
TYPES:begin of str_t001,
bukrs type bukrs,
ktopl type ktopl,
end of str_t001.
TYPES:begin of str_ska1,
bilkt type bilkt,
ktopl type ktopl,
saknr type saknr,
end of str_ska1.
TYPES:begin of str_skb1,
fstag type fstag,
bukrs type bukrs,
saknr type saknr,
end of str_skb1.
DATA DECLARATIONS
DATA:it_bkpf type standard table of str_bkpf ,
it_bseg type standard table of str_bseg ,
it_t001 type standard table of str_t001 ,
it_ska1 type standard table of str_ska1 ,
it_skb1 type standard table of str_skb1 ,
fieldcat type slis_t_fieldcat_alv WITH HEADER LINE,
events type slis_t_event WITH HEADER LINE,
layout type slis_layout_alv,
layout type slis_layout_alv1 ,
ALV type SY-REPID.
data:w_index type sy-tabix.
data: wa_bkpf like line of it_bkpf,
wa_bseg like line of it_bseg,
wa_t001 like line of it_t001,
wa_ska1 like line of it_ska1,
wa_skb1 like line of it_skb1.
INPUT VARIABLES
SELECT-OPTIONS:s_BUKRS FOR BKPF-BUKRS obligatory,
s_BLART FOR BKPF-BLART obligatory,
s_BUDAT FOR BKPF-BUDAT,
s_BSCHL FOR BSEG-BSCHL,
s_HKONT FOR BSEG-HKONT.
SELECT STATEMENTS
START-OF-SELECTION.
select blart "Document type
bukrs "Company Code
belnr "Accounting Document Number
gjahr "Fiscal Year
budat "Posting Date in the Document
from bkpf
into
table it_bkpf
where bukrs in s_bukrs
and blart in s_blart
and budat in s_BUDAT.
check sy-subrc = 0.
if not it_bkpf[] is initial.
select belnr "Accounting Document Number
gjahr "Fiscal Year
buzei "Number of Line Item Within Accounting Document
bschl "Posting Key
hkont "General Ledger Account
bukrs "Company Code
from bseg
into table it_bseg
for all entries in it_bkpf
where belnr = it_bkpf-belnr
and gjahr = it_bkpf-gjahr
and bukrs = it_bkpf-bukrs.
endif.
if not s_BSCHL[] is initial.
delete it_bseg where not bschl in s_bschl.
endif.
if not s_HKONT[] is initial.
delete it_bseg where not hkont in s_hkont.
endif.
if it_bseg[] is not initial.
sort it_bseg by bukrs gjahr belnr.
refresh it_t001.
SELECT bukrs "Company Code
ktopl "Chart of Accounts
from T001
into table it_t001
where bukrs in s_bukrs.
if not it_t001[] is initial.
sort it_t001 by bukrs.
refresh it_ska1.
SELECT bilkt "Group Account Number
ktopl "Chart of Accounts
saknr "G/L account number
from SKA1
into table it_ska1
for all entries in it_t001
where ktopl = it_t001-ktopl.
if not it_ska1[] is initial.
sort it_ska1.
refresh it_skb1.
SELECT fstag "Field status group
bukrs "Company code
saknr "G/L account number
from skb1
into table it_skb1
for all entries in it_ska1
where bukrs in s_bukrs and
SAKNR = it_ska1-saknr.
endif.
endif.
endif.
loop at it_bseg into wa_bseg.
w_index = sy-tabix.
read table it_bkpf into wa_bkpf with key BUKRS = wa_bseg-bukrs.
if sy-subrc = 0.
wa_bseg-blart = wa_bkpf-blart.
Read Table it_t001 into wa_t001 with key bukrs = wa_bseg-bukrs.
if sy-subrc = 0.
wa_bseg-ktopl = wa_t001-ktopl.
if sy-subrc = 0.
Read table it_ska1 into wa_ska1 with key ktopl = wa_bseg-ktopl.
wa_bseg-saknr = wa_ska1-saknr.
wa_bseg-bilkt = wa_ska1-bilkt.
if sy-subrc = 0.
Read Table it_skb1 into wa_skb1 with key bukrs = wa_bseg-bukrs saknr = wa_bseg-hkont.
wa_bseg-fstag = wa_skb1-fstag.
modify it_bseg from wa_bseg index w_index transporting ktopl bilkt saknr fstag blart.
endif.
endif.
endif.
endif.
endloop.
regards
bhanu
all the best -
I had already entered my Email info under preferences.
The screen comes up with the photos I want to send.
I type my message and hit Send. The blue bar appears "Sending".
However, don't know where the photos go, they don't reach destination.
I tried sending to myself at another Email address - they didn't arrive, and they are not shown under Sent Emails either.
How to resolve?
Tried to respond to T. Devlin - but that didn't happen either. Just a Like symbol was there (as in Facebook).You are referring to this discussion, right?
Problem sending photos via email since I recently updated to iLife 11.
Which MacOS X version are you using and which iPhoto version?
If you are using Yosemite and have enabled up two-step verification for iCloud? Then you may need to create an application specific password for iPhoto. See this discussion: Re: Unable to send photo through email using iphoto theme (designs)Re: Unable to send photo through email using iphoto theme (designs)Re: Unable to send photo through email using iphoto theme (designs) Unable to send photo through email using iphoto theme (designs) -
I have no access to photos on iCloud. The icon does not even appear on my mac or in iCloud.
The Mac is running 10.9.4. on a mid 2007 model.
My iPhoto is 7.1.5.
I was told that my system was too old to support the required upgrades that would allow me to to see photos on iCloud; thus, I should not be the latest iPhoto. Accurate?All you need to do is upgrade your iPhoto to iPhoto 9.5.1 thru the App Store. This screenshot shows which previous versions of iPhoto are compatible with Mavericks. It also indicates which versions qualify for a free upgrade to iPhoto 9.5.1 and which require a purchase:
Note 1: every day more users are reporting problems with iPhoto 8.1.2 so I've included it in the non compatible category.
Note 2: If your previous version of iPhoto was iPhoto 7 (08) or earlier you'll need to download and run the iPhoto Library Upgrader 1.1 application on the library before opening it with iPhoto 9.5.1 -
IPhone 5 has lost sound and turning phone off has not solved problem
Can anyone suggest how this problem can be resolved? I do not have Apple Care. I have been turning phone off and then back on without success.
Thanks
MaryLouHi there,
I would recommens that you take a look at some of the troubleshooting steps in the article below.
iPhone: Can't hear through the receiver or speakers
http://support.apple.com/kb/TS1630
Hope that helps,
Griff W. -
Safari pages are darkened and unresponsive. Internet works fine. Syncing to MacBook didn't help. Everything else works fine, including a different browser and apps that use the internet. Safari responds to searches and bookmark changes, but pages are not clickable. Help, please.
Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 seconds, after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. Also have you cleared the cache : Settings > Safari > Clear Cache (and Clear History). Also, if your equipment list is correct, you update to 4.3.3
-
I cannot close Safari. Shutting down computer does not solve problem.
When I try to close Safari, the Quit Safari option on the menu list is light gray, and I cannot activate it. I have tried shutting down or restarting my computer from the Apple Icon, but I cannot without closing Safari. It is a vicious circle! How can I close Safari under these conditions?
Hold down Option Command Escape at the same time... from the drop down Menu choose Force Quit Safari.
Or,
Click the Apple menu icon top left in your screen. From the drop down menu click Force Quit. -
i had a iphone in 2010, i purchased music which is still stored on my original apple id, but when i try to transfer the music ,and download apps all it says is your apple id has been disabled, i have tried re setting a new pass word but this has not solved the problem can any one help please
Contact itunes support
-
I have apple iPhone 4S upgraded to iOS 6.0.1 and everything was working fine suddenly my Wifi was not connecting and found the wifi on/off button is greyed out and to enable it I tried all resets but still my problem have not solved, still wifi is off
Same here.... No fix. Replacing is the option apparently and if you're out of warranty, you're SOL. That was as per the "Genius" at Apple.
-
Went through this step-by-step, but alas it did not solve the problem. For some reason I can download mail on my Macbook Pro and iPhone, but no my iMac. Connection Doctor shows all green lights. This started today when I was prompted to re-enter incoming mail server passwords. I re-entered passowrds yet again to make sure they were correct. Rebuilt the inBox. Connection Doctor continues to show all green lights, but am still unable to download mail to the inbox. Has anyone else ever run into this problem?
I have the exact same problem trying to use the Remote app on both my iPhone 3gs and iPad 2 with either my Mac or ATV2. My Remote app used to work on my phone - I can't recall if I ever actually used it with my iPad, but when I tried today, I got all the same results as you did (on both iPad, and then iPhone). I was using my ATV2 to play music from iTunes on my Mac and wanted to use the Remote app, but it would not connect to either device no matter what I did.
-
In my iPad 2 with IO6 today I can not send emails from my gmail account, they go to the outbox directly...why? How can i solve this problem? ..I restarted the IPad but the problem was not solved. Please help.
Greetings,
Questions:
1. What version of the Mac OS are you running (Apple > About this Mac)?
2. What version of the iOS are you running (Settings > About)?
3. Do you use MobileMe/ iCloud or another server based sync solution like Google or Yahoo?
4. Do other changes to synced information like Address Book content sync successfully back and forth?
Based on your description it sounds like you have a 1 way sync issue. Events sync fine between the iOS devices and fine from the computer to the iOS devices but not from the iOS devices to the computer.
Try:
Backup your computer and iOS devices before doing anything else:
http://support.apple.com/kb/HT1427
http://support.apple.com/kb/ht1766
Ensure all the devices in use are fully up to date: Apple > Software Update / Settings > General > Software Update
Make separate backups of critical data:
Backup your computer Addressbook: http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad961.html
Backup your computer iCal: http://support.apple.com/kb/HT2966
Reset syncing on your Mac: http://support.apple.com/kb/TS1627
Reply back if that does not resolve your issue.
Hope that helps. -
I want to disable or remove Game center from my iphone. It's always pop up during i play hay day game. So i can not solve this problem. Any way i try to log in game center my several Apple id account but it does' not work. I am still stuck in log in page
The Game Center app is pre installed and cannot be removed from the device.
Best thing to do is move it to the last available screen.
Hold down the Game Center app until all the apps jiggle then sliide the Game Center app to the right from one screen to the next. This requires a bit of finesse, but it's doable.
Press the Home button one time to stop the apps from jiggling.
For the Apple ID issue, try resetting.
Tap Settings > General > Reset > Reset All Settings
Then try your Apple ID and password for the Game Center app. -
Since I updated my 4S iphone to the latest iOS7 version, I can no longer close any of my apps. As a result, all my apps remain open on my phone. Even powering down and restarting does not solve the problem. Specifically, when I double-click the start button, my open app icons display. But when I hold my finger on an icon, the apps do not wiggle and display an "x" to close. Any advice... thanks?!
Double tap the Home button, then swop upwards on the App Preview (not the App Icon). Tap the Home button again when done to return to normal screen.
Maybe you are looking for
-
How to add objects to panel in one class from another class
Hi this is what i am trying to do. I have a drag and adrop tool working where the users and select objects on a small panel and drag them to another panel called the tpan. What i want to do is create another class, which creates objects and now i wan
-
Orginally to Arch dev but to Newbs too.
Heya all Archlinux users. About me: First I want to let you know that I registered on the forums 2006-10-23. Still this is my first post. I run around 20 Oracle related servers all on solaris, mostly on the new T1 and T2 processors running LDOM (Log
-
How do I know if the logic board is bad?
So the girlfriend dumped a slew of water on her 20 gig 4th gen photo. I've completely disassembled it and THOROUGHLY dried it out and all seems well from that perspective. So here is what is happening: - if I plug it into my PB it does not respond, n
-
SharePoint Online Power Bi. pbix files and SPO List refreshes?
I have a Power Bi License on SharePoint Online - suspect the free one. I have access to the Power Bi Admin center and gateway on SPO. I have Power Bi on my Windows 8 desktop. On my client I've created a pbix report with an SOP List data source..
-
I've just purchased a new iPod and I;m told to uninstall and reinstall iTunes so the new nano can be recognized. What will happeen to the 27GB of music already in my Itunes library?