After 2nd time running a method my app window freezes 7 seocnds,error msg-
Hello folks,
first you will surely say is that my server is offline or something with the network is wrong but it is not ;-)
thats the code:
Please read my words after the pasted code at the bottom of the page!
import java.awt.Color;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import javax.naming.directory.*;
import javax.naming.ldap.LdapName;
import javax.naming.ldap.Rdn;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.*;
import java.io.UnsupportedEncodingException;
import java.util.*;
import javax.swing.BorderFactory;
public class MainWindow extends JFrame implements ActionListener
static final long serialVersionUID = 1L;
private JLabel newPasswordLB = new JLabel("Neues Passwort");
private JLabel newPasswordRepeatLB = new JLabel("Neues Passwort wiederholen");
private JLabel errorLB = new JLabel("Fehlerstatus:");
private JLabel benutzerNameLB = new JLabel("Benutzername ausw�hlen:");
private JPasswordField neuesKennwortPF = new JPasswordField();
private JPasswordField neuesKennwortWdhPF = new JPasswordField(10);
//private JLabel fehlerNachrichtLB = new JLabel();
private JTextField fehlerNachrichtLB = new JTextField();
private JButton pwBT = new JButton("Setze neues Passwort");
private DefaultListModel listModel = new DefaultListModel();
private JList liste = new JList(listModel);
private JScrollPane benutzerListeSP = new JScrollPane(liste);
private JCheckBox kennwortVergebenCB = new JCheckBox("Benutzer vergibt Kennwort bei Neuanmeldung selbst");
JFrame frame;
String bla;
String neuesKennwortTemp;
String benutzername;
String klassengruppe; // OU=Klassen
String lehrergruppe; // OU=Lehrer
String edvlehrername; // z.B. "verenabit"
String schulname; // z.B. OU=ASR
String BaseDN=",DC=bodensee,DC=de";
String adminPassword = "test";
String adminUser = "cn=administrator,cn=users,dc=bodensee,dc=de";
public MainWindow()
super("LDAP Modification Tool");
setLayout(null);
add(newPasswordLB);
add(newPasswordRepeatLB);
add(neuesKennwortWdhPF);
add(neuesKennwortPF);
add(pwBT);
add(errorLB);
add(fehlerNachrichtLB);
add(benutzerListeSP);
add(benutzerNameLB);
add(kennwortVergebenCB);
kennwortVergebenCB.setBounds(16,120,350,25);
benutzerNameLB.setBounds(430,25,160,25);
fehlerNachrichtLB.setOpaque(true);
fehlerNachrichtLB.setBackground(new Color(255,255,255));
fehlerNachrichtLB.setBorder(BorderFactory.createLineBorder(new Color(155,155,155)));
neuesKennwortPF.setBounds(230,50,150,25);
neuesKennwortWdhPF.setBounds(230,80,150,25);
newPasswordLB.setBounds(20,50,130,25);
newPasswordRepeatLB.setBounds(20,80,190,25);
pwBT.setBounds(230,170,150,40);
errorLB.setBounds(20,385,100,25);
fehlerNachrichtLB.setBounds(110,385,270,25);
benutzerListeSP.setBounds(430,50,160,360);
kennwortVergebenCB.setHorizontalTextPosition(SwingConstants.LEADING);
neuesKennwortPF.setMargin(new Insets(1, 3, 1, 1));
neuesKennwortWdhPF.setMargin(new Insets(1, 3, 1, 1));
pwBT.setMargin(new Insets(0,0,0,0));
fehlerNachrichtLB.setForeground(new Color(100,120,255));
pwBT.addActionListener(this);
liste.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
liste.setVisibleRowCount(1);
listModel.addElement("verena bit");
listModel.addElement("verena bit");
listModel.addElement("verena bit");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(620,460);
this.setLocationRelativeTo(null);
this.setResizable(false);
this.setVisible(true);
} /*--------------------------------------- Konstruktor -------------------------------------------*/
public String schulenameSuchen()
return "";
public void edvlehrernameEinlesen()
edvlehrername = System.getProperty("user.name");
public void benutzernameEinlesen()
int index = liste.getSelectedIndex();
benutzername = (String) liste.getModel().getElementAt(index);
benutzername = "CN=" + benutzername + ",OU=Lehrer,OU=ASR";
public void neuesKennwortEinlesen()
neuesKennwortTemp = String.valueOf(neuesKennwortPF.getPassword());
public void actionPerformed(ActionEvent e)
char[] neuesKennwortArray = neuesKennwortPF.getPassword();
char[] neuesKennwortWdhArray = neuesKennwortWdhPF.getPassword();
if (e.getSource().equals(pwBT))
if(liste.isSelectionEmpty())
JOptionPane.showMessageDialog(frame,"Sie m�ssen einen Benutzer ausw�hlen!");
return;
else if(!Arrays.equals(neuesKennwortArray,neuesKennwortWdhArray))
JOptionPane.showMessageDialog(frame,"Die eingegebenen Kennw�rter sind nicht gleich!");
return;
else if(neuesKennwortArray.length == 0 || neuesKennwortWdhArray.length == 0)
JOptionPane.showMessageDialog(frame,"Es wurde kein Kennwort eingegeben!");
return;
benutzernameEinlesen(); // F�r diesen Benutzer wird das Kennwort ge�ndert
neuesKennwortEinlesen(); // Dieses Kennwort bekommt der obige Benutzer neu
edvlehrernameEinlesen(); // Anhand dieses EDV-Lehrers wird die Schule ermittelt wo sich der EDV-Lehrer
// befindet. Dieser schulname bzw. z.B. OU="ASR" wird als Einstieg genommen, wenn sich der EDV-Lehrer
// mit dem W2K Server befindet. Somit gibt es nur noch das Unterverzeichnis
// Eine Hashtable speichert Schl�ssel/Wert Paare
Hashtable env = new Hashtable();
String keystore = "C:/Programme/Java/jre1.6.0_01/lib/security/ZertifikatBerlin";
System.setProperty("javax.net.ssl.trustStore",keystore);
// Die Methode put der Klasse Hashtable weist die rechten Werte (Stings hier) einen Schl�ssel zu (verschiedene Kontexte hier)
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.REFERRAL,"follow");
env.put(Context.PROVIDER_URL,"ldaps://rhein:636");
env.put(Context.SECURITY_PROTOCOL,"SSL");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, adminUser);
env.put(Context.SECURITY_CREDENTIALS,adminPassword);
try
DirContext ctx = new InitialDirContext(env);
String base = "dc=bodensee,dc=de";
String filter = "(sAMAccountName=" + edvlehrername + ")";
String[] attribut = {"distinguishedName"};
SearchControls kontroller = new SearchControls();
kontroller.setSearchScope(SearchControls.SUBTREE_SCOPE);
kontroller.setReturningAttributes(attribut);
kontroller.setReturningObjFlag(true);
NamingEnumeration enm = ctx.search(base,filter,kontroller);
String DNkette="";
while(enm.hasMore())
SearchResult resultat = (SearchResult) enm.next();
System.out.println(resultat.getNameInNamespace());
DNkette = resultat.getNameInNamespace();
// CN=verena bit,OU=Lehrer,OU=ASR ,DC=bodensee,DC=de
// index=4 ,index=3 ,index=2,index=1 ,incex=0
LdapName FullDN = new LdapName(DNkette);
for( int i = 0 ; i < FullDN.size() ; i++ )
System.out.println(FullDN.getRdn(i));
ctx.close();
// Wert f�r das Kenntwort in der Activev Directory erzeugen
String neuesKennwort = "mother"; //neuKennwortPF.getText();
String neuesKennwortAD = "\"" + neuesKennwort + "\"";
byte[] newpassword = neuesKennwortAD.getBytes("UTF-16LE");
// The username to be used for the password change
ModificationItem mods[] = new ModificationItem[1];
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,new BasicAttribute("unicodePwd", newpassword));
ctx.modifyAttributes(fehlerNachrichtLB.getText(),mods); */
catch (Exception er)
fehlerNachrichtLB.setText(er.toString());
} // if Ende
} // actionPerformed Ende
public static void main(String args[]) throws NamingException, UnsupportedEncodingException
try
JFrame.setDefaultLookAndFeelDecorated(true);
catch (Exception e)
e.printStackTrace();
MainWindow Fenster = new MainWindow ();
} When I run the application the first time enter twice a password and select a user etc.. to fullfill the if clauses and press the button all is working fine: I get this result:
CN=verena bit,OU=Lehrer,OU=ASR,DC=bodensee,DC=de
DC=de
DC=bodensee
OU=ASR
OU=Lehrer
CN=verena bitthe first line with CN=verena bit etc... I get because of this line:
System.out.println(resultat.getNameInNamespace());the next 5 Relative DN`s i get because of this code:
// CN=verena bit,OU=Lehrer,OU=ASR ,DC=bodensee,DC=de
// index=4 ,index=3 ,index=2,index=1 ,incex=0
LdapName FullDN = new LdapName(DNkette);
for( int i = 0 ; i < FullDN.size() ; i++ )
System.out.println(FullDN.getRdn(i));
}thats all fine, BUT when i hit the button in my application[b] the 2nd time and the above code gets executed my whole app freezes for 7 seconds and i get the error:
javax.naming.ServiceUnavailableException: rhein:636; socket closedand when i click my button the 3rd time the app runs fine again and the fourth time i click my button the app throws me again the error and freezes ??
Can someone help?
another mysterious thing is when i dont use this line of code:
env.put(Context.REFERRAL,"follow");
I get a PartialResultException, but why ?
A really odd thing is also that sometimes the user attribute like "cn" which i do retrieve gets not displayed in my JList when i start the application, but when i close the app and start it again it the JList contains the cn values or not its like a random factor. ???
Someone told me that the garbage collector is not releasing all memory i used in my application so i have to release the resource explicit ??!! is that right? And how do i have to do this? I have never ever read something about that!
Similar Messages
-
Any help? Genius bar was stumped. I reinstalled mt. lion, but it still persists. Thanks.
Your question is very confusing ... especially "after 2nd time accessing it using right click on desktop".
"Using right click" -- why would you do that? What are you right clicking?
"On desktop" -- does that mean on a vacant area of your desktop?
Anyway, a quick way to System Preferences is to simply click normally on the System Preferences icon in the dock, which looks like this: -
My bridge pause all the time. I have to wait 30 seconds after selecting a picture or click the right button of the mouse. I have installed a new windows 8.1, and a fresh CD6. But still these problems in Bridge. No problems in Photoshop. What to do
What is the problem:
When I choose a picture in Bridge I have to wait 20 till 30 seconds (sometimes more).
When I choose with right click of the mouse. I have to wait the same time.
When I choose the menu. Also
After opening the picture(s) in Camera RAW. There are no problems
In Photoshop there are also no problems. Everything works all right.
Only Bridge have these problems. But I can’t work with it.
My Computer
HP Z820 with double CPU Type Mobile Intel Celeron M, 2000 MHz
Nvidia Geforce GTX 980 card
System memory 64 Gb
Windows 8.1 Home Edition
All software is up to date, incl BIOS
DirectX 4.09.00.0904 (DirectX 9.0c)
Lots of space on my disc drives
Software: Adobe Master Collection. But only installed Photoshop and Adobe Acrobat
Installation done with my original DVD of Adobe. All software updated
But still problems
Software installed again (including Windows).
Now installed adobe from a download version from adobe.
Still the same problems
I have no illegal software!
Multimedia
Geluidskaart SB Recon3D PCIe Audio Controller
Opslag
IDE apparaat Standaard Dual Channel PCI IDE Controller
SCSI/RAID apparaat Controlefunctie voor opslagruimten van Microsoft
SCSI/RAID apparaat Intel(R) C600 Series Chipset SAS RAID (SATA mode)
SCSI/RAID apparaat Intel(R) C600 Series Chipset SATA RAID-controller
SCSI/RAID apparaat LSI Adapter, SAS2 2308 Mustang
Harde schijf ATA Samsung SSD 850 SCSI Disk Device
Harde schijf ATA SAMSUNG SSD 830 SCSI Disk Device
Harde schijf SEAGATE ST3450856SS SCSI Disk Device
Harde schijf SEAGATE ST3450856SS SCSI Disk Device
Optische Station HL-DT-ST BD-RE BH16NS40
Optische Station hp DVD-RAM GHA3N
SMART Status harde schijf Onbekend
Partities
C: (NTFS) 243668 MB (150173 MB vrij)
D: (NTFS) 122101 MB (65332 MB vrij)
E: (NTFS) 429244 MB (322019 MB vrij)
F: (NTFS) 429244 MB (243491 MB vrij)
Geheugencapaciteit 1195.6 GB (762.7 GB vrij)
Invoerapparaten
Toetsenbord Logitech HID-Compliant Keyboard
Toetsenbord Standaard-PS/2-toetsenbord
Muis HID-compliant Mouse
Muis Microsoft PS/2-muis
Netwerk
Netwerkkaart Intel(R) 82574L Gigabit-netwerkverbinding (192.168.178.37)
Netwerkkaart Intel(R) 82579LM Gigabit Network Connection
Peripherieapparaten
Printer Adobe PDF
Printer EPSON XP-950 Series
Printer HP 4730 PCL 6
Printer Microsoft XPS Document Writer
USB1 apparaat Texas Instruments USB 3.0 eXtensible Host Controller - 0096 (Microsoft)
USB2 apparaat Intel(R) C600/X79 series chipset USB2 Enhanced Host Controller #1 - 1D26
USB2 apparaat Intel(R) C600/X79 series chipset USB2 Enhanced Host Controller #2 - 1D2D
Van: station_two
Verzonden: maandag 13 april 2015 21:58
Aan: johan van der klaauw
Onderwerp: After several time installed CS6 and a clean Windows 8.1 bridge still pause after selecting a picture or right click with button mouse.
After several time installed CS6 and a clean Windows 8.1 bridge still pause after selecting a picture or right click with button mouse.
created by station_two <https://forums.adobe.com/people/station_two> in Bridge General Discussion - View the full discussion <https://forums.adobe.com/message/7434796#7434796> -
i have facing a problem, my i phone is not workin properly, when i powered on then apper passcode window but after putting passcode then after some time automaiclly restart but from passcode window i can not enter further.
Okay. You are not entering the correct passcode. If you forgot or it is not taking your passcode then you will have to restore.
See http://support.apple.com/kb/HT4113 -
I have windows 64 and trying to download itunes 10.5, it start downloading but then after it`s almos finish i have a window pup up with error Microsoft ft VC80.CRT,type="win32" etc.Please help.I have windows 7 64
same here.
-
I am not able to send mails through Yahoo APP. It gives me an error msg :"the sender address has ben rejected by the server ".
I tried adding username and password in the SMTP server settings,But those optiopns are greyed out.
So, i am not able to enter anything in fields under SMTP server settingsYou probably have changing settings disabled in Restrictions.
-
Can webservice in l.v 8.6 support all time running Web Method vis
I have to call some user events in my project so i am using while loops in which i use event case that handles user events. When i make this vi web method vi and when pass url in my webbrowser it stucks. So can i handle or use while loops in webmethod vi.
You do not want to use an unterminated while loop in your web method VIs, because it won't return any data and your web browser will get "stuck" waiting for the VI to complete. Instead you should have a separate VI, in your application, that runs your while loop continuously. When the web method executes it should query the while loop for the current data and return immediately, leaving your while loop running independently in the background.
-
Not getting the "under review" email after 2nd time re-submitting podcast.
I started by doing a test podcast (this has no real podcast info, the audio of it was simply me saying I was testing the feed to see if it would work). I submitted my podcast to the iTunes store and shortly after, I received an email saying thank you, my podcast is under review and I would receive an email later if it was approved or not. About 3 days later, I received an email saying it was rejected because it appeared to be a test podcast.. to shape it up, and re-submit when it was complete. I got to work and completed the podcast with chapters, artwork, voice, intro, outro, and all the text information needed. I went back to the iTunes store to submit the completed podcast, but never received that initial "thank you for submitting, it's under review, we'll let you know" ... email. I waited a few days, and nothing. It seems as though since I submitted a "BS" podcast at first, they're rejecting anything else I submit. Is my feed bad? or what could be the problem? Please help, thanks.
my feed:
feed://web.me.com/djchuckc/siteone/Melodica/rss.xmlTechnically speaking, your feed appears to be OK: it can be subscribed to manually from the 'Advance' menu in the iTunes application (a process which does not involve the store).
However, your episode appears to consist of a collection of commercially issued tracks. If this is indeed the case, and if you do not have either the written permission of the copyright owners, or a licence from a recognized authority, then the iTunes Store is likely to reject your podcast on grounds of breach of copyright. If they do so I would expect them to notify you, though the email is usually a blanket one which implies that the rejection is on technical grounds: the process can take over a week as it has to be done by real people and there is likely to be quite a queue. -
I am not able to play any videos in ie 11 and I am not able to install flash player.
So far I have uninstalled prior installation of flash player. When I visit get adobe flash player sight with ie 11 whole sight box is grayed out. so I tried to download the flash player for ie 11 with chrome and firefox. In both cases after running .exe file downloaded and saved on pc the flashplayer installation manger comes up for permissions. but after clicking run, it is grayed out and nothing further happens. I will appreciate any help in getting this installed.
I have other laptop with Windows 7 professional and ie 11. there is no problem on playing videos in ie11 in this laptop. so why do I have problem in this pc? Only difference is here I have Windows 7 Home premium. Java version 32 and 64 bit are installed and enabled. Silverlight is enabled and adobe shockwave player is enabled, Active x control are disabled. software rendering box is also checked in the advanced tab of ie 11.Hi vasanthas62986264,
Can you please post a screenshot of the installer dialog window (please see How to post a screenshot in the forum).
Thank you.
Maria -
Home page is on yahoo.com. Windows Expl works just fine. I got to this page that way. This has happened a couple of times before. Much as I regret it, looks like Windows Expl is my new browser (or someone else's). Goodbye Firefox?
Hi,
Please also check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
[http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
[https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
[http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
[http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
If the problem persists you can also try creating a [https://support.mozilla.org/en-US/kb/Managing-profiles?s=profile&r=0&e=sph&as=s new profile] and if it is okay, you can later [https://support.mozilla.org/en-US/kb/Backing%20up%20your%20information?s=backup&r=1&e=sph&as=s copy the needed files] from the old profile to the newly created profile.
[http://kb.mozillazine.org/Profile_folder Firefox Profile Folder]
[http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Files] -
Does anyone know how to fix this?? itunes.exe error error7 windows error 126
Try the following user tip:
Troubleshooting issues with iTunes for Windows updates -
IE prompts credentials after some time and we get error rsHttpRuntimeClientDisconnectionError
Hi all,
Windows Server 2012
Reporting Services 2012 SP2
Internet Explorer 8
After some time running a report the end user is asked for his credentials again with the authentication prompt.
In the ExecutionLog we see the Client (IE) has its connection disconnected =
rsHttpRuntimeClientDisconnectionError
The server parameter are attached:
We appreciate any clue.
Thanks,
Alex Berenguer
Alex BerenguerHi Alex,
Per my understanding that you are running the report for sometime an then IE prompt for credential and you to this kind of error, right?
Based on my research, the "rsHttpRuntimeClientDisconnectionError" error may occur if:
Reporting Services creates the report and then goes to send it back to the client
Reporting Services finds out that the connection has been closed and responds with the disconnection error.
To resolve the issue, we can try to modify the TCP profile applied to the VIP.
Additionally, the issue may also occur due to a RESET coming from something between Report Server and the custom application. For example, an F5 NLB times these connections out on the either an HTTP or TCP level.
If your problem still exists, please also check if you will got the same problem on the other browser(firefox),you can also provide us more details information about the
TimeDataRetrieval,TimeProcessing,TimeRendering in the ExecutionLog table.
Similar thread for your reference:
ssrs Report taking to much time to load
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
Process chains time outs and hangs with no error msg - in SP13
Hi all,
We are having all kind of weird problems after we patched our system with SP13. Our process chain time outs and hangs, but surprisingly we never get any error msg. And scarier part is, the problem seems to be intermittent. PC runs fine on some days and hangs on some.
Further analysis into the dump as below
Termination occurred in the ABAP program "SAPLRSSM" -
in "RSSM_SLEEP_DEBUG".
The main program was "SAPMSSY1 ".
In the source code the termination point is in (Include) program "LRSSMU39".
This refers to an issue that appears to have been addressed by OSS Note
934648(meant for SP8). This notes also indicates to populate RSADMIN table to
exclude "RSSM_SLEEP_DEBUG". Not sure if this note is valid for SP13? However we went ahead and populated the RSADMIN table.
So now we have no clue whats going on and where to fix the issue.
As per SAP suggestion we applied the following notes:
0000653996 Analyzing lock situations
0000893563 Correction: Deadlock on completion of a remote chain
0000994007 Corrections: Deadlock with external status query
0001005481 Correction: Process successful, but there is no instance
0001047174 Correction: Incorrect scope when locking in process chains
0001051957 Correction: TIME_OUT during dialog confirmation of processes
0001083660 Report for error stack analysis
Nothing seems to help us. And SAP suggested a few options, which we implemented to no rescue.
Im sure that many of the customers have applied SP13, and want some feedback from them, if this is happening in their systems too?
If so, how did you fix this issue?
Or this situation is unique to us?Please note that no settings were changed as of SP13 to that of what they were in SP12(unless it is a side effect of the patch itself). Everything worked fine with SP12 and is still working on the BIP system. All the problems are in BIQ patched to SP13.
Any pointers or insight would be appreciated. We have a customer msg open with SAP, and going back and forth, but nothing seemed to work as of today.
Thanks,
VoodiNot sure which OSS helped us get past the issue, as SAP asked us to apply a ton of notes. But along which the notes, SAP has some suggestions for us, which we think did the magic. After the implementation of the suggestin we never faced the same issue again. The suggestion by SAP:
move the process chain callback in a batch job by executing
program RSSM_TRACE_SWITCH and selecting the flag "verifcation
of asynchronous processes - execute in batch".
Lemme know if this doesnt fix the issue, I can give all the notes that SAP asked us to apply.
Message was edited by:
voodi -
Opening Excel Workbook Fails when run from Scheduled Task on Windows Server 2008 Rw
Hi,
I have a little vbs script that instantiates the Excel.Application object and then opens a work book to perform some tasks on it. The script runs fine when run from the command line. When I attempt to run it as a scheduled task (it is supposed to update
data that is pulled from a SQL Server at regular intervals), it fails with the following error:
Microsoft Office Excel cannot access the file 'c:\test\SampleWorkbook.xlsm'. There are several possible reasons: .....
The file does exist. The path reported in the error is correct. The account under which the task is running is the same account I use to run it from the command line. User Account Control is not enabled, and the task is set up to run with highest privileges.
When I run the same script through the Task Scheduler from a Windows Server 2003 machine, it works without issue.
I was just wondering if somebody on this forum has run into a similar issue in connection with Windows Server 2008 R2 and figured out what the magic trick is to make it work. I'm sure it is rights related, but I haven't quite figured out what which rights
are missing.
Thanks in advance for any advice you may have.This is truly killing me ... trying to get it working on Windows Server 2012 without success.
I desperately need to automate running Excel macros in a "headless" environment, that is non-interactive, non-GUI, etc.
I can get it to work using Excel.Application COM, either via VBScript or Powershell, successfully on many other Windows systems in our environment - Windows Server 2008 R2, Windows 7 (32-bit), etc., -BUT-
The two servers we built out for running our automation process are Windows Server 2012 (SE) - and it just refuses to run on the 2012 servers - it gives the messages below from VBScript and PowerShell, respectively-
I have tried uninstalling and re-installing several different versions of Microsoft Excel (2007 Standard, 2010 Standard, 2010 Professional Plus, 32-bit vs. 64-bit, etc.), but it makes no difference.
Would be extremely grateful if any one out there has had any success in running Excel automation on Server 2012 in a non-interactive environment that they could share.
( I have tried adding the "%windir%\syswow64\config\systemprofile\desktop"
folder, which did fix the issue for me when testing on Windows Server 2008 R2, but sadly did not resolve it on Windows Server 2012 )
[VBScript error msg]
Z:\TestExcelMacro.vbs(35, 1) Microsoft Office Excel: Microsoft Office Excel cannot
access the file 'Z:\TestExcelMacro.xlsm'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open work
[Powershell error msg]
Exception calling "Add" with "0" argument(s): "Microsoft Office Excel cannot open or save any more documents because th
ere is not enough available memory or disk space.
To make more memory available, close workbooks or programs you no longer need.
To free disk space, delete files you no longer need from the disk you are saving to."
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
You cannot call a method on a null-valued expression.
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull -
RMI: UnmarshalException, can't find method after some time.
Hi,
I have a client server application that talks via rmi. My client saves data to a server or gets data by passing in parameters that include string, boolean and a Hashtable. The data is saved and retrieved many times. However, after some time, the RMI can't even find the method. That is, the client calls a method and I get a unmarshalling exception from the client, basically stating that it can't find the method.
Here is the method in my interface, the method in question is the override method, the getLast works fine all the time:
public interface Admin extends Remote
Hashtable getLast(Hashtable setLashtHash) throws RemoteException;
//override method can query or set a new data in the form of a hashtable. It return a Hashtable or null
Object override(boolean setNew, String ticker, boolean getOverrideHash,boolean getLast, boolean getPrevious,Hashtable newOverride) throws RemoteException;
Here's the implementation of override:
synchronized public Object override(boolean setNew, String ticker, boolean getOverrideHash,boolean getLast, boolean getPrevious,Hashtable newOverride) throws RemoteException
try{
if(setNew)
if(newOverride!=null)
System.out.println("Saving override hash, entries=" + newOverride.size());
overrideHash=newOverride;
else if(getOverrideHash)
if(overrideHash!=null)
System.out.println("Getting override hash entries=" + overrideHash.size());
return overrideHash;
else
if(getLast)
if(overrideHash==null)
System.out.println("override hash is null");
return null;
OverrideStruct os=(OverrideStruct)overrideHash.get(ticker);
if(os.last!=null)
System.out.println("Last price for ticker " + ticker + " is=" +os.last);
Float last=os.last;
return last;
return null;
else if(getPrevious)
if(overrideHash==null)
return null;
OverrideStruct os=(OverrideStruct)overrideHash.get(ticker);
if(os.previous!=null)
Float previous=os.previous;
return previous;
return null;
}catch(Exception e)
System.out.println("Unknown Exception caught in override function");
e.printStackTrace();
return null;
Here is the exception, please help. Does anyone know why the exception is "invalid method hash"? I don't understand why it's saying that, I am calling method override(....).
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.UnmarshalException: invalid method hash
java.rmi.UnmarshalException: invalid method hash
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at AdminImpl_Stub.override(Unknown Source)
at StocksTable$12.run(stockstable.java:481)
Please help,
Thanks SteveBy the way, this is how my server calls the client:
Hashtable otable=(Hashtable)a1.override(false,new String(""),true,false,false,new Hashtable());
Maybe you are looking for
-
How can I either move or view the source of a JAVA CLASS user object?
I am using Oracle 8i and I have the following JAVA CLASS objects in my database. I need to move some of these objects to a different database. 1) How can I do this? 2) How can I view the JAVA source code since these are classes? My knowledge of Oracl
-
NSTextField - can it have a keyDown / keyUp or mouse events - If not what c
I'm new to Apple Developement What specifically I am trying to do is have 4 NSTextField or other text boxs that can 1. store into 2. read out 3. key into 4 alert App that one of the boxes have changed. The fields would be decimal values and all of th
-
Converting dvd to ipod format?
Have tried several areas for this question. I use an imac intel dual core and I need to convert dvd to ipod format How do I do this
-
Outputting one cfselect fine now two
Hi all, I am using coldfusion cfform in flash format -maybe this is the place to come for an actionscript question. The cfgrid tag works fine for one field the "state" field output with cfselect with the following onchange actionscript: <cfform forma
-
how to delete my account