Problem with Watch Service in Window 7
This code works fine in Linux but not in Windows 7: to get file contents update I have to click on the output file. Where is the trick?
I am using Windows 7 prof, NetBeans IDE 8.0 RC1 (Build 201402242200) updated to version NetBeans 8.0 Patch 1.1, JDK 1.8
package watchfilethreadmod;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.file.Files;
import static java.nio.file.LinkOption.NOFOLLOW_LINKS;
import java.nio.file.Path;
import java.nio.file.Paths;
import static java.nio.file.StandardWatchEventKinds.*;
import java.nio.file.WatchEvent;
import java.nio.file.WatchKey;
import java.nio.file.WatchService;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
public class WatchFileThreadMod {
static class WatchFile {
String fileName;
long lastFilePos;
RandomAccessFile file;
public WatchFile(String _fileName, RandomAccessFile _file) {
fileName = _fileName;
lastFilePos = 0;
file = _file;
public static void shutDownListener(Thread thread) {
Thread thr = thread;
if (thr != null) {
thr.interrupt();
private static class MyWatchQueueReader implements Runnable {
* the watchService that is passed in from above
private WatchService myWatcher;
public ArrayList<WatchFile> threadFileToWatch;
public String dirPath;
public MyWatchQueueReader(String _dirPath, WatchService myWatcher, ArrayList<WatchFile> _threadFileToWatch) {
this.myWatcher = myWatcher;
this.threadFileToWatch = _threadFileToWatch;
this.dirPath = _dirPath;
private void openFile(WatchFile obj) {
try {
System.out.println("Open file "+obj.fileName);
obj.file = new RandomAccessFile(dirPath + "/" + obj.fileName, "r");
} catch (FileNotFoundException e) {
obj.file = null;
System.out.println("filename " + obj.fileName + " non trovato");
obj.lastFilePos = 0;
private void process(WatchEvent evt) {
String thisLine;
ArrayList<WatchFile> auxList = threadFileToWatch;
for (WatchFile obj : auxList) {
if (obj.fileName.equals(evt.context().toString())) {
if (obj.file == null) {
openFile(obj);
try {
obj.file.seek(obj.lastFilePos);
} catch (IOException e) {
System.err.println("Seek error: " + e);
try {
thisLine = obj.file.readLine();
if ((thisLine == null)&&(evt.kind() == ENTRY_MODIFY)) {
System.out.printf("---> thisLine == null received %s event for file: %s\n",
evt.kind(), evt.context());
obj.file.close();
System.out.println("Close file "+obj.fileName);
openFile(obj);
thisLine = obj.file.readLine();
while (thisLine != null) { // while loop begins here
if (thisLine.length() > 0) {
if (thisLine.substring(thisLine.length() - 1).equals("*")) {
obj.lastFilePos = obj.file.getFilePointer();
System.out.println(obj.fileName + ": " + thisLine);
thisLine = obj.file.readLine();
} // end while
} // end try
catch (IOException e) {
System.err.println("Error: " + e);
* In order to implement a file watcher, we loop forever ensuring
* requesting to take the next item from the file watchers queue.
@Override
public void run() {
try {
// get the first event before looping
WatchKey key = myWatcher.take();
while (key != null) {
// we have a polled event, now we traverse it and
// receive all the states from it
for (WatchEvent event : key.pollEvents()) {
WatchEvent.Kind eventType = event.kind();
if (eventType == OVERFLOW) {
continue;
process(event);
key.reset();
key = myWatcher.take();
} catch (InterruptedException e) {
ArrayList<WatchFile> auxList = threadFileToWatch;
for (WatchFile obj : auxList) {
if (obj.file != null) {
try {
obj.file.close();
System.out.println("chiusura file " + obj.fileName);
} catch (IOException ex) {
System.out.println("errore in chiusura file");
Logger.getLogger(WatchFileThreadMod.class.getName()).log(Level.SEVERE, null, ex);
//e.printStackTrace();
System.out.println("Stopping thread");
public static void main(String[] args) throws Exception {
// get the directory we want to watch, using the Paths singleton class
//Path toWatch = Paths.get(DIRECTORY_TO_WATCH);
ArrayList<WatchFile> fileToWatch = new ArrayList<>();
String filename;
RandomAccessFile file;
fileToWatch.add(new WatchFile("EURUSD.rlt", new RandomAccessFile(args[0] + "/EURUSD.rlt", "r")));
filename = "EURCHF2.rlt";
try {
file = new RandomAccessFile(args[0] + "/" + filename, "r");
} catch (FileNotFoundException e) {
file = null;
System.out.println("filename " + filename + " non trovato");
fileToWatch.add(new WatchFile(filename, file));
fileToWatch = fileToWatch;
Path toWatch = Paths.get(args[0]);
if (toWatch == null) {
throw new UnsupportedOperationException("Directory not found");
// Sanity check - Check if path is a folder
try {
Boolean isFolder = (Boolean) Files.getAttribute(toWatch,
"basic:isDirectory", NOFOLLOW_LINKS);
if (!isFolder) {
throw new IllegalArgumentException("Path: " + toWatch + " is not a folder");
} catch (IOException ioe) {
// Folder does not exists
ioe.printStackTrace();
// make a new watch service that we can register interest in
// directories and files with.
WatchService myWatcher = toWatch.getFileSystem().newWatchService();
// start the file watcher thread below
MyWatchQueueReader fileWatcher = new MyWatchQueueReader(args[0], myWatcher, fileToWatch);
Thread processingThread = new Thread(fileWatcher, "FileWatcher");
processingThread.start();
toWatch.register(myWatcher, ENTRY_CREATE, ENTRY_MODIFY);
I get no error, just I have to single left mouse click on file to get updates, while in Linux it all works perfectly.
This is the file path
http://s27.postimg.org/a4pm8t3xv/ZA610.png
Thank you - I followed your directions
and found that I had already tagged it to watch, but hadn't realized that it was tagging both the old and the new. Big learning curve for me.
Similar Messages
-
Problem with "watch folder" and Windows 7
I have just switched to Windows 7 and Elements 9 - so far things are working quite well, but I am having a problem with "Watch folder" It is watching my odf folder "My Pictures" but all my new photos are going into Libraries/Pictures and PSE9 won't let me add that to the watch folder section. I am afraid that if I ask PSE9 to Get Photos and Videos / From Files and folders I may get a whole buch of duplicates in my Organizer.
Any help would be appreciated.Thank you - I followed your directions
and found that I had already tagged it to watch, but hadn't realized that it was tagging both the old and the new. Big learning curve for me. -
Problems with shutdown, expose and window switching
Hi there,
Recently I've been having a few issues with OS X. First of all it wasn't shutting down properly -- the menu bar would disappear and it would look like it was going to shutdown, but it never did. I could move down to the dock (on auto-hide) and it would re-appear, at which point I can bring up a terminal window and use 'shutdown' to do the job. On startup I'd reset the PRAM, and then do a disk-check, but the problem keeps coming back.
Subsequently, I've also been having problems with expose and switching windows (i.e. command-tab). Namely, neither of them work. Expose won't fire from either hot corners or the keyboard, and if I re-launch the app from the Apps folder (without trying to kill it first, I should say), it does nothing. Cmd-tab gets interpreted as just tab, and the keyboard shortcut for dashboard also fails (although I can start the dashboard from the dock).
I read in another post about an invalid jpeg in the downloads folder being able to cause the Expose problem (seems like a most unlikely bug?). Anyway, I cleared all pictures from my downloads folder and functionality came back, but now it's gone again. It's really very frustrating as it makes moving between windows a lot more hassle.
Any thoughts would be gratefully received.
TIA,
MatThis sounds interesting.
Can you post a copy for the rest of us to see?
As for actually helping you, and not just satisfying our curiousity, if you start cutting pieces of the code you will probably end up finding the source of the problem (and we won't have too big a program to handle). Since DSC is a likely suspect, you may want to start there.
Also, are you creating an installer and using that to install? If not, you may wish to try that.
Try to take over the world! -
Problems with Target service agreement
Problems with Target service agreement to repair my ipod nano. I have gone to the BBB. Who can I contact at Apple to let them know the poor service that Target gave with a Apple product?
Apple Customer Relations (800) 767-2775
-
Problem With Captivate 4 and Windows 8
Hi,
I've a problem with Captivate 4 on Windows 8 projects :
The mouse is not tracked.
I've applied the last patch for this version (11/15/2011).
Is there another patch for this ?
Thanks a lot.Hi there
I know this will come off as sounding snarky, but please know it's honestly not intended that way,
Windows 8?
I never was able to make Captivate 4 run successfully on Windows 7. So I'm not the least bit surprised to hear it has issues with Windows 8!
Personally, I'm thinking you are due for an upgrade to Captivate if you want it to work on Windows 8. But then again, I'm not even certain if Captivate 6 is Windows 8 compatible.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Problem with photshop cc on windows 8.1 and 4k monitor at 3840x2160 resolution
can anyone help
i have a problem with photshop cc on windows 8.1 and 4k monitor at 3840x2160 resolution when i lauch photoshop cc everything is very small and i dont know how to get the program at the right sizeSearch the forum for similar topics dealing with high-DPI displays. 4k is insane, though. I don't think even CC 2014 is up to it.
Mylenium -
I have bought Adobe Photoshop Elements 10 last August 2013 and having problems with installing it on Windows 8.1. Why am I having this problem?
You can check you Adobe account online to see if the serial number is registered under your account. If not then your only option will likely be to contact Adobe Support directly thru chat to see if they can provide you with a/the serial number. For them to do so will require you being able to prove ownership.
Serial number and activation chat support (non-CC)
http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC ) -
Problem with national characters on windows client
Hello there,
I'am having problem with national characters on windows client.
All national data stored in NVARCHAR2 colums, applications (.net) works fine,
but in sqlplus:
select city from test_table;
- everything ok, sqlplus shows national characters
select dump(N'<national symbols>') from dual
- returns
Typ=96 Len=12: 0,191,0,191,0,191,0,191,0,191,0,191
select * from test_table where city = N'<national symbols> '
- always returns nothing
As i understand the problem in
sql query text (and national literals) convertion
to servers "WE8ISO8859P1" encoding, Is it possible
to solve the issue?
Thanks in advance
PS.
Console in right mode (chcp=1251)
sqlplus shows russian messages well
Server (oracle 9 on solaris):
select * from nls_database_parameters
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_SAVED_NCHAR_CS WE8ISO8859P1
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8ISO8859P1
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_RDBMS_VERSION 9.2.0.6.0
Client (windows server 2003, oracle client 10):
NLS_LANG = RUSSIAN_CIS.CL8MSWIN1251N'<national symbols>', being part of an SQL statement, will be converted to the database character set (WE8ISO8859P1) before being parsed. Only if the client and the database are both 10.2 or higher, the client can encode the literal appropriately so that it survives this conversion.
In earlier versions, you can do the encoding yourself. Instead of the N'<national symbols>' literal use the UNISTR function: UNISTR('\xxxx\yyyy\zzzz'), where U+xxxx, U+yyyy, U+zzzz are Unicode code points of your national characters.
-- Sergiusz -
Problem with the audio editor window into logic pro X
hello everybody, I have a problem with the audio editor window ! the "onglet" (sorry I don't know the word in english) "file and track" doesn't appear in the top of the audio editor window ! I can just make no destructive data, I have no access to Normalize and others audio fonctions ! could you help me ? in advance I thank you
Alain'onglet' - great, my favorite when visiting restaurants in France!
Anyway, I think you have to activate Advanced tools first:
http://help.apple.com/logicpro/mac/10/#lgcp5cbf192f
Have a nice day! -
I have problem with data transfer between Windows Server 2012RT and Windows7 (no more than 14kbps) while between Windows Sever 2012RT and Windows8.1 speed is ok.
Hi,
Regarding the issue here, please take a look at the below links to see if they could help:
Slow data transfer speed in Windows 7 or in Windows Server 2008 R2
And a blog here:
Windows Server 2012 slow network/SMB/CIFS problem
Hope this may help
Best regards
Michael
If you have any feedback on our support, please click
here.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
i bought a iphone 3gs 4 months ago had a problem with display service centre replaced me with the phone when i checked the settings of the phone in cellular usage under call time the lifetime usage was 3 days and 18 hours.what sholud be done ?
How is your iPhone's display different?
You can check the model number by going to Settings/General/About. These are the model numbers for the various 3 GS models;
MB715LL/A (16 GB Black), MB716LL/A (16 GB White), MB717LL/A (32 GB Black), MB718LL/A (32 GB White), MC555LL/A (8GB) -
I bought a new iphone 4s and I have a problem with the service. How can it be solved? the SIM card is new and was working perfect withe iPhone 4G
Under the answer you want to mark as correct you should see a box that says Correct with a green symbol to the left and a box with Helpful with an orange star to the left. Click on the one you want.
And thanks for thinking about that, it is appreciated. -
Has anyone else had problems with their RAW editing window?
I'm having real problems with my RAW editing window (the one that automaticaly pops up when you open a raw file). I've opened several images, but when I click on the different thumbnails on the left hand side the large preview image in the center doesn't change. Obviously I need to be able to see this to make the required changes.
Any ideas/help you be greatly appreciated!!!Hi Kate,
I haven't yet been able to replicate your problem. Will you please describe your workflow? Are you simply selecting multiple files from your computer and double clicking to automatically open in Camera RAW?
Also curious, with all of your images open in the RAW editing window, what happens when you use the arrows near the bottom right? Does your image change?
Cheers,
Michael -
Problems with Comodo Kill Switch, Windows Services & Bitlocker Encryption on Asus N56VZ
Hi All,
So recently I found myself stuck in a different scenario than before, and after many hours researching and efforts to fix this I still find myself stuck yet with a few options still to fix.
What is the problem?
So as a security cautious user when i first got to Windows 8.1 Pro 64Bit I encrypted both the C and D drive (Split the main disk) to protect myself and my family. Unfortunately that has not been very helpful with the way in which booting and running from
either external USB devices or CD/DVD works, not allowing myself to at all.
My usual security suit I use is Comodo Internet Security, which additionally comes with Comodo Kill Switch. Whilst using the application instead of stopping one of the TCP connections I was meant to I accidently stopped an Windows Explorer connection.
For some reason since then Windows Explorer, nor most windows apps or services themselves will run. For example msconfig will run but sfc /scannow or mmc will not, whether in safe mode or normal mode.
What Caused the Problem?
Cannot 100% say
What I Think Caused the Problem?
Myself running Comodo Kill Switch stopping a vital server connection with Windows Explorer that messed up alot. Or a potential Virus unknown how cannot fully scan system as wont boot externally or run many apps.
Additional Info
Asus Webcam is Disabled on Purpose
Laptop was fully customized to run latest games full graphics minus Anti Aliasing, works with Evolve + CoD Advanced Warfare
Laptop does not boot if USB Keyboard plugged in, works with everything else normal (had this on other systems no problem for me)
Ask me for more info if required to add here, braindead again
Specifications of my system
Intel® Core™ i7 3610QM Processor
Windows 8.1 Pro 64Bit
Intel® HM76 Chipset
DDR3 1600 MHz SDRAM, 2 x SO-DIMM 8GB
15.6" HD (1366x768)/Full HD (1920x1080)/Wide View Angle LED Backlight
NVIDIA® GeForce® GT 650M with 2GB DDR3 VRAM
1TB 5400RPM OR 750GB 5400/7200RPM (Cannot remember off top of head, braindead)
Super-Multi DVD
Kensington lock (Security Feature)
LoJack (Security Feature)
BIOS Booting User Password Protection (Security Feature)
HDD User Password Protection and Security (Security Feature)
Pre-OS Authentication by programmable key code (Security Feature)
What Can Run and Won't Run?
ON BOOT:
Bitlocker Encryption Password & Advanced Settings are accessible
Bios (password protected) is accessible
Windows Recovery Mode is accessible (Think it is F9 or F10)
Windows Logon Password Screen is accessible
ON NORMAL/SAFE-MODE START UP:
After Log-In Windows Explorer will not run
Task Manager will run, also allows me to browse the files when trying to start new task
Can run Command prompt
Cannot run any control panel items
Cannot run services.msc
Cannot run mmc
Cannot run sfc
Every time it metions windows drive is locked
Start Error's when running certain applications (Will post codes soon)
Rufus USB Tool does run
Cannot boot Kali Linux off USB
Cannot boot Windows 8.1 off USB
Cannot boot Windows 8.1 off DVDRW
Fixwin2 will not run
Apps either work or don't whether in safe mode or normal
Cannot use Windows Installer
What Fixes I Have Tried So Far
Ok so like any normal user I don't want to lose my files. So here are what I have tried so far:
Repair MBR (Repair Completed, No Luck)
SFC /SCANNOW (Returns Error 'Windows Resource Protection could not start the repair service')
Tried sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=c:\windows (Could not access drive)
Fixwin2 (Will not run in either normal or safe mode)
Booting using Windows 8.1 via USB (Cannot boot from extermal devices due to Bitlocker Encryption)
Booting using Kali Linux Via DVD & USB (Cannot boot from external devices due to Bitlocker Encrytption)
How do I know it is because of Bitlocker, because last time I disabled it, I could run from external devices
Tried to run bitlocker to change settings (Will not run)
Have used both password and recovery keys to unlock driver, they work but when applications are running on windows the drive is still locked?
Tried windows Automatic Diagnostic and Repair (Could not repair anything, did make a log I am still to extract from the syste)
There are No System Restore Points
I'm sure there is much more information I could post however I will leave it on an ask to know basis, apart from the log files and further information to gather. Below is my list of trial and error fixes to try for today (need more ideas and help please!):
Hiren's 15.2 Boot CD via DVD (NOT ABLE TO BOOT)
Hiren's 15.2 Boot CD via USB (NOT ABLE TO BOOT)
Research into the Bios and Possible Update in-case of implementation of Virus, can access flash utility (STILL NOT TESTED)
Try and get a portable version or a working version of windows installer to try and re-install Comodo Internet Security (STILL NOT TESTED)
Another way to disable Bitlocker
Anti-Malware / Anti-Virus Scan If Possible to Run One
Bitlocker Repair Tool, will try this also
I have posted this as have not found much info online, usually find it and crack on but this time things are a little more tricky, my priority task I really need to do is remove the Bitlocker Encryption, but if the application will not run... what do I do
then?
Thanks for your time reading all, Sorry for any poor formatting or spelling.
Update 1: MMC.exe Error Code
Ok so now have the computer in safe mode, still same as before, no explorer.exe, no services etc... Just went into the Task Manager > Services (Tab) > Open Services (Option at bottom)
This is the error I get:
'The Instruction at 0x785a746c referenced memory at 0x000000a8. The memory could not be read.
Any Ideas on what this error is and why?
Update 2: CHKDSK Works with no Fix
Update 3: Hiren's 15.2 Boot CD - USB Boot still no luck booting around Bitlocker Encryption
Just to explain again, I already have unlocked the drive with correct bitlocker password or recovery key yet the drive remains locked not allowing windows refresh of files of complete install from the windows recovery menu as keeps saying drive is lockedOk so attempt number two to write this update via bloody phone! (Just refreshed page whilst writing!)
Update 4:
Problem - cannot run from bootable devices (DVD/USB)
Cause - bitlocker fully encrypted drive stops this working
Repair - Boot up holding F9 to enter windows recovery Input Bitlocker recovery keys to unlock drives
Navigate to Command Prompt in advanced settings Execute following code:
Repair-bde c: d: -rp 000111-222333-444555-etc...
(Code found from https://technet.microsoft.com/en-us/library/ee523219%28v=ws.10%29.aspx)
Note for those using this: It is common while unlocking certain drives to get errors such as: Quote from http://www.benjaminathawes.com/2013/03/17/resolving-partial-encryption-problems-with-bitlocker/
"LOG INFO: 0x0000002aValid metadata at offset 8832512000 found at scan level
1.LOG INFO: 0x0000002b Successfully created repair context.
LOG ERROR: 0xc0000037 Failed to read sector at offset 9211592704.
(0×00000017) LOG ERROR: 0xc0000037 Failed to read sector at offset 9211593216.
(0×00000017) …followed by around 20 similar entries that differed only by the offset value"
Repair Status for Update 4: COMPLETED - However over wrote D drive data so now need to recover that
Problem 2 - windows services corrupted along with windows files
Cause - Unknown
Repair - wait until system is fully decrypted Once fully decrypted ensure boot from USB/DVD
Re-do fixes that would not work before if this has fixed boot issue Confirm fix / update post Hope anything I put here helps others also -
Problem with Watched Folder endpoint
Hi,
We have a problem with a watched folder endpoint. The watched folder is set in a directory in a linux server. The directory then is mapped to a windows directory where files arrive from time to time. Everything works fine until the watched folder service stops for no particular reason. After that we need to restart the service from the admin UI console.
I found in another post something related to the MySql database losing connection with livecycle after some inactivity, but I'm not sure if this is our case or even how to solve the problem.
Here's what we found in the log
2010-11-11 17:10:31,890 INFO [com.adobe.idp.dsc.provider.service.file.write.impl.FileResultHandlerImpl] FileResultHandlerImpl ----- preserved- source ----/data/livecycle/lc_wrk/edi/stage/Wx130df02e731a9c7b14738905/C0158_208.dat--- to ---/data/livecycle/lc_wrk/edi/preserve/ /C0158_208.dat
2010-11-11 20:39:46,366 INFO [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Handling 1 trigger(s) that missed their scheduled fire-time.
2010-11-11 20:40:22,056 ERROR [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Error retrieving job, setting trigger state to ERROR.
org.quartz.JobPersistenceException: Couldn't retrieve job: Prepared statement needs to be re-prepared [See nested exception: java.sql.SQLException: Prepared statement needs to be re-prepared]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1338)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2789)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$37.execute(JobStoreSupport.java:2757)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.ja va:3662)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2751)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:313)
Caused by: java.sql.SQLException: Prepared statement needs to be re-prepared
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1124)
at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:676)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeQuery(CachedPreparedStatem ent.java:90)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStat ement.java:255)
at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectJobListeners(StdJDBCDelegate.java:843)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1319)
... 5 more
2010-11-11 20:40:22,061 ERROR [org.quartz.core.ErrorLogger] An error occured while firing trigger 'WatchedFolder.WatchedFolder:1107'
org.quartz.JobPersistenceException: Couldn't retrieve job: Prepared statement needs to be re-prepared [See nested exception: java.sql.SQLException: Prepared statement needs to be re-prepared]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1338)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2789)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$37.execute(JobStoreSupport.java:2757)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.ja va:3662)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2751)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:313)
Caused by: java.sql.SQLException: Prepared statement needs to be re-prepared
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1124)
at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:676)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeQuery(CachedPreparedStatem ent.java:90)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStat ement.java:255)
at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectJobListeners(StdJDBCDelegate.java:843)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1319)
... 5 more
2010-11-11 20:56:46,550 INFO [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Handling 1 trigger(s) that missed their scheduled fire-time.
thanksOriginally Posted by bjbradleyUSC
Is there a problem with running the ZCM client and the Endpoint client on the same machine?? I am having problems getting both of them to install on a single machine.
If I install the ZCM Client, it will pull down the policies and work correctly. Then I try to install Endpoint and it will not finish up it's checkin procedure and it will not get the policies set in place for it.
Otherwise, I'll start with Endpoint on a fresh machine install it and it works great pulling down the policies. But the ZCM doesn't seem to pull down the policies correctly?
Just wondering if this was known problem or is there something I am not doing correctly...
Thanks
BJ Bradley
This is issue that you are seeing is just for the client, correct? The ZESM server and ZCM server are on separate machines, correct?
Maybe you are looking for
-
How to get Current Quarter and Fiscal Quarter for a Date - Fiscal Year starts from 1st April
Hi, I need to calculate current quarter and fiscal quarter in my Sql query. I have a column for DateTime Datatype. I need to find out Current Quarter Name like Q12012, Q22012, Q32012, Q42012 and Fiscal Quarter Name as well. Now Fiacal Year starts f
-
I can open other projects, but when I open this particular project I get only a black workspace and the error message "Premiere Elements has encountered an error. [..\..\Src\RenderFrameRequest.cpp-121]"
-
Dear Experts, Please explain how the following requirement can be accomplished. Current state in legacy system: Run the payment run by bank account as they do not have ability to run the payment run for all banks at the same time. Have about 50 compa
-
As per above the Reget add on is now not compatible with Firefox's latest version. Is this something which Firefox is looking into? Is there a work around or is this up to Reget to remedy?
-
Do I need to have both RH Server and Office
If I have the RH server license do I need to buy the RoboHelp office as well for every single user?