The bean code is not activate when-custom-point-event trigger
I wrote a java bean to read card reader Omnikey. It works - almost. When-custom-point-event is not fired. Get the key of the reader in the java console, but then follows an exception. The exeption complains, I believe, m_handler null variable in dispatchMessage() call which is what should be pulled when-custom-point-event in the form. I'm missing something minor and that everything works. See Oracle Forms java console ATR key followed then path exception at the bottom of this post. I have to FBean.Enable_Event. What would be the name of the event listener? I got the kifani of this example code: https://community.oracle.com/thread/68004------ this example isn't mention or implement a listener. I just need to return the key and place it in a named text field: test.atr.
a time new form instance
FBean.Register_Bean('TEST.) CARD_READER_BEAN_AREA', 1, 'CardReader.CardReaderWrapper');
FBean.set_logging_mode('TEST.) CARD_READER_BEAN_AREA', 1, FBEAN. LOG_ALL);
button with when button pressed
fbean. Invoke('TEST.) CARD_READER_BEAN_AREA', 1, 'main');
When-custom-point-event
DECLARE
eventName varchar2 (30): =: system.custom_item_event;
eventValues ParamList;
number of eventValueType;
tempString varchar2 (100);
BEGIN
IF (eventName = "CARDINFO_EVENT") THEN
eventValues: = get_parameter_list(:system.custom_item_event_parameters);
get_parameter_attr (eventValues, 'CARDINFO_DATA', eventValueType tempString);
END IF;
- Then do something with tempString...
-for example
-message ("payload has been: ' |") tempString);
: test. ATR: = tempString;
END;
Java Bean code...
package, card reader;
import java.util.List;
Javax.smartcardio import. *;
Import oracle.forms.ui.VBean;
Import oracle.forms.properties.ID;
Import oracle.forms.handler.IHandler;
Import oracle.forms.ui.CustomEvent;
SerializableAttribute public class CardReaderWrapper extends kifani {
Property registered under the name of the custom event
Call it what you want...
public static String strOut = null; used in part of the code ATR
public static final ID CARDINFO_EVENT = ID.registerProperty ("CARDINFO_EVENT");
Property to set the name of the parameter that contains the payload
the event - for example your data
public static final ID CARDINFO_DATA = ID.registerProperty ("CARDINFO_DATA");
A reference to the Forms Manager associated with this component.
It is used to send custom form events
private IHandler m_handler = null;
/**
* Method of the oracle.forms.ui.IView class and substitute of the kifani
* base class. This life cycle method is called one time what forms creates a
the instance of the JavaBean.
*
< B > @param Manager < /b > a reference to the handler for the JavaBean class.
*/
{} public void init (Manager IHandler)
Manager = m_handler;
Super.init (Handler);
}
/**
* Function to dispatch an event and the data payload
* Return to forms
* In this case, we use the pre-defined event and the IDs payload
*
@param payload < b > < /b > to return to the event data.
*/
Private Sub dispatchMessage (String payload) {}
try {}
The CustomEvent = new CustomEvent (m_handler, CARDINFO_EVENT);
m_handler. SetProperty (CARDINFO_DATA, payload);
super.dispatchCustomEvent (this);
} catch (Exception e) {}
e.printStackTrace ();
}
}
the rest of your bean code follows
and calls the dispatchMethod() method, which precedes
to contact forms
Public Shared Sub main (String [] args) {}
CRW CardReaderWrapper = new CardReaderWrapper();
Plant of TerminalFactory = TerminalFactory.getDefault ();
CardTerminals cardTerminals = factory.terminals ();
The list < CardTerminal > cardTerminalList;
try {}
cardTerminalList = cardTerminals.list ();
for (CardTerminal cardTerminal: cardTerminalList) {}
If (cardTerminal.isCardPresent ()) {}
Card card;
try {}
map = cardTerminal.connect ("T = 0");
card.beginExclusive ();
} catch (CardException e) {}
strOut = ("8"); This card but with card error
System.out.println (strOut);
crw.dispatchMessage (strOut);
continue;
}
ATR atr = card.getATR ();
Byte [] atrBytes = atr.getBytes ();
System.out.println ("0" + javax.xml.bind.DatatypeConverter.printHexBinary (atrBytes));
strOut = '0' + javax.xml.bind.DatatypeConverter.printHexBinary (atrBytes);
card.endExclusive ();
Card.Disconnect (true);
crw.dispatchMessage (strOut);
}
}
} catch (CardException e) {}
System.out.println("7"); no card reader not connected? ») ;
crw.dispatchMessage("7");
}
If (strOut == null) {}
System.out.println("9");
crw.dispatchMessage("9");
}
}
}
Key to Java Console ATR with the Exception
0 3B0500026E05BA
java.lang.IllegalArgumentException: null source
to impossible. < init >(Unknown Source)
to oracle.forms.ui.CustomEvent. < init >(Unknown Source)
at CardReader.CardReaderWrapper.dispatchMessage (CardReaderWrapper.java:48)
at CardReader.CardReaderWrapper.main (CardReaderWrapper.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
at java.lang.reflect.Method.invoke (unknown Source)
at oracle.forms.beans.MethodHelperPM.invokeMethod (unknown Source)
at oracle.forms.beans.MethodPM.setProperty (unknown Source)
at oracle.forms.ui.VBean.setBeanProperty (unknown Source)
at oracle.forms.ui.VBean.setProperty (unknown Source)
at oracle.forms.handler.ComponentItem.setCustomProperty (unknown Source)
at oracle.forms.handler.ComponentItem.onUpdate (unknown Source)
at oracle.forms.handler.JavaContainer.onUpdate (unknown Source)
at oracle.forms.handler.UICommon.onUpdate (unknown Source)
at oracle.forms.engine.Runform.onUpdateHandler (unknown Source)
at oracle.forms.engine.Runform.processMessage (unknown Source)
at oracle.forms.engine.Runform.processSet (unknown Source)
at oracle.forms.engine.Runform.onMessageReal (unknown Source)
at oracle.forms.engine.Runform.onMessage (unknown Source)
at oracle.forms.engine.Runform.processEventEnd (unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent (unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent (unknown Source)
at java.awt.Component.dispatchEventImpl (unknown Source)
at java.awt.Container.dispatchEventImpl (unknown Source)
at java.awt.Component.dispatchEvent (unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)
at java.awt.Container.dispatchEventImpl (unknown Source)
at java.awt.Window.dispatchEventImpl (unknown Source)
at java.awt.Component.dispatchEvent (unknown Source)
at java.awt.EventQueue.dispatchEventImpl (unknown Source)
at java.awt.EventQueue.access$ 500 (unknown Source)
in java.awt.EventQueue$ 3.run (unknown Source)
in java.awt.EventQueue$ 3.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)
in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)
in java.awt.EventQueue$ 4.run (unknown Source)
in java.awt.EventQueue$ 4.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)
at java.awt.EventQueue.dispatchEvent (unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters (unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter (unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
at java.awt.EventDispatchThread.pumpEvents (unknown Source)
at java.awt.EventDispatchThread.pumpEvents (unknown Source)
at java.awt.EventDispatchThread.run (unknown Source)
Well... I solved this problem by making static m_handler. Now I have another question. I post another question...
Tags: Oracle Development
Similar Questions
-
Receive the error code: 0 x 0070017 when I try to save it on a Vista 32 bit.
Original title: I get the error code 0 x 0070017 when I try to save it on a Vista 32 bit. I tried disk repair & restoration. does not work. any help appreciated, Doug
Recently, I have code failure error 0 x 0070017 when I save. Using the error checking & repair disk hard does not help, nor restores at the earliest. I tried the restore dates & get restore disk failed. All the disks are clean virus according to Norton 360. This computer running Vista 32 bit.
Any help is appreciated... Doug
Hi Doug,.
1. What is the full error message that you receive?
2. are you trying to backup to an external drive?
3. you have any third-party backup program installed on the system?
4. have you made a recent software or hardware changes to the system?
I'm sorry to know that you are always faced with the question after performing a restore of system and control of disk. However, you can try the following steps and check if it helps:
Method 1:
You can try to change the backup location and see if it helps.
For more information, see the article:
Change when you save your files
Method 2:
You can temporarily disable antivirus software and firewall on the computer as a test and check if it makes a difference.
If disabling the antivirus/firewall resolves the issue, you may need to configure the settings of the antivirus/firewall accordingly. Please contact the software vendor for assistance in this regard.
Note: Make sure that you enable the antivirus software and firewall after the test.
Please post back and let us know if the steps helps to solve the problem.
-
the source code is not available
the JDE show me this message
the source code is not availablein the race... I can do pleaseeeeeee?
Thank you for all
I got it when I reset for Simulator was told there is an exception. I found and solved
-
I get the error code 0 x 80070015 when I opened the Gallery of pictures newly updated windows live
I get the error code 0 x 80070015 when I open Photo Gallery windows live newly updated - it was working fine before updating. -J' uninstalled, rebooted and reinstalled and rebooted but it will not always open
Maybe a system restore to an hour before you update would be worth a try.
Windows 7 system restore: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/system-restore-frequently-asked-questions -
I tried to use my Photoshop CS after a long period of non-use and he said "need to reactivate the program but I not activate - then the activation of the phone no longer works and the screen says that it was more long then 30 days if the program will not even start righteous outputs photoshop so I can't use the Help menu - I went to the adobe Web site and logged into my account and it lists my Photoshop CS as. activated in 2011 - which I guess is when I activated it - does - what I do?
-
The slider side does not move when I put the mouse on it, I need to click below or on the arrow down. Once he left the first place, it moves. Also some applications like changing the city the weather button won't change.
The extension of the Yahoo! toolbar and the extension of Babylon have been reported to cause a problem like that. Disable or uninstall the modules.
* https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
-
SK2061: The wireless keyboard will not connect when the PC is turned on.
My problem is, when I start the PC, (HPK-15 500, 319NA), wireless (SK2061) keyboard, does not connect. I have to shut down the PC so he can connect (no restart, you must stop it). Have had the PC for 5 months and it has been published. Not changed the battery makes no difference.
The internet statement States I shoud push the blue button until the USB receiver flashes. This PC does not have an external USB receiver, I guess it's built in! The mouse works OK.
Hello @JimCar82,
I read your post on how the wireless keyboard will not connect when the computer is turned on, and I'd be happy to help you in this case!
Re-connect your keyboard to your desktop computer wireless, I advise you to follow the steps described in this document on the keyboard and wireless mouse troubleshooting. The USB receiver should be found at the back of the tower.
Please re-post with the results of your troubleshooting, and I look forward to your response!
Concerning
-
Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game.
Keyboard is fine. Is this a compatibility issue?---------------
-
There is in any case for the games on the computer without the CD of restoration, we have the Product Code but not the cd, we have misplaced it?
There is in any case for the games on the computer without the CD of restoration, we have the Product Code but not the cd, we have misplaced it?
borrow the CD, install the game and put in your code. If you don't know anyone with a CD, you will need to buy the game again. teengeek.freehostingcloud.com
-
Get the error code 0 x 80244001 when checking for Windows updates
Original title: error 0 x 80244001 windows
checking for windows up to date and had this error... any ideas?... tks
Hello
Were there any changes (hardware or software) to the computer before the show?
Perform the steps from the link below and see if it helps.
Hope this information helps.
-
original title: AiOSoftwareNPI
I'm having a problem with a software AiOSoftwareNPI problem (* .ms) the Setup program does not start when I start my computer.
I know it's a Windows Installer but I don't have a disc with this route. I even tried to reinstall the windows xp disk and it does not work, I still
get the same box when I shutdown and restart. The box allows me not to leave him continues to appear.
Thank you
Ms. C
After doing a Google search for AiOSoftwareNPI and followed by the reading of many different threads in various forums, I found that it is for drivers for an HP all-in-One printer.
You have an HP printer?
If so, the usual suggestion was to place your HP printer disk in your CD/DVD drive and restart. After reboot would be installed the necessary files and the pop - up would more appear at startup. I don't know if it will actually work because in all the discussions I've read, none of the original poster never responded by saying that it worked or not.
The next most common suggest was to download the latest driver for your HP printer to your version of Windows (including at the level of the ILO) and install it. Yet, not a single original poster has responded.
In fact, if you have an HP printer I suggest to visit the web site of HP support below the link to get the latest drivers and their installation. Visit the support for the correct installation method and if you need to remove the old driver first. You can also visit the communities of Support HP for assistance (a link for communities is also on the next page).
Support HP & drivers
http://WWW8.HP.com/us/en/support-drivers.htmlKind regards
-
We get the popup "USB device not recognized", when nothing is connected.
Original title: pop up message
I connected the USB cord to transfer information from your old phone to new phone via Itunes. Since that time that I keep getting a pop up message that says: device not recognized USB, the defective device, windows does not recognize. Nothing is plugged in, but message appears every few seconds. How can I get him to stop?
Hello
It seems that you are getting the popup "USB device not recognized", when nothing is connected.
What is the brand and model of your computer?
I suggest to uninstall the USB controllers and check if you get the context menu.
Method 1: Remove and reinstall all USB controllers
a. clickStart, type devmgmt.msc in the start search box and press ENTER.
b. expandBus USB controllers.
c. right-click on each device under theBus USB controllers node and then click Uninstall to remove them one at a time.
d. restart the computer, and windows will install the rear USB drivers.
If reinstalling USB host controllers fails to resolve the issue, go to method 2.
Method 2: See the procedure suggested by johnkelly46 responded on October 26, 2009, from this link.
If you have additional problems, please reply to this post and we will be happy to help you further.
-
I can't install the update to windows KB2680317 update for Microsoft Works 9. I get the error code 80070641, not 646. I tried Microsoft fixit and still no installation. Any ideas out there?
Hello
I would suggest trying the following methods and check if it helps.
Method 1:
Put the computer in a clean boot state, and then try to install the updates and check if it works.
How to troubleshoot a problem by performing a boot in Windows Vista or Windows 7:
http://support.Microsoft.com/kb/929135
Note: once you have completed troubleshooting, try the procedure described in step 7 to reset the computer to start as usual.
Method 2:
Try the steps in the Microsoft article and check below if the problem persists.
The problems with the installation of the updates:
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates
Method 3:
Try to download updates from the Microsoft Downloads Web site and check.
http://www.Microsoft.com/download/en/default.aspx
And also to try the steps in the following Microsoft article.
http://support.Microsoft.com/kb/818018/en-us
Hope the information is useful.
-
the Task Manager does not appear when right-clicking on the taskbar
The Task Manager does not appear when right-clicking on the taskbar
Hello
It appears when you press ctrl + shift + ESC? It seemed before? You are an administrator on this computer or is it a corporate system?
If he has suddenly ceased to be available, it's a good sign that you have picked up a virus or some kind of malware. Formal analysis in safe mode is your first line of defense.
Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org
-
Hi team,
We have EX and DX series telepresence as endpoints agent. But DX series phones are facing issue "the device associated with this extension or the dial number is not valid" when checking in the agent. EX works very well. Both phones are properly recorded in CUCM.
Can you please help me out here to solve the problem.
Thanks in advance,
Sisi.
In my case, we tried to do a few different modifications here and there on the DX650 but never managed to do work. Randomly, I was able to connect to the fineness with the DX650 as my camera, then my colleague could not connect to the Finesse with his 9971 as his camera - (keep in mind this was in an environment of model and it was just her and me as agents). Since I saw this strange behavior and doesn't do not sense, we rebooted the server CCX. Once she is back to the top, we were also well able to connect successfully and had not had the problem since.
Thank you
EK
Maybe you are looking for
-
Wwhatever why my computer said I was in safe mode for firefox. I tried all the options. I have read the recommendations and followed them, but the program remains in safe mode.
-
Wireless does not work - new installation Win7
I had to reinstall Win7 64 bit. Wireless does not illuminate. Giw610.exe driver of Lenovo is not accepted. Device Manager does not indicate that there is a wireless card. However, I can boot Ubuntu and it recognizes the wireless card and it works per
-
How to enlarge my text to normal screen instead of digests on the left of the screen size?
I hit the wrong button (s) on my keyboard and my screen & text shrinked to the mini size. How to restore it back to normal?
-
HelloIn my databases under Windows 2003 R2 10.2.0.4, there are total 5 different plans for one of my SQL and are listed in DBA_HIST_SQL_PLAN and also available in my AWR (can generate details using awrsqrpt.sql). This SQL is aged out shared pool and
-
How to install the plugin in Photoshop CS6 ROW
I have install OS 6, how ti install LINE plug. ?Marjan