Problem with Java and APC Network Shutdown Software
I am having an issue with APC's Network shutdown software. On any Win2k Server I load the software on after logging off from the console I am unable to reconnect to the web interface for the APC Powerchute Network Shutdown software. If I stop and restart the Powerchute Network shutdown service it is fine again until I log back off.
I opened a support ticket with APC but they told me this is due to a bug with the underlying JAVA software and I had to get support from Sun for this issue. They referenced Sun Bug Number #4619811 but when I checked that bug out it did not have a solution.
Any thoughts, this only seems to be affecting Win2k Servers, Win2k3 Servers work just fine.
Hi cptjim,
i have exactly the same problem on two totaly different Win2k3 machines.
APC told me to try the following (i haven�t tried so far, but will test and report on monday):
To find the APC Powerchute Network Shutdown Service in the registry, use the following path:
HKey_Local_Machine/System/CurrentControlSet/Services/PowerchuteNetworkShutdown/Parameters/AppParameters
Open up the AppParameters folder, right click, go to Modify and Add -Xrs before the following entry:
<space>-Xrs<space>-cp
.\lib\m11.jar;.\lib\collections.jar;.\lib\jsdk.jar;.\comp\AAOL.jar;.\comp\CommandFileRunner.jar;.\comp\EventLogger.jar;.\comp\http.jar;.\comp\Notifier.jar;.\comp\Omaha.jar;.\comp\PowerSourceAggregator.jar;.\comp\PSAggregator.jar;.\comp\RunTimeVerifier.jar;.\comp\Shutdowner.jar;.\comp\StdPowerSource.jar;.\comp\ps\StdPowerSource.jar;.\comp\shutdownerlets\OSshutdownerlet.jar;
com.apcc.m11.arch.application.Application
Hope this helps
Similar Messages
-
My wife has been having problems with Safari, and many third party software and malware programs infecting her Mac Book Pro. I have tried to reset Safari but it keeps coming back, taking over Safari, changing defaults, start pages, and search engines, Etc.
Is it safe to use programs like MacKeeper, who keeps send my wife's computer message and alerts, or should I just wipe the drive and start over?
SkipI am having lot's of lag time with Safari, etc..
I'll type in a website.. and it will take 15-20 seconds to start..
Start time: 17:51:37 12/02/14
Model Identifier: MacBookPro11,3
System Version: OS X 10.10.1 (14B25)
Kernel Version: Darwin 14.0.0
Time since boot: 14 days 3:02
USB
My Passport 07B8 (Western Digital Technologies, Inc.)
Diagnostic reports
2014-11-13 QuickLookSatellite crash x2
2014-11-21 com.apple.WebKit.Plugin.64 crash
Log
Nov 30 21:32:39 PM notification timeout (pid 345, Adobe CEF Helper)
Nov 30 21:32:39 PM notification timeout (pid 99018, CEPHtmlEngine)
Nov 30 21:32:39 PM notification timeout (pid 99019, CEPHtmlEngine He)
Dec 1 09:09:03 [[0xffffff802bfa4000] OpCode 0x0C01 (Set Event Mask) from: kernel_task (0) Synchronous status: 0x00 (kIOReturnSuccess) state: 2 (BUSY) timeout: 5000] Bluetooth warning: An HCI Req timeout occurred.
Dec 1 09:52:03 PM notification timeout (pid 266, Creative Cloud)
Dec 1 09:52:03 PM notification timeout (pid 346, Adobe CEF Helper)
Dec 1 09:52:03 PM notification timeout (pid 345, Adobe CEF Helper)
Dec 1 10:04:37 process WindowServer[114] caught causing excessive wakeups. Observed wakeups rate (per sec): 170; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 12755007
Dec 1 10:31:08 ALF: ifnet_get_address_list_family error 12
Dec 1 10:59:17 process Meeting Center[2921] caught causing excessive wakeups. Observed wakeups rate (per sec): 647; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45104
Dec 1 12:24:35 process com.apple.WebKit[4567] caught causing excessive wakeups. Observed wakeups rate (per sec): 297; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 76962
Dec 1 14:31:01 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 397; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 53188
Dec 1 14:43:52 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 224; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 150084
Dec 1 14:47:34 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 332; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 222103
Dec 1 15:03:29 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 214; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 370572
Dec 1 16:38:03 SIOCPROTODETACH_IN6: utun2 error=6
Dec 1 16:38:08 SIOCPROTODETACH_IN6: utun2 error=6
Dec 1 20:08:30 jnl: disk3s2: replay_journal: from: 112328704 to: 113115136 (joffset 0x3a38000)
Dec 1 20:08:30 jnl: disk3s2: journal replay done.
Dec 1 20:27:11 com.adobe.acc.AdobeCreativeCloud.75292.UUID: Service exited with abnormal code: 5
Dec 2 08:23:00 process com.apple.WebKit[11891] caught causing excessive wakeups. Observed wakeups rate (per sec): 161; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 527508
Dec 2 09:29:37 firefox (map: 0xffffff80317c5960) triggered DYLD shared region unnest for map: 0xffffff80317c5960, region 0x7fff9ae00000->0x7fff9b000000. While not abnormal for debuggers, this increases system memory footprint until the target exits.
Dec 2 10:04:39 SIOCPROTODETACH_IN6: utun2 error=6
Dec 2 10:04:44 SIOCPROTODETACH_IN6: utun2 error=6
Dec 2 16:42:24 process com.apple.WebKit[26151] caught causing excessive wakeups. Observed wakeups rate (per sec): 153; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45002
Swap (MiB): 41556
Activity
Net: 210 in, 20 out (KiB/s)
Memory: kernel_task (UID 0) is using 1632 MB
kexts
com.cisco.kext.acsock (1.1.0)
com.wdc.driver.USB.64.10.9 (1.0.1)
Daemons
com.cisco.anyconnect.vpnagentd
com.oracle.java.JavaUpdateHelper
com.apple.installer.osmessagetracing
com.microsoft.office.licensing.helper
com.google.keystone.daemon
com.wdc.WDSmartWareService
com.oracle.java.Helper-Tool
com.adobe.fpsaud
com.wdc.SmartwareDriveService
Agents
com.adobe.AdobeCreativeCloud
com.zimbra.desktop
com.citrix.ServiceRecords
com.google.keystone.system.agent
com.apple.photostream-agent
com.genieo.completer.download
com.genieo.completer.update
com.cisco.anyconnect.gui
com.citrix.ReceiverHelper
com.citrix.AuthManager_Mac
com.citrix.FMDAgent.14800.UUID
com.oracle.java.Java-Updater
com.fiplab.MailTabProHelper
com.adobe.PDApp.AAMUpdatesNotifier.74724.UUID
com.citrixonline.GoToMeeting.G2MUpdate
com.apple.AirPortBaseStationAgent
com.microsoft.SyncServicesAgent
Startup items
/System/Library/StartupItems/ciscod/ciscod
/System/Library/StartupItems/ciscod/StartupParameters.plist
Bundles
/System/Library/Extensions/hp_fax_io.kext
- com.hp.kext.hp-fax-io
/System/Library/Extensions/hp_Inkjet1_io_enabler.kext
- com.hp.print.hpio.Inkjet1.kext
/System/Library/Extensions/hp_Inkjet4_io_enabler.kext
- com.hp.print.hpio.Inkjet4.kext
/System/Library/Extensions/hp_Inkjet8_io_enabler.kext
- com.hp.print.hpio.inkjet8.kext
/System/Library/Extensions/JMicronATA.kext
- com.jmicron.JMicronATA
/System/Library/Extensions/WD1394_64_109HPDriver.kext
- com.wdc.driver.1394.64.10.9
/System/Library/Extensions/WDUSB_64_109HPDriver.kext
- com.wdc.driver.USB.64.10.9
/Library/Extensions/hp_io_printerclassdriver_enabler.kext
- com.hp.hpio.hp-io-printerclassdriver-enabler
/Library/Internet Plug-Ins/AdobeAAMDetect.plugin
- com.AdobeAAMDetectLib.AdobeAAMDetect
/Library/Internet Plug-Ins/CitrixICAClientPlugIn.plugin
- com.citrix.citrixicaclientplugIn
/Library/Internet Plug-Ins/Flash Player.plugin
- N/A
/Library/Internet Plug-Ins/googletalkbrowserplugin.plugin
- com.google.googletalkbrowserplugin
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin
- com.oracle.java.JavaAppletPlugin
/Library/Internet Plug-Ins/npg.plugin
- npg.graphon.com
/Library/Internet Plug-Ins/o1dbrowserplugin.plugin
- com.google.o1dbrowserplugin
/Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin
- com.microsoft.sharepoint.browserplugin
/Library/Internet Plug-Ins/SharePointWebKitPlugin.webplugin
- com.microsoft.sharepoint.webkitplugin
/Library/Internet Plug-Ins/Silverlight.plugin
- com.microsoft.SilverlightPlugin
/Library/Internet Plug-Ins/SlingPlayer.plugin
- com.slingmedia.slingplayer.plugin.nspapi
/Library/PreferencePanes/Flash Player.prefPane
- com.adobe.flashplayerpreferences
/Library/PreferencePanes/FMDSysPrefPane.prefPane
- Citrix.FMDSysPrefPane
/Library/PreferencePanes/JavaControlPanel.prefPane
- com.oracle.java.JavaControlPanel
/Library/PreferencePanes/WDQuickViewPrefsPane.prefPane
- com.westerndigital.quickview.prefpanel
/Library/PreferencePanes/Zimbra.prefPane
- com.zimbra.prefpanel
/Library/ScriptingAdditions/Adobe Unit Types.osax
- N/A
Library/Address Book Plug-Ins/SkypeABDialer.bundle
- com.skype.skypeabdialer
Library/Address Book Plug-Ins/SkypeABSMS.bundle
- com.skype.skypeabsms
Library/Internet Plug-Ins/CitrixOnlineWebDeploymentPlugin.plugin
- com.citrixonline.mac.WebDeploymentPlugin
Library/Internet Plug-Ins/Google Earth Web Plug-in.plugin
- com.Google.GoogleEarthPlugin.plugin
Library/Internet Plug-Ins/WebEx.plugin
- com.webex.WebEx
Library/Internet Plug-Ins/WebEx.plugin/Contents/Resources
- com.webex.WebEx
Library/Internet Plug-Ins/WebEx64.plugin
- com.cisco_webex.plugin.gpc64
dylibs
/usr/lib/libaudioc.dylib
/usr/lib/libclipc.dylib
/usr/lib/libcs.dylib
/usr/lib/libdc.dylib
/usr/lib/libfilec.dylib
/usr/lib/libMonoPosixHelper.dylib
/usr/lib/libpbr.dylib
/usr/lib/libprintc.dylib
/usr/lib/libsc.dylib
/usr/lib/libSFFileMonitor.32.dylib
/usr/lib/libSFIPC.32.dylib
/usr/lib/libSFIPC.I.dylib
/usr/lib/libSFsqlite3.7.4.dylib
/usr/lib/libSFSyncEngine.I.dylib
/usr/lib/libupc.dylib
App extensions
it.bloop.airmail.beta10.Airmail-Today-Beta
it.bloop.airmail.beta10.Airmail-Composer-Beta
com.wunderkinder.wunderlistdesktop.sharingextension
com.wunderkinder.wunderlistdesktop.todayextension
com.readitlater.PocketMac.AddToPocketShareExtension
com.stylemac.instadesk.Photodesk-Feed
it.bloop.airmail.beta10.Airmail-Share-Beta
Apps
/Applications/Uninstall IM Completer.app
Contents of /Library/LaunchAgents/com.cisco.anyconnect.gui.plist (checksum 1087717482)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>PathState</key>
<dict>
<key>/opt/cisco/anyconnect/gui_keepalive</key>
<true/>
</dict>
</dict>
<key>Label</key>
<string>com.cisco.anyconnect.gui</string>
<key>LimitLoadToSessionType</key>
<string>Aqua</string>
<key>ProgramArguments</key>
<array>
<string>open</string>
<string>--wait-apps</string>
<string>/Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app</string>
</array>
</dict>
</plist>
Contents of /Library/LaunchAgents/com.citrix.AuthManager_Mac.plist (checksum 1591517921)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ServiceIPC</key>
<true/>
<key>MachServices</key>
<dict>
<key>com.citrix.AuthManager_Mac</key>
<true/>
</dict>
<key>Label</key>
<string>com.citrix.AuthManager_Mac</string>
<key>WaitForDebugger</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/libexec/AuthManager_Mac.app/Contents/MacOS/AuthManager_Mac</ string>
</array>
<key>LimitLoadToSessionType</key>
<string>Aqua</string>
<key>Disabled</key>
<false/>
</dict>
</plist>
Contents of /Library/LaunchAgents/com.citrix.ReceiverHelper.plist (checksum 676087606)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.citrix.ReceiverHelper</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>WaitForDebugger</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/libexec/ReceiverHelper.app/Contents/MacOS/ReceiverHelper</st ring>
</array>
<key>LimitLoadToSessionType</key>
<string>Aqua</string>
<key>Disabled</key>
<false/>
</dict>
</plist>
Contents of /Library/LaunchAgents/com.citrix.ServiceRecords.plist (checksum 1445213025)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ServiceIPC</key>
<true/>
<key>MachServices</key>
<dict>
<key>com.citrix.Beacons</key>
<true/>
<key>com.citrix.ServiceRecords</key>
<true/>
</dict>
<key>Label</key>
<string>com.citrix.ServiceRecords</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WaitForDebugger</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/libexec/ServiceRecords.app/Contents/MacOS/ServiceRecords</st ring>
</array>
...and 8 more line(s)
Contents of /Library/LaunchAgents/com.oracle.java.Java-Updater.plist (checksum 3453356730)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.oracle.java.Java-Updater</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java Updater.app/Contents/MacOS/Java Updater</string>
<string>-bgcheck</string>
</array>
<key>StandardErrorPath</key>
<string>/dev/null</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Minute</key>
<integer>57</integer>
<key>Weekday</key>
<integer>3</integer>
</dict>
</dict>
...and 1 more line(s)
Contents of /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist (checksum 2630047092)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.cisco.anyconnect.vpnagentd</string>
<key>ProgramArguments</key>
<array>
<string>/opt/cisco/anyconnect/bin/vpnagentd</string>
<string>-execv_instance</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>AbandonProcessGroup</key>
<true/>
<key>EnableTransactions</key>
<false/>
</dict>
</plist>
Contents of /Library/LaunchDaemons/com.wdc.SmartwareDriveService.plist (checksum 2733252498)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.wdc.SmartwareDriveService</string>
<key>Program</key>
<string>/Library/Application Support/WD SmartWare Services/SmartwareDriveService</string>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/dev/null</string>
</dict>
</plist>
Contents of /Library/LaunchDaemons/com.wdc.WDSmartWareService.plist (checksum 1153517838)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.wdc.WDSmartWareService</string>
<!-- <key>Program</key>
<string>/Library/Application Support/WD SmartWare Services/SmartwareServerApp.app/Contents/MacOS/SmartwareServiceApp</string> -->
<key>ProgramArguments</key>
<array>
<string>/Library/Application Support/WD SmartWare Services/SmartwareServiceApp.app/Contents/MacOS/SmartwareServiceApp</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/dev/null</string>
</dict>
</plist>
Contents of Library/LaunchAgents/com.genieo.completer.download.plist (checksum 1894818845)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.genieo.completer.download</string>
<key>ProgramArguments</key>
<array>
<string>/Users/USER/Library/Application Support/com.genieoinnovation.Installer/Completer.app/Contents/MacOS/Installer</ string>
<string>-trigger</string>
<string>download</string>
<string>-isDev</string>
<string>0</string>
<string>-installVersion</string>
<string>15886</string>
<string>-firstAppId</string>
<string>19340001</string>
</array>
<key>WatchPaths</key>
<array>
<string>/Users/USER/Downloads</string>
</array>
</dict>
</plist>
Contents of Library/LaunchAgents/com.genieo.completer.update.plist (checksum 2339121592)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.genieo.completer.update</string>
<key>ProgramArguments</key>
<array>
<string>/Users/USER/Library/Application Support/com.genieoinnovation.Installer/Completer.app/Contents/MacOS/Installer</ string>
<string>-trigger</string>
<string>update</string>
<string>-isDev</string>
<string>0</string>
<string>-installVersion</string>
<string>15886</string>
<string>-firstAppId</string>
<string>19340001</string>
</array>
<key>StartInterval</key>
<integer>86400</integer>
</dict>
</plist>
Contents of Library/LaunchAgents/com.microsoft.LaunchAgent.SyncServicesAgent.plist (checksum 3051698494)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>com.microsoft.SyncServicesAgent</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/Applications/Microsoft Office 2011/Office/SyncServicesAgent.app/Contents/MacOS/SyncServicesAgent</string>
</array>
</dict>
</plist>
Contents of Library/LaunchAgents/com.zimbra.desktop.plist (checksum 3676173668)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.zimbra.desktop</string>
<key>ProgramArguments</key>
<array>
<string>/Users/USER/Library/Zimbra Desktop/bin/zdesktop</string>
<string>start</string>
<string>-w</string>
</array>
-
Problem with java and pogo games
i use mozilla and now with the problems with java and hackers cannot play my pogo games,what can i do? i disabled my java i tried java 6 doesnt work or is not safe,what is a safe way to play games on pogo that use java?
Oracle has released a Java 7 Update 11 to address security vulnerabilities and you should update to that version.
*https://support.mozilla.org/kb/how-to-use-java-if-its-been-blocked
See also:
*http://kb.mozillazine.org/Java#Windows_installation_issues
You can find the latest Java version on the Oracle website.
See Java Platform > Java SE 7U11 and Java 6U38 (Download JRE)
*http://www.oracle.com/technetwork/java/javase/downloads/index.html -
Discussion Forum Portlet - Problems with JAVA and UTF8?
Hi
I installed the Discussion Forum Portlet successfully. It also seems that almost everything works fine. There's only a problem if I have new posts that include special German characters (Umlaute) like ä, ö, ü or special French characters like é, è or ç. They are saved correctly in the table but if you view the post the characters are not displayed correctly.
Example
input: ça va?
result: ça va?
I know that there are problems with Java and UTF8 Database. Is there a possibility to change this (bug)?
Regards
MarkHere's what I got. I don't see anything that helps but I'm kinda new to using SQL and java together.
D:\javatemp\viddb>java videodb
Problem with SQL java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver
] Syntax error in CREATE TABLE statement.
Driver Error Number-3551
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in
CREATE TABLE statement.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
at videodb.main(videodb.java:31)
D:\javatemp\viddb> -
Problem with Java and Windows (Mainly Vista and UAC)
Hi all,
I am having a problem with a program that I've devoloped. The program itself is packaged as a jar and I plan to deploy it across multiple platforms eventually however right now i am only concerned about windows based systems. I have made an installer for a windows baised systems using NSIS to install the software files. I made the installer as I need several java packages to be installed so the program would work (JAI, J3D, JAI ImageIO) and I also require the program to have fileassociations on windows.
I know that this is not what java is about, however the majority of the users will be on windows baised systems so I've decided that OS specific installers is the best option.
During the process I have noticed that there are several key problem with java for this type of application!
The first issue that I have come across is getting file associations to work on java. As a .jar is not an excutable it is not possible to directly associate a filetype with it in java so to overcome this I currently run the program from a .bat files and also the program requires large memory so this also allows me to run the program with -xmx. The batch file that I use is :
<code>
cd PATH TO PROGRAM
start javaw -Dsun.java2d.noddraw=true -Xmn100M -Xms500M -Xmx1000M -jar "PATH TO PROGRAM\program.jar" %1 -vram 134217728
pause;
</code>
Ok so all this appears to work fine and allows windows to have file associations and start the program and thats all works perfectly but this is a non-ideal solution. Has anyone got any advice on improving this?
The next problem that I have appears to be a problem with Vista and UAC (user access control). When a user installs the program and installs the program into the program files directory I found that the program did not work and kept saying that I did not have access to the files in the current directory. This is a problem as I read and write settings files during program execution.
On a Vista system UAC prevents file write operations into the Program Files directory unless the program has requested elevated status even if the user is a full administrator. The probem is that there appears to be no real way to achieve this under java that I'm aware of...
Has anyone else had this probem and has a suitable solution?
Any advice on these issues would realy be appricated.
Regards
JoeyOk so i've kinda found a solution, its not ideal but its very good. I found this program called Elevate
A link to the site I got it was
http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/03/27/elevate-a-process-at-the-command-line-in-vista.aspx
This program allows you start java with a UAC dialog for high access using
Elevate java -jar myjar.jar
This then allows you to have full access using java... I guess it could be dangerous but it does the job. -
I have a problem with Java and an e-procurement system integrating
I use an e-procurement system at work and yesterday I could not get my parts list from the suppliers web site to display in our in-house eprocurment finance package.
There is not a problem with the finance package. There is not a problem with the suppliers web site. I have verified both of these by other colleagues being able to complete what I am trying to do.
The difference between my version of Firefox and my colleagues' is that I am on version 6.0.1 and they are on 6.0.
I have had problems with Java not displaying certain animations on the suppliers web site but, my colleague does not and I am suspicious that this is the problem. Can anyone verify this please and what can I do about it. My Java updates are up-to-date as of yesterday and are automatic.
Thanks.I was quite amazed I never got a reply to this, in the past people here have been helpful. In any case I was finally able to enter this website on the exceptions list in the Java panel, and I believe it is okay now.
-
Events problem with (Java and ActiveX)
Hi,
I use an ActiveX component with Java and i've got a problem with events.
Java classes were generated with Bridge2Java (IBM).
In order to manage events I added a listener in my application :
javaMyActiveX = new MyActiveX();
javaMyActiveX.add_DMyActiveXEventsListener(new _DMyActiveXEventsAdapter());
I also added a constructor in the _DMyActiveXEventsAdapter class and I fill the body of methods.
The ActiveX generates two types of events :
- The ones are directly generated by methods.
- The others are generated by a thread.
With MS Products (VB, Visual C++, Visual J++), I catch all events.
With java (jdk 1.4), I catch only events generated by methods.
Can anyone help me.I'm not 100% sure, but the last time I used that bridge, it only worked if you ran your Java app within a Microsoft VM.
-
I am having a problem with Java and Abode. Trying to play Pogo.
Every time I try and play Pogo I have a problem. It pops up with a message about Java. If I hit the button it says to activate add on's which I try and do and now it will not do anything. Is my problem with Firefox or pogo. It seems that most of the problem is abode because it pops up every where.
Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
Once you're there, the site will check if all your plugins have the latest versions.
If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure. -
Problem with java and yahoo games
hello everyone,
i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me please, i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me pleaseSo here is what comes to pass.
Recall this started as a Lion Safari/5+ environment that SU took to version 6.
Two weeks ago I just updated Flash Player. Today I fire up Java Preferences and I am told that I need to download Java. Did so, intentionally hit the "factory reset" button and then installed the Flash Player from teh Adobe site. The most recent install suggests automatic update but I choose "ask first."
Restart Safari and we seem to be in order
Thanks -
Problem with Java and Zip Files
Hello there everyone. I have a problem with trying to zip up directories with empty folders in them. They zip fine with my code, but according to winzip, the number of files in the archive is incorrect. It's supposed to have a total of 288 files in it, but when it's zipped up, it only says 284. I mention specifically the "empty directories" note because the zipping works fine without empty folders.
Below is the code for the zip method:
public static void zip(File[] list, File zipfile, File zipRoot)
throws IOException {
if (!zipfile.exists()) {
zipfile.createNewFile();
else if (!zipfile.isFile()) {
throw new IOException("The zip file, " + zipfile.getAbsolutePath()
+ " is not a file.");
if (list.length == 0) {
LOG.error("The list of files to zip up is empty.");
for (int i = 0; i < list.length; i++) {
if (!list.exists()) {
throw new IOException("The file or directory, " + list[i].getAbsolutePath()
+ " does not exist.");
FileOutputStream fos = new FileOutputStream(zipfile);
ZipOutputStream zos = new ZipOutputStream(fos);
for (int i = 0; i < list.length; i++) {
if (LOG.isDebugEnabled())
LOG.debug(i + ": " + list[i].getName());
String entryName = getRelativeName(list[i], zipRoot);
if (list[i].isDirectory()){
if (list[i].listFiles().length == 0){
ZipEntry entry = new ZipEntry(entryName + "/");
zos.putNextEntry(entry);
else {
ZipEntry ze = new ZipEntry(entryName);
zos.putNextEntry(ze);
byte[] buffer = new byte[8096];
FileInputStream fis = new FileInputStream(list[i]);
int read = 0;
read = fis.read(buffer);
if (LOG.isDebugEnabled())
LOG.debug("\tFound " + read + " bytes.");
if (read == -1){
//empty file, but add it for preservation.
//zos.write(buffer,0,0);
while (read != -1) {
zos.write(buffer, 0, read);
read = fis.read(buffer);
fis.close();
zos.closeEntry();
zos.close();
The files look like they're there, but I need the system to be able to determine the number correctly.
Here's the interesting thing: It zips the files, and then when I use the size() method for zip files in java, it says 284 files. But when I unzip, it says 288 again. It's like there's files missing when compressed, but when decompressed, they return. Note that the files are actually there. If I open the archive in a third party app such as Winzip AND Winrar AND IZarc, they all show 288 files. Any idea what would make the number of files appear incorrectly in a zip file when zipped by java with the code above? Thanks in advance.
- ChrisI figured out the problem. When zipping files in windows using winzip, it doesn't explicitly count folders as a "file/folder" as a file in itself. It will create the folders for files to go in, but the folder itself will not be 'counted' when you query the info of the file itself. You have more control of the zip file in java, and can count the folder as a file or not.
-
I am having a problem with the Java plug-in and Microsoft Outlook 2003. When I have Outlook running, going to certain websites (like cbs.sportsline.com/collegefootball) will crash my browser (IE). I get a message like this:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : unknown exception code (0xe06d7363) occurred at PC=0x77E73887
Function=RaiseException+0x50
Library=C:\WINDOWS\system32\kernel32.dll
There is much more to the error message which appears as a text file on my desktop. If I close Outlook and try to go to that same CBS site, it works just fine. Has anyone else experienced this? Is there a solution?In Window, the dlls are not private to one
application. They are logically shared. Not true in the sense that would affect this. DLL Text (code, read-only data in some cases) is shared. DLL Writable data is NOT shared between apps - each app gets its own copy of the data pages.
However, it's possible that when Outlook runs, it interacts with IE (which has deep tentacles into the system) in such a way that when Java calls into native IE code, it is affected as an innocent bystander.
Make sure you also install all the Office patches. If that doesn't help, try upgrading your Java VM to the latest version (you are using the Sun VM, right?). -
Compability problem with Java and Python RSA algorithm implementation
I have client server application. Server is writtein in python, client in java. Client receives messages from server encrypted with RSA (http://stuvel.eu/rsa), and I'm unable to decrypt it. It seems that this is RSA algorithm compatibility problem. I'm using algorithm from java.security package, instatinating Cipher object like this: c = Cipher.getInstance("RSA"); . I noticed that this algorithm produces for input blocks of lengtrh <=117 ouput block of length 128. Server I guess uses the most triviall impelentation of RSA ( (1 byte is encrypted to 1 byte) So i want to make my java algorithm compatibile with this one which server uses. How to do that ? Do i have to instatinate Cipher object in different way ? Or use another library ?
azedor wrote:
First you said it was no good because it could only handle <= 117 byte inputs, now you say it is no good because it produces a 128-byte output. You're not making sense.First i said that this two RSA implementations are not compatibile, and first reason i noticed firstly is that Python imlementation for input of length N produces cryptogram of the same length. Not true. In general, the RSA encryption of any number of bytes less than the length of the modulus will produce a result of length near that of the modulus. When N is less than the length of the modulus, it is rare that N bytes of cleartext produces N bytes of ciphertext.
Java implementation for data block of length <=117 produces alwasy 128 bytes of output.Pretty much correct and very much desirable. This is primarily a function of the PKCS1 padding which is used to solve two basic problems. First, as I alluded to in my first response, it is the nature of the algorithm that leading zeros are not preserved and second when the cleartext is very small (a few bytes) the exponentiation does not roll over and it is easy to decrypt the result. Both these problems are addressed by PKCS1 padding.
>
>
After what sabre150 said i think of giving up idea of translating Python code to Java and considering to use another assymetric cryptography algorithms on both sides. Can you recommend me sth what should be compatibile with Python ?This seems to be at odds with your statement in reply #3 "Also have acces only to client code so i have to change sth in java." ! This statement is why I said "I suspect ... you have dug a deep hole".
In your position I would use the Python bindings for openssl. Once more, Google is your friend. -
Problem with Skype and Wireless Networks
I have been having a problem with Airport for about 10 months. Long winded explanation follows.
Initially file transfers over wireless networks were extremely slow but this seems to have been that 10.5.2 update problem. There is a remaining issue when I use Skype on my Mac (details below) connected to a wireless network the incoming and outgoing audio drop out for 1 - 3 seconds at irregular but frequent intervals (approx every 5 - 10 seconds). This is regardless of the wireless network I am on - and that is dozens of them all over the world. Note it is voice only calls, not video. Apple has replaced the Airport card and the mother board; the OS has been reinstalled; test accounts set up but nothing fixes the problem.
At one point I had temporary relief by switching off 'Configure IPv6' in System Preferences/Network/Airport/TCP/IP. This worked for a month or so but now the problem is back as before.
All other aspects of wireless activity are fine. Wireless firmware is 1.4.4.
I have worn out my welcome with the usually sensational help desk. Any suggestions out there in Mac Land?Hi there
Been a hectic week here getting this problem resolved. It is all OK now. Here is what we found and how it was done.
When Airport was playing up we set up an unlimited ping of the wireless router in the office. This is what it showed:
PING 10.10.10.1 (10.10.10.1): 56 data bytes
64 bytes from 10.10.10.1: icmp_seq=0 ttl=255 time=1929.885 ms
64 bytes from 10.10.10.1: icmp_seq=1 ttl=255 time=929.788 ms
64 bytes from 10.10.10.1: icmp_seq=2 ttl=255 time=2.633 ms
64 bytes from 10.10.10.1: icmp_seq=3 ttl=255 time=1.845 ms
64 bytes from 10.10.10.1: icmp_seq=4 ttl=255 time=1.941 ms
64 bytes from 10.10.10.1: icmp_seq=5 ttl=255 time=1922.656 ms
64 bytes from 10.10.10.1: icmp_seq=6 ttl=255 time=922.724 ms
64 bytes from 10.10.10.1: icmp_seq=7 ttl=255 time=2.012 ms
64 bytes from 10.10.10.1: icmp_seq=8 ttl=255 time=1.974 ms
64 bytes from 10.10.10.1: icmp_seq=9 ttl=255 time=2.283 ms
64 bytes from 10.10.10.1: icmp_seq=10 ttl=255 time=1918.448 ms
64 bytes from 10.10.10.1: icmp_seq=11 ttl=255 time=919.372 ms
64 bytes from 10.10.10.1: icmp_seq=12 ttl=255 time=2.609 ms
64 bytes from 10.10.10.1: icmp_seq=13 ttl=255 time=2.037 ms
64 bytes from 10.10.10.1: icmp_seq=14 ttl=255 time=2.259 ms
64 bytes from 10.10.10.1: icmp_seq=15 ttl=255 time=1921.022 ms
64 bytes from 10.10.10.1: icmp_seq=16 ttl=255 time=920.825 ms
64 bytes from 10.10.10.1: icmp_seq=17 ttl=255 time=2.416 ms
64 bytes from 10.10.10.1: icmp_seq=18 ttl=255 time=2.063 ms
64 bytes from 10.10.10.1: icmp_seq=19 ttl=255 time=1.954 ms
64 bytes from 10.10.10.1: icmp_seq=20 ttl=255 time=1917.649 ms
64 bytes from 10.10.10.1: icmp_seq=21 ttl=255 time=917.617 ms
64 bytes from 10.10.10.1: icmp_seq=22 ttl=255 time=2.018 ms
64 bytes from 10.10.10.1: icmp_seq=23 ttl=255 time=2.057 ms
64 bytes from 10.10.10.1: icmp_seq=24 ttl=255 time=2.106 ms
64 bytes from 10.10.10.1: icmp_seq=25 ttl=255 time=1916.329 ms
64 bytes from 10.10.10.1: icmp_seq=26 ttl=255 time=916.347 ms
64 bytes from 10.10.10.1: icmp_seq=27 ttl=255 time=2.020 ms
64 bytes from 10.10.10.1: icmp_seq=28 ttl=255 time=2.151 ms
64 bytes from 10.10.10.1: icmp_seq=29 ttl=255 time=2.005 ms
64 bytes from 10.10.10.1: icmp_seq=30 ttl=255 time=1915.818 ms
64 bytes from 10.10.10.1: icmp_seq=31 ttl=255 time=915.821 ms
64 bytes from 10.10.10.1: icmp_seq=32 ttl=255 time=2.091 ms
64 bytes from 10.10.10.1: icmp_seq=33 ttl=255 time=2.061 ms
64 bytes from 10.10.10.1: icmp_seq=34 ttl=255 time=2.064 ms
64 bytes from 10.10.10.1: icmp_seq=35 ttl=255 time=1911.739 ms
64 bytes from 10.10.10.1: icmp_seq=36 ttl=255 time=911.753 ms
64 bytes from 10.10.10.1: icmp_seq=37 ttl=255 time=1.923 ms
64 bytes from 10.10.10.1: icmp_seq=38 ttl=255 time=2.788 ms
64 bytes from 10.10.10.1: icmp_seq=39 ttl=255 time=1.911 ms
64 bytes from 10.10.10.1: icmp_seq=40 ttl=255 time=1907.626 ms
64 bytes from 10.10.10.1: icmp_seq=41 ttl=255 time=907.528 ms
64 bytes from 10.10.10.1: icmp_seq=42 ttl=255 time=1.847 ms
64 bytes from 10.10.10.1: icmp_seq
and so on.
After discussion with tech support they said the Airpot card had to be replaced. This was done with admirable expediency and I got the MBP back in 36 hours. On testing it the same problem was still there. Identical pattern on the ping test, the fault was not the hardware.
Once more a call to Apple and another tech. This time we booted from the OS 10.5 install disk and ran the ping test. I ran it for a few hours without seeing the fault, it worked fine. The problem had to be in the operating system.
After backing up all the data I zeroed the drive and did a clean install of the OS. Bingo! Problem gone.
So after 10 months, two airport cards and a mother board, the issue was in fact something corrupt deep in the OS.
So to anyone having similar problems with Airport, run a ping test as described above. If you see that kind of pattern, try a clean install before going down the hardware road. -
Hi all. Not sure if I should ask this here or in an SQL forum. I�m trying to manipulate an access database through java via the JDBC-ODBC bridge driver. The program compiles ok but when I try to execute it I get an error. According to the error there is a syntax problem in my SQL create table statement but it doesn�t tell what the problem is and I�ve looked over the create statement and can�t find anything wrong with it. There is, however, an error code from the driver but I have no way of referencing it. Anyone here know why otherwise normal SQL code would cause a syntax error with java or how I can track the error to get a hint at what�s going wrong? Here is the code and the error:
// java program to create an access database through JDBC
import java.sql.*;
public class videodb {
public static void main(String args[]) {
// attempt tp load DB driver
try {
// load the jdbc-odbc driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch (ClassNotFoundException cnfe) // driver not found
System.err.println("Unable to load database driver");
System.err.println("Details : " + cnfe);
System.exit(0);
try {
// Create a connection to the data source
Connection con = DriverManager.getConnection ("jdbc:odbc:vdds","","");
// Create a statement to execute SQL commands
Statement stmt = con.createStatement();
// create a table for DVD's
stmt.executeUpdate ("create table DVD (id number(5), name char(30));");
// insert a record into the DVD table
//stmt.executeUpdate ("insert into DVD values (0001, 'StarGate');");
// Close the connection
con.close();
catch (SQLException sqle) {
System.out.println("Problem with SQL: " + sqle);
System.out.println("Driver Error Number" + sqle.getErrorCode());
Error:
Problem with SQL: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.
Driver Error Number-3551Here's what I got. I don't see anything that helps but I'm kinda new to using SQL and java together.
D:\javatemp\viddb>java videodb
Problem with SQL java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver
] Syntax error in CREATE TABLE statement.
Driver Error Number-3551
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in
CREATE TABLE statement.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
at videodb.main(videodb.java:31)
D:\javatemp\viddb> -
Problems with Java and Business Objects
<p>Hello everybody,<br /><br />I'm new in BusinessObjects/Crystal Report. Now, I have some problems with Business Objects for Java (Business Objects XI Release 2 Developer).</p><p> </p><p>1) I create a report in the report designer. This report has a parameterfield. Before I run this report within a jsp web application I want fill the parameterfield with some values from the database. I found the following code snippet for this problem in your forum. But it don't works right, because it occurs a simple input field instead of a combo box with my database values. Where is my mistake? I need the combo box! (In debug mode I saw that the parameterfield was filled with my data!)</p><p><%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />java.io.IOException,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement,<br />java.util.Locale,<br />com.crystaldecisions.sdk.occa.report.application.DataDefController,<br />com.crystaldecisions.sdk.occa.report.data.FieldDisplayNameType,<br />com.crystaldecisions.sdk.occa.report.data.ParameterField,<br />com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue,<br />com.crystaldecisions.sdk.occa.report.data.Values,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%<br /><br /> try {<br /><br /> String reportName = "avoParameterfeld.rpt";<br /> ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br /> if (clientDoc == null) {<br /> // Report can be opened from the relative location specified in the CRConfig.xml, or the report location<br /> // tag can be removed to open the reports as Java resources or using an absolute path<br /> // (absolute path not recommended for Web applications).<br /><br /> clientDoc = new ReportClientDocument();<br /> clientDoc.setReportAppServer("inproc:jrc");<br /> // Open report<br /> clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br /> // Connection Info for fetching the resultSet<br /> String connectStr = "jdbc:oracle:thin:@it1srv19:1521:itoracle";<br /> String driverName = "oracle.jdbc.driver.OracleDriver";<br /> String userName = "user"; <br /> String password = "password"; <br /><br /> // TODO: Ensure this query is valid in your database. An exception will be thrown otherwise.<br /> String query = "SELECT DISTINCT AVONR FROM MBDEADM.AVO ORDER BY AVONR";<br /> ResultSet paramData = null;<br /> <br /> //we will now pass the resultset to the parameter to use as Default Values<br /> String parameterName = "AVONR2";<br /> int colIndex = 1; //this is the column in the ResultSet to use as the values<br /> <br />// Load JDBC driver for the database that will be queried <br /> Class.forName(driverName);<br /><br /> Connection connection = DriverManager.getConnection(connectStr, userName, password);<br /> Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE , ResultSet.CONCUR_READ_ONLY);<br /> <br /> paramData = statement.executeQuery(query);<br /> <br /> DataDefController dataDefController = clientDoc.getDataDefController();<br /> <br /> ParameterField origParamField = (ParameterField)dataDefController.getDataDefinition().getParameterFields().findField(parameterName, FieldDisplayNameType.fieldName, Locale.getDefault());<br /> ParameterField newParamField = (ParameterField)origParamField.clone(true);<br /> <br /> Values newVals = (Values)newParamField.getDefaultValues().clone(true);<br /> newVals.clear(); <br /> paramData.first();<br /> while(!paramData.isLast()){<br /> ParameterFieldDiscreteValue value = new ParameterFieldDiscreteValue();<br /> value.setValue(paramData.getObject(colIndex));<br /> newVals.add(value);<br /> paramData.next();<br /> }<br /> <br /> dataDefController.getParameterFieldController().modify(origParamField, newParamField);<br /> // Store the report document in session<br /> session.setAttribute(reportName, clientDoc);<br /><br /> }<br /><br /> // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** <br /> {<br /> // Create the CrystalReportViewer object<br /> CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br /> // set the reportsource property of the viewer<br /> IReportSource reportSource = clientDoc.getReportSource(); <br /> crystalReportPageViewer.setReportSource(reportSource);<br /><br /> // set viewer attributes<br /> crystalReportPageViewer.setOwnPage(true);<br /> crystalReportPageViewer.setOwnForm(true);<br /><br /> // Apply the viewer preference attributes<br /><br /> // Process the report<br /> crystalReportPageViewer.processHttpRequest(request, response, application, null);<br /><br /> }<br /> // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** <br /><br /> } catch (ReportSDKExceptionBase e) {<br /> out.println(e);<br /> }<br /> <br />%><br /><br /><br /><br />2) In a other report I tried to update the data source used by the report at runtime. I used the method 'setDataSource(ResultSet rs, String oldTableAlias, String newTableAlias)' of the 'DatabaseController'. I got a message like this: 'At present in Java reporting Component does not implement'. I use JRC and the docs (http://support.businessobjects.com/global/interactive/xi/om/JRC/default.html) show me this method. Is it not possible to change the data at runtime in JRC? (I tried it with the methods 'setDataSource(IXMLDataSet rs, String oldTableAlias, String newTableAlias)', 'setDataSource(Object newds)', 'setDataSource(IDataSet ds, String oldTableAlias, String newTableAlias)', too. But the result was the same!)<br /><br /><br /><br />3) I tried to use Business Objects in JSF framework (Ver MyFaces 1.1.3) with the same samples above. But in JSF nothing work! I got the following exception. What is my problem? Can you get me a tutorial for jsf/BusinessObjects?<br /><br />08:21:43,165 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception<br />javax.faces.FacesException: com.businessobjects.reports.sdk.JRCCommunicationAdapter<br /> at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:435)<br /> at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)<br /> at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)<br /> at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)<br /> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> at de.itinformatik.mes.web.filter.SynchronizingFilter.doFilter(SynchronizingFilter.java:42)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> at de.itinformatik.mes.web.ajax.aa.AAFilter.doFilter(AAFilter.java:54)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br /> at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)<br /> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)<br /> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)<br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br /> at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br /> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br /> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)<br /> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)<br /> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br /> at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)<br /> at java.lang.Thread.run(Thread.java:595)<br />Caused by: java.lang.ClassCastException: com.businessobjects.reports.sdk.JRCCommunicationAdapter<br /> at com.crystaldecisions.sdk.occa.report.application.ReportClientDocumentState.saveContents(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.ReportClientDocumentState.save(Unknown Source)<br /> at com.crystaldecisions.xml.serialization.XMLObjectSerializer.save(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.writeExternal(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.writeExternal(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.writeExternal(Unknown Source)<br /> at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)<br /> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br /> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br /> at java.util.Hashtable.writeObject(Hashtable.java:813)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:585)<br /> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)<br /> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)<br /> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br /> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br /> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br /> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br /> at java.util.ArrayList.writeObject(ArrayList.java:569)<br /> at sun.reflect.GeneratedMethodAccessor669.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:585)<br /> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)<br /> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)<br /> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br /> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br /> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br /> at java.util.ArrayList.writeObject(ArrayList.java:569)<br /> at sun.reflect.GeneratedMethodAccessor669.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:585)<br /> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)<br /> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)<br /> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)<br /> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)<br /> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)<br /> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)<br /> at org.apache.myfaces.application.jsp.JspStateManagerImpl.serializeView(JspStateManagerImpl.java:590)<br /> at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:493)<br /> at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:332)<br /> at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:122)<br /> at org.apache.jsp.testCR_jsp._jspx_meth_f_view_0(org.apache.jsp.testCR_jsp:149)<br /> at org.apache.jsp.testCR_jsp._jspService(org.apache.jsp.testCR_jsp:83)<br /> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)<br /> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)<br /> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)<br /> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<br /> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)<br /> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)<br /> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)<br /> at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)<br /> ... 32 more<br /><br /><br />Thanks for your assistance <br /><br />Tosch</p>Which Business Objects are you referring to.
MS .NET has a thing called Business Objects but they only work in .NET.
Maybe you are looking for
-
Why does you tube prevent music video downloads?
I have figured out that music companies do not want you tube users to download videos to their hard drives or jump drives. Well, I want to. All the other videos work fine. I am using Firefox 18.0 with video download helper, and every time I download
-
Problem in the local file download by gui_download,pls help!
hello,everyone, when I use 'GUI_DOWNLOAD' to download file to my pc,the data in the file has some display problem,eg:'440006114002084000 'displayed as 4.40006E+17 when I enlarge the excel grid,then the '4.40006E+17 ' just not change to 4400061140020
-
Utilizing different exchange rate type for same currency combination
Hello Gurus, I wanted to get your opinion/experience in handling the following scenario. We have company codes in different countries operating using different local currencies. There is alternate exchange rate type EURX defined for Exchange rate ty
-
Problem assigning Essbase Security filters in Shared Services
We recently upgraded Planning/Essbase to System 9 version 931 in Test. Everything went smoothly except for few users Security didn't migrate properly. In Shared Services, it shows that user has access to Planning & Native Essbase Applications. But in
-
Need help creating horizontal scrollbar in graphic timelime (built in AI)!
I am trying to use Catlyst to build an interactive scrollbar on a graphic timeline build in Adobe Illustrator, I want to be able to scroll from one end of timeline to the other. Can anyone help? Thanks!