NPiExec Error when trying to use LanDesk remote utility.
Im getting an"NPiExec Error" occurs when I run LanDesk from firefox window in ver 6.5.8 (Landesk is a remote control utility). At first it prompted to install 3 plugins, which I did (ENURCSetup.exe, ENUssh.exe and Upsftp.exe). Now it only returns with a small message box, titled: NPiExec Error - and in the box it says: The Operation Completed Successfully and has an OK button. I click OK - nothing happens. Of note: LanDesk through IE works fine but I want to use Firefox as my default browser.
It behaves different i IE than in Firefox. In IE it asks me to login again when I press the feedback link, but when I try to save my comment it get the same error.
Regards Pete
Similar Messages
-
"500 internal server error" when trying to use F4 help in the variable sele
Hi Experts,
I am getting "500 internal server error" when trying to use F4 help in the variable selection screen (in WAD).
How could this be resolved?
Quick reply would be very helpfull.
Thanks in advance !!It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
if this solution helps u then pls assign points -
Runtime error when trying to use Thinkvantage system updater
I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message:
"Runtime error!
Program:C:\Program Files\Lenovo\System Update\tvsu.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."
Can somebody please help me to get the Thinkvantage system updater working properly?
Thanks-George
This issue has since been resolved.Thanks-GI'm getting the same error. I tried reinstalling system updater but it didn't help.
-
Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.
I may have already resolved this issue buy removing the device from my computer and re-pairing it. It is currently working just fine.
-
I get the following error when trying to use the itunes store "your apple id has been disabled"
I get the following error when trying to use the itunes store "your apple id has been disabled". My account was disabled when someone else had been using it without my knowledge. I changed my apple id password and the apple id is still fine, but itunes has it disabled. I verified that the computer is authorized for this apple id. What to do now?
Welcome to the Apple Community.
Contact Apple through iTunes Store Support -
Keep getting VncViewer.class not found error when trying to use Windows 7
Greetings,
I have no issue accessing the OVM Manager 2.2 with OEL 5.4 x86_64 with the latest Java release from ULN. But when I use a Windows 7 client ( x86) with the Sun Java 6 Update 18 I get the following error when trying to access the Console of a VM Guest:
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:\Users\deverej
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class VncViewer.class not found.
java.lang.ClassNotFoundException: VncViewer.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://141.144.112.202:8888/OVS/faces/app/VncViewer/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: VncViewer.class
I am curious fi I should use only a specifc Java Engine with IE 7 or the latest Firefox browers.Same issue to with Windows XP SP3 x86 with Java Runtime Enviornment 1.5.0_15
J2SE Enviornment 5.0 Update 15
Java 6 Update 17 -
Why do I get an error when trying to use a link in the forum?
I just tried to use the link that Varad offered in Redirect certain users with login procedure and I got an error:
The specified thread [0] was not found.
I got the same thing when trying to use a similar link a couple of days ago. They sound like something I might benefit from, but I can' get to them.
The link URL looks like Re: logon username determines page that opens, how can I accomplish this?
Any ideas?
Thanks,
Gregory
P.S. I'm using Firefox 3.0.4Tony,
That's what I thought, but apparently it worked for Stefan. If you go to Stefan's post (first link above) do you also see the same link as I have attempted to copy? In Stefan's post, do you see the question mark in a diamond?
Thanks,
Gregory -
Program error when trying to use the clone stamp tool - PSE 8
When trying to use the CLONE STAMP TOOL, getting the following: "Could not use the clone stamp tool because of a program error".
Runnng PSE 8 on Windows XP/SP3. I purchased the key to have a full version, versus the 'trial version'. I also have Photo Essentials 3 installed and have used it without any problems.
Any suggestions?I figured it out - it was ID 10 T error...ugh.
Was following along in a book and blindly did what it said....was forgetting to hit the 'alt' key when first defining the area to clone....
However, it was kind of a confusing error message - something like "clone area not defined" would be more of a help.
thanks. -
List of values failure error when trying to use dynamic data values
Hi there,
I have a user who is experiencing problems when trying to use dynamic values in a report. Whenever he tries to insert dynamic parameters he gets the following error message:
Prompting failed with the following message: 'List of Values failure: Failed to get values. [Cause of error: Access is denied.] Error Source: prompt.dll Error Code: 0x8004380D
He even opened the sample report - prompting.rpt - that is included with CR and gets the same error.
We are using Crystal Reports XI Release 2 ver. 11.5.11.1470.
Any help would be appreciated.Please excuse my ignorance of the product. I've had this problem dropped in my lap and I know practically nothing about Crystal Reports. In doing some digging it appears to me as if the BusinessObjects Enterprise software may not be installed properly, if at all. In the programs menu under the BusinessObjects XI Release 2 folder I see a BusinessObjects Enterprise folder, but the only icon listed in that folder is Software Inventory Tool.
Is the BusinessObjects Enterprise software a separate install from Crystal Reports or is it bundled together? I talked with the tech that did the install and he said that all he had was the Crystal Reports install media. -
Hi all,
I am getting a Internal Server 500 error when trying to send an email using the SP.Utilities.Utility.SendEmail in my SharePoint Online App. It is worth noting that I am working from a custom .aspx page that does not inherit from the Masterpage, and using
AngularJS (thus the $http).
If I change the urlTemplate to use the hostWeb instead of the AppWeb, I get a 403 forbidden. Is there a library I need to include since I am using a custom.aspx page instead of the default.aspx page that comes when creating an App?
Any clues?
var appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
var urlTemplate = appweburl + "/_api/SP.Utilities.Utility.SendEmail"; $http({
contentType: 'application/json',
url: urlTemplate,
type: "POST",
data: JSON.stringify({
'properties': {
'__metadata': {
'type': 'SP.Utilities.EmailProperties'
'From': [email protected]',
'To': {
'results': ['[email protected]']
'Body': 'Hello',
'Subject': 'remember'
headers: {
"Accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
}).success(function(data, status, headers, config) {
$scope.data = data;
alert("Email Sent!");
}).error(function(data, status, headers, config) {
$scope.status = status;
alert("Email FAil!");
Personal Blog: http://thebitsthatbyte.comI've got it working in SharePoint Online/SharePoint App using the following. Note that I am using AngularJS:
function sendEmail() {
var appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
var urlTemplate = appweburl + "/_api/SP.Utilities.Utility.SendEmail";
$http({
contentType: 'application/json',
url: urlTemplate,
method: "POST",
data: {
'properties': {
'__metadata': {
'type': 'SP.Utilities.EmailProperties'
'From': '[email protected]',
'To': {
'results': ['[email protected]']
'Body': 'Good Day from the App. Dont reply if this was received.',
'Subject': 'App says hello and is awaiting your review'
headers: {
"Accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
}).success(function(data, status, headers, config) {
console.log("Sent!");
$location.path('/');
}).error(function(data, status, headers, config) {
console.log("fail");
function getQueryStringParameter(param) {
var params = document.URL.split("?")[1].split("&");
var strParams = "";
for (var i = 0; i < params.length; i = i + 1) {
var singleParam = params[i].split("=");
if (singleParam[0] == param) {
return singleParam[1];
Personal Blog: http://thebitsthatbyte.com -
Pop-up errors when trying to use FaceBook on Sarafi 4 on Windows
Hi there.
When trying to use Safari on Windows, I get an annoying pop-up whenever I try to use chat on FaceBook and it says something about MIME type not recognised and pluggin errors. I have installed the latest flash but it keeps happening - is there another plug-in I need to reinstall?Here is a link to the info on how to access the 4200 set up pages and how to do Port Forwarding with it
http://portforward.com/english/routers/port_forwarding/Siemens/4200/iChat.htm
Use the Access info and then see if you have it doing UPnP to open the ports.
If it is then the Port Forwarding does not need setting.
Next, if you did originally set it to do Port Forwarding this should have pointed to an IP (The one your computer has/had)
Check the Port Forward that is set is pointing to the IP the computer has now by Looking in System Preferences > Network
QUite a way done the log your end suddenly switches the port it sends the SIP part of the invite on
INVITE sip:user@rip:61042 SIP/2.0
Via: SIP/2.0/UDP sip:60442;branch=z9hG4bK672a7283709f480e
Max-Forwards: 70
To: "u0" <sip:user@rip:61042>
From: "0" <sip:user@lip:16402>;tag=2100237526
Call-ID: 5c6e32e2-2788-11dd-904a-8c2872d74012@lip
CSeq: 1 INVITE
Contact: <sip:user@sip:60442>;isfocus
User-Agent: Viceroy 1.3
Content-Type: application/sdp
Content-Length: 744
This is not an iChat port and it messes up where iChat then says to send the Video and Audio data.
The log from the other end implies the ports are not even open.
10:42 PM Wednesday; July 9, 2008 -
RMI Error when trying to connect to remote server
We are getting an RMI error (below) when trying to connect to a remote weblogic 9 server with mission control.
We are running a portal application on the app server. If we connect using mission control before the app starts then mission control connects successfully.
If we wait until the portal application is running then we get the following error when we try to connect:
Could not open Management Console for UAT Live (1).
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.vignette.monitor.framework.VgnMBeanInfo (no security manager: RMI class loader disabled)
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.vignette.monitor.framework.VgnMBeanInfo (no security manager: RMI class loader disabled)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl_Stub.getMBeanInfo(Unknown Source)
at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getMBeanInfo(RMIConnector.java:1031)
at com.jrockit.console.rjmx.RJMXConnection.getMBeanInfos(RJMXConnection.java:262)
at com.jrockit.console.rjmx.RJMXConnection.getMBeanInfos(RJMXConnection.java:297)
at com.jrockit.console.rjmx.RJMXConnectorModel.initializeAttributeInfos(RJMXConnectorModel.java:294)
at com.jrockit.console.rjmx.RJMXConnectorModel.<init>(RJMXConnectorModel.java:99)
at com.jrockit.console.rjmx.RJMXConnectorModel.<init>(RJMXConnectorModel.java:113)
at com.jrockit.mc.console.ui.actions.StartConsole$1.preConnect(StartConsole.java:36)
at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:73)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassNotFoundException: com.vignette.monitor.framework.VgnMBeanInfo (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:290)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:139)
... 11 more
thanksAs poorem suggested, I would check that the time is the same on both the identity and vcac appliances. It has been a while since I posted this question but I believe that did get me past that specfic error. I changed the timezone on each and made sure the times were correct and the same.
-
OPM gives error when trying to use XSLT stylesheet
Hi,
I am trying use a simple XSLT stylesheet into an OPM project and see the result in the web determination screen.But when ever i am clicking on the link that is created when i compile the project with the XSL file, i am getting the error
"An error occurred trying to process your request.
This error has been logged and is available in the application logs.
For support and assistance please contact [email protected]"
I have kept the XSL file inside the "templates" folder in "include" folder.
I am using a very simple one i.e
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<xsl:output method="html"/>
</xsl:stylesheet>
How do I find what the error is and what do I need to do to solve this?
Thanks and regards
SagnikYes, now that above issue is solved and now when I click on the "HTML" or "PDF" link, I think some file is being generated but not properly.
For HTML, I am getting blank page error and for PDF I am getting "file is damaged" error.May be, the xslt stylesheet that I am using is wrong, but I am absolutley stuck with this. I have tried many different formats of xlst stylesheets, but none seem to be working.
pasting the two xslts below:
*<?xml version="1.0" encoding="UTF-8" ?>*
*<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">*
*<xsl:output method="html"/>*
*<xsl:template match="/">*
*<xsl:apply-templates/>*
*</xsl:template>*
*<html>*
*<body>*
*<xsl:template match="session">*
*<session><xsl:apply-templates/></session>*
*</xsl:template>*
*<xsl:template match="entity name">*
*<entity-name align="center"><xsl:apply-templates/></entity-name>*
*</xsl:template>*
*<xsl:template match="instance label">*
*<instance-label align="center"><xsl:apply-templates/></instance-label>*
*</xsl:template>*
*<xsl:template match="attribute id">*
*<attribute-id><xsl:apply-templates/></attribute-id>*
*</xsl:template>*
*<xsl:template match="date-val">*
*<date-val><xsl:apply-templates/></date-val>*
*</xsl:template>*
*<xsl:template match="text-val">*
*<text-val><xsl:apply-templates/></text-val>*
*</xsl:template>*
*<xsl:template match="unknown-val">*
*<unknown-val><xsl:apply-templates/></unknown-val>*
*</html>*
*</body>*
*</xsl:template>*
*</xsl:stylesheet>*
and
*<?xml version="1.0" encoding="UTF-8" ?>*
*<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">*
*<xsl:output method="html"/>*
*<xsl:template match="/">*
*<html>*
*<body>*
*<xsl:template match="session">*
*<session><xsl:apply-templates/></session>*
*</xsl:template>*
*<enityName>*
*<xsl:for-each select="entity name">*
*<instancelabel>*
*<xsl:for-each select="instance label">*
*<attribute-id>*
*<xsl:for-each select="attribute id">*
*<text-val>*
*<xsl:value-of select="text-val"/>*
*</text-val>*
*<date-val>*
*<xsl:value-of select="date-val"/>*
*</date-val>*
*</xsl:for-each>*
*</attribute-id>*
*</xsl:for-each>*
*</instancelabel>*
*</xsl:for-each>*
*</enityName>*
*</body>*
*</html>*
*</xsl:template>*
*</xsl:stylesheet>*
also pasting the source xml file I am trying to convert.
- <session xmlns="http://oracle.com/determinations/engine/relational/sessiondata/10.0" sessionDateTime="2010-12-17T11:34:08" locale="en-US" rulebase="Barclay_2910" rulebase-build="2010-12-17 06:04:02Z">
- <entity name="global">
- <instance label="global">
- <attribute id="S_Other_Type_of_Business1">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Nature_of_Business">
*<unknown-val />*
*</attribute>*
- <attribute id="N_Desired_Review_Period">
*<unknown-val />*
*</attribute>*
- <attribute id="S_I_Confirm">
*<unknown-val />*
*</attribute>*
- <attribute id="S_new_investors_ID_Vd">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Address">
*<unknown-val />*
*</attribute>*
- <attribute id="N_Total_Amount_of_Capital_Invested">
*<unknown-val />*
*</attribute>*
- <attribute id="S_State_Business_use_Trading_name1">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Correspondence_Postcode">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Country">
*<unknown-val />*
*</attribute>*
- <attribute id="S_BTA_Code1">
*<text-val>Central Government</text-val>*
*</attribute>*
- <attribute id="S_Correspondence_Address">
*<unknown-val />*
*</attribute>*
- <attribute id="N_Total_Amount_Capital_Invested_non_Corporate">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Business_Organisation">
*<unknown-val />*
*</attribute>*
- <attribute id="S_State_Business_use_Trading_name">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Business_Organisation1">
*<text-val>1</text-val>*
*</attribute>*
- <attribute id="S_Date_Established1">
*<date-val>2010-01-01</date-val>*
*</attribute>*
- <attribute id="S_Telephone_Number">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Date_of_Incorporation1">
*<uncertain-val />*
*</attribute>*
- <attribute id="S_Date_of_Incorporation">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Postcode">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Start_Up_Type_Non_Corporate">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Previous_registered_names">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Other_Investments_non_corporate">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Registered_Number">
*<unknown-val />*
*</attribute>*
- <attribute id="b8@Properties_PropBkACC_xsrc">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Registered_Number1">
*<text-val />*
*</attribute>*
- <attribute id="b6@Properties_PropBkACC_xsrc">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Business_use_Trading_name1">
*<text-val>Yes</text-val>*
*</attribute>*
- <attribute id="S_Registered_address_Main_Trading">
*<unknown-val />*
*</attribute>*
- <attribute id="S_select_the_high_risk_industry_operated1">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Start_Up_Type">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Priority1">
*<text-val>Standard</text-val>*
*</attribute>*
- <attribute id="S_Correspondence_address_same_Main_Trading">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Additional_Source_Capital">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Previous_Sort_Code">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Source_of_funds">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Choose_Start_Up1">
*<text-val>Start Up/New Entity/Businesses</text-val>*
*</attribute>*
- <attribute id="S_Registered_Country">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Fax_Number">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Contributer">
*<unknown-val />*
*</attribute>*
- <attribute id="S_business_organisations_annual_turnover1">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Previous_Account_number_Roll_Number">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Previous_registered_names1">
*<text-val />*
*</attribute>*
- <attribute id="b9@Rules_startuprule_doc">
*<unknown-val />*
*</attribute>*
- <attribute id="S_CIS_Record1">
*<text-val>Yes</text-val>*
*</attribute>*
- <attribute id="S_Employees_Members1">
*<text-val>1-9</text-val>*
*</attribute>*
- <attribute id="S_shareholders_Contributors">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Business_operate_high_risk_industry">
*<unknown-val />*
*</attribute>*
- <attribute id="b7@Properties_PropBkACC_xsrc">
*<unknown-val />*
*</attribute>*
- <attribute id="S_select_the_high_risk_industry_operated">
*<unknown-val />*
*</attribute>*
- <attribute id="S_business_organisations_annual_turnover">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Registered_Postcode">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Nature_of_Business1">
*<text-val />*
*</attribute>*
- <attribute id="S_Country_of_Incorporation1">
*<text-val>1</text-val>*
*</attribute>*
- <attribute id="N_issued_share_capital_company">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Correspondence_Country">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Type_of_Business1">
*<text-val>Sole Trader</text-val>*
*</attribute>*
- <attribute id="S_Web_Address">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Registration_Number1">
*<text-val />*
*</attribute>*
- <attribute id="S_Business_operate_high_risk_industry1">
*<text-val>Yes</text-val>*
*</attribute>*
- <attribute id="S_Additional_Source_Capital1">
*<unknown-val />*
*</attribute>*
- <attribute id="Source_of_funds_non_Corporate">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Country_of_Incorporation">
*<unknown-val />*
*</attribute>*
- <attribute id="S_if_registered_address">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Date_Established">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Registration_Number">
*<unknown-val />*
*</attribute>*
- <attribute id="S_ID_VD">
*<unknown-val />*
*</attribute>*
- <attribute id="S_I_confirm_form_287">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Other_Investments">
*<unknown-val />*
*</attribute>*
- <attribute id="S_I_Confirm1">
*<text-val>Yes</text-val>*
*</attribute>*
- <attribute id="S_Date_Form_Lodged">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Registered_Address">
*<unknown-val />*
*</attribute>*
- <attribute id="S_Other_Type_of_Business">
*<unknown-val />*
*</attribute>*
- <attribute id="N_start_up_capital_business">
*<unknown-val />*
*</attribute>*
- <attribute id="N_Approx_transferring_balance">
*<unknown-val />*
*</attribute>*
*</instance>*
*</entity>*
*</session>*
Edited by: Sagnik on Dec 21, 2010 12:06 AM -
Error when trying to use ImageIcon
Hi,
I am trying to use an ImageIcon to store an icon for plugins so that they can customize their menu and toolbar entries. I use a generic class, PaletteClass, to design all the plugins, and then extend PaletteClass to create individual plugins.
PaletteClass:
public class PaletteClass implements ItemListener{
* PaletteClass
* Superclass for the palettes in iKalk
* @author Nathan Jarus
* @version 0.1
JFrame frame = new JFrame();//Window
GridBagLayout layout = new GridBagLayout();
GridBagConstraints constraints = new GridBagConstraints();
JPanel main = new JPanel(layout);
JToggleButton cmdTop = new JToggleButton("Stick to Top");
//iKalk interface variables
static String description = "Unnamed Plugin"; //Name of plugin
ImageIcon icon = new ImageIcon(); //icon of plugin
static boolean state = true; //is it visible?
//static JToggleButton button = new JToggleButton(description, icon, state);
static JToggleButton button;
//static JToggleButton button = new JToggleButton(description, state);
JCheckBoxMenuItem menu = new JCheckBoxMenuItem(description, icon, state);
//boolean caret = false;//Used in determining when to clear the text box
//boolean clear = false;
//double tmp = 0;//Used in calculations
//char op = ' ';//Used in calculations
//Constructor
PaletteClass(iKalk ikalk){
setIcon("/images/generic.gif",ikalk,this);
menu.addItemListener(this);
//button.addItemListener(this);
frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
//frame.setLayout(new BorderLayout());
try {
UIManager.setLookAndFeel(iKalk.getLF());
} catch (UnsupportedLookAndFeelException e) {
JOptionPane.showMessageDialog(null,"How on earth did you get this message? Check for a virus. /n/nYour JRE has changed in the milliseconds that passed between the original loading of the program and this window loading!", "A message you should not be seeing", JOptionPane.ERROR_MESSAGE);
constraints.fill = GridBagConstraints.BOTH;
constraints.anchor = GridBagConstraints.CENTER;
//Stick to Top button
cmdTop.addItemListener(this);
addComp(main, cmdTop, layout, constraints, 0, 0, 1, 1, 0, 100);
//frame.add(main, BorderLayout.NORTH);
//frame.setVisible(true);
init();
//updateGFX();
//button = new JToggleButton(description, icon, state);
//setIcon("/images/generic.gif",ikalk,this);
public void init(){
frame.setLayout(new BorderLayout());
frame.add(main, BorderLayout.NORTH);
//Item listener
public void itemStateChanged(ItemEvent ie) {
if(ie.getSource().equals(cmdTop)){
if (frame.isAlwaysOnTop()){
frame.setAlwaysOnTop(false);
else {
frame.setAlwaysOnTop(true);
else if(ie.getSource().equals(button)){
if(button.isSelected()){
setVisible(true);
else{
setVisible(false);
else if(ie.getSource().equals(menu)){
if(menu.isSelected()){
setVisible(true);
else{
setVisible(false);
//Update the L&F
public void updateGFX(){
setVisible(false);
SwingUtilities.updateComponentTreeUI(frame);
SwingUtilities.updateComponentTreeUI(main);
setVisible(true);
//Decide whether or not the window is onscreen
public boolean isShowing(){
return frame.isVisible();
public void setVisible(boolean v){
frame.setVisible(v);
state = isShowing();
public void setVisible(){
frame.setVisible(true);
state = isShowing();
/*Add a component to the gridbag layout
*Args:
*JPanel to the JPanel to add the item to
*Component what what to add
*GridBagLayout layout the layout to add it to
*GridBagConstraints constraints the constraints to modify
*int row the row to add it to
*int column the column to add it to
*int numRows the number of rows the item crosses
*int numCols the number of columns the item crosses
*int weightX the x-weight of the item
*int weightY the y-weight of the item
public void addComp(JPanel to, Component what, GridBagLayout layout, GridBagConstraints constraints, int row, int column, int numRows, int numCols, int weightX, int weightY){
//Set the constraint parameters
constraints.gridx = column;
constraints.gridy = row;
constraints.gridwidth = numCols;
constraints.gridheight = numRows;
constraints.weightx = weightX;
constraints.weighty = weightY;
//Set these constraints in the layout
layout.setConstraints(what, constraints);
//Add the component
to.add(what);
public void setIcon(String path, iKalk ikalk, PaletteClass parent){
parent.icon = new ImageIcon(ikalk.getClass().getResource(path));
}This is one of the classes that I have trouble with:
NumberPad:
public class NumberPad extends PaletteClass implements ActionListener{
//Set up the objects so that I can access them from another method
public NumberPad(iKalk ikalk){
super(ikalk);
//Set the description
description = "Number Pad";
//setIcon("/images/NumberPad.gif", ikalk, this);
button = new JToggleButton(description, icon, state);
//Set up the frame
try {
UIManager.setLookAndFeel(iKalk.getLF());
} catch (UnsupportedLookAndFeelException e) {
//JOptionPane.showMessageDialog(null,"How on earth did you get this message? Check for a virus. /n/nYour JRE has changed in the milliseconds that passed between the original loading of the program and this window loading!", "A message you should not be seeing", JOptionPane.ERROR_MESSAGE);
frame.setSize(155,160);
frame.setLocation(500,500);
frame.setTitle(description);
updateGFX();
//Set up the number entry pad
JPanel panNumbers = new JPanel(new GridLayout(4,3));
JButton cmd0 = new JButton("0");
JButton cmd1 = new JButton("1");
JButton cmd2 = new JButton("2");
JButton cmd3 = new JButton("3");
JButton cmd4 = new JButton("4");
JButton cmd5 = new JButton("5");
JButton cmd6 = new JButton("6");
JButton cmd7 = new JButton("7");
JButton cmd8 = new JButton("8");
JButton cmd9 = new JButton("9");
JButton cmdDec = new JButton(".");
JButton cmdPM = new JButton("+/-");
cmd0.addActionListener(this);
cmd1.addActionListener(this);
cmd2.addActionListener(this);
cmd3.addActionListener(this);
cmd4.addActionListener(this);
cmd5.addActionListener(this);
cmd6.addActionListener(this);
cmd7.addActionListener(this);
cmd8.addActionListener(this);
cmd9.addActionListener(this);
cmdDec.addActionListener(this);
cmdPM.addActionListener(this);
panNumbers.add(cmd7);
panNumbers.add(cmd8);
panNumbers.add(cmd9);
panNumbers.add(cmd4);
panNumbers.add(cmd5);
panNumbers.add(cmd6);
panNumbers.add(cmd1);
panNumbers.add(cmd2);
panNumbers.add(cmd3);
panNumbers.add(cmd0);
panNumbers.add(cmdDec);
panNumbers.add(cmdPM);
panNumbers.setVisible(true);
//Final adding and init
super.addComp(main, panNumbers, layout, constraints, 1, 0, 4, 1, 0, 0);
//super.setVisible();
setIcon("/images/NumberPad.gif", ikalk, this);
public void actionPerformed(ActionEvent ae) {
if(ae.getActionCommand().equals("1")){
Functions.addOne();
else if(ae.getActionCommand().equals("2")){
Functions.addTwo();
else if(ae.getActionCommand().equals("3")){
Functions.addThree();
else if(ae.getActionCommand().equals("4")){
Functions.addFour();
else if(ae.getActionCommand().equals("5")){
Functions.addFive();
else if(ae.getActionCommand().equals("6")){
Functions.addSix();
else if(ae.getActionCommand().equals("7")){
Functions.addSeven();
else if(ae.getActionCommand().equals("8")){
Functions.addEight();
else if(ae.getActionCommand().equals("9")){
Functions.addNine();
else if(ae.getActionCommand().equals("0")){
Functions.addZero();
else if(ae.getActionCommand().equals(".")){
Functions.addDec();
else if(ae.getActionCommand().equals("+/-")){
Functions.PlusMins();
/*public void init(){
public void main(String [] args){
}This is the code I use to load the plugins:
void addPlugin(PaletteClass plugin){
//pluginsVector.addElement(plugin);
//plugin.setVisible();
//toolMain.add(PaletteClass.button);
pluginsVector.addElement(plugin);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
toolMain.add(PaletteClass.button);
}When I load this code, I get the following error (in Eclipse SDK):
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at iKalk.loadPlugin(iKalk.java:587)
at iKalk.loadPlugins(iKalk.java:578)
at iKalk.<init>(iKalk.java:466)
at iKalk$4.run(iKalk.java:563)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
Caused by: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at PaletteClass.setIcon(PaletteClass.java:172)
at NumberPad.<init>(NumberPad.java:82)
... 15 more
If anyone knows what I am doing wrong, I'd like to know. I've tried several ways to fix it (as you can probably tell from the commented out code), but none of them worked.
Sorry if my code isn't the cleanest; it's still in development =]
PS: is it just me or does the code button in the post dialog still not work correctly?
Thanks,
LinuxMercedesSorry for all the code. Here's a truncated version:
PaletteClass:
public class PaletteClass implements ItemListener{
JFrame frame = new JFrame();//Window
GridBagLayout layout = new GridBagLayout();
GridBagConstraints constraints = new GridBagConstraints();
JPanel main = new JPanel(layout);
JToggleButton cmdTop = new JToggleButton("Stick to Top");
static String description = "Unnamed Plugin"; //Name of plugin
ImageIcon icon = new ImageIcon(); //icon of plugin
static boolean state = true; //is it visible?
static JToggleButton button;
JCheckBoxMenuItem menu = new JCheckBoxMenuItem(description, icon, state);
PaletteClass(iKalk ikalk){
setIcon("/images/generic.gif",ikalk,this);
init();
public void init(){
frame.setLayout(new BorderLayout());
frame.add(main, BorderLayout.NORTH);
public void setIcon(String path, iKalk ikalk, PaletteClass parent){
parent.icon = new ImageIcon(ikalk.getClass().getResource(path));
}NumberPad:
public class NumberPad extends PaletteClass implements ActionListener{
public NumberPad(iKalk ikalk){
super(ikalk);
//Set the description
description = "Number Pad";
button = new JToggleButton(description, icon, state);
setIcon("/images/NumberPad.gif", ikalk, this);
}Code I use to load Plugins:
void addPlugin(PaletteClass plugin){
pluginsVector.addElement(plugin);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
toolMain.add(PaletteClass.button);
}Oh yeah, and please don't go using this code in your projects without asking =]
Thanks (and my apologies again),
LinuxMercedes -
Error when trying to use LogMiner with Oracle 8.1.6.0.0
Hi everybody,
I'm trying to use LogMiner with Oracle 8.1.6.0.0. When I execute the following code with SQL*Plus, I have an error.
BEGIN
DBMS_LOGMNR.START_LOGMNR
(options =>
dbms_logmnr.dict_from_online_catalog);
END;
The error displayed by SQL*Plus is:
PLS-00302: 'DICT_FROM_ONLINE_CATALOG' must be declared.
Please, how to solve this problem?
Thanks you in advance for your answers.user639304 wrote:
Hi everybody,
I'm trying to use LogMiner with Oracle 8.1.6.0.0. When I execute the following code with SQL*Plus, I have an error.
BEGIN
DBMS_LOGMNR.START_LOGMNR
(options =>
dbms_logmnr.dict_from_online_catalog);
END;
The error displayed by SQL*Plus is:
PLS-00302: 'DICT_FROM_ONLINE_CATALOG' must be declared.
Please, how to solve this problem?
Thanks you in advance for your answers.Looking at the 8.1.7 doc set (the oldest available on tahiti) I get no hits when searching for 'dict_from_online_catalog'. Searching the 9.2 doc set turns up a reference. Looks like you are trying to use an option that isn't available in your version of Oracle.
Maybe you are looking for
-
How do you put websites in alphabetical order on pages for iPad?
Trying to find a way to put websites into alphabetical order on pages for iPad. Any ideas?
-
Adobe XI (11.0.7) hang with pdf from our webapp
Hi to all, our customers (internal and externals) upgrade to Adobe XI (11.0.7) and they are not able to view the documents from our web app. We try disabling "Enable protected mode at startup" but nothing happen. They are using Windows 7 x64, IE 8.0.
-
How to modify the email remittance template
Hello, We have a requirement on modifying the email remittance template. We are looking to add a new fields in the remittance detail section. How do we do this?. Any inputs are highly appreciated. Thanks, Sushma
-
COMMIT failed in RSORAADM, object JOB, function CREATE, return code 4
Dear Gurus, When I am trying to schedule a backup through DB13, I am getting an error as "COMMIT failed in RSORAADM, object JOB, function CREATE, return code 4" Can any body tell me what is the error about and how to resolve it. Thanks Best Regards D
-
TP 60 Access connection - Preferred AP MAC address disabled permanently
I have at home WiFi Router and WiFi repeater. They both are visible, but Router has weak signal, Repeater strong signal. TP not like to connect to Repeater. Problem, that preferred AP MAC address field is always disabled in Connection wizard (profile