Is there a way to tell what is actually being passed to DB from PreparedSta
Is there a way to tell what is actually being passed to DB from PreparedStatement? What I mean by that is that I have a PreparedStatement that is a simple
prepstmt = connection.prepareStatement("Insert into table (col1, col2, col3, .... colx) values (?,?,?....?)");
(there are x ?s)
I precompile this, and later, when there is a connection I call set all the variables
prepstmt.setInt(1, someint); prepstmt.setString(2, "\\'" + somestring + "\\'"); etc... prepstmt.executeUpdate();
I get back an exception thrown by Oracle complaining that one of my values is too large for the column (but doesn't say what column/value).
So I made a string that contains what ought to be the same query
String debug = "Insert into table (col1, col2, col3, .... colx) values (someint,'somestring',etc....someotherint)"; System.out.println(debug);
I give the printed out line directly to Oracle through SQLScratchpad and it works just fine in there and I can confirm the row has been inserted. Nothing is too big.
Is there a way to look at what the PreparedStatement actually has as values in there? I found I could look at the original statement (the one with the ?s) if I expand the prepstmt object in the debugger's (Eclipse) view, but nothing to show me where the values were filled in.
Thanks for any help you can give me.
Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.
Similar Messages
-
Is there a way to tell what settings were used to export a PDF?
Is there any way to tell what export settings were used to create a PDF? I'm trying to recreate settings used in a previous PDF.
Most of which are controlled by the Export options used;
Description
KK Stevens
PDF Preset: CC to PDF for KKSPC-Flattened
Compatibility: Acrobat 4 (PDF 1.3)
Standards Compliance: None
General
Pages: All
Spreads: Off
Generate Thumbnails: On
Optimize PDF: Off
Create Acrobat Layers: N/A
Export Layers: Visible and Printable Layers
Include Bookmarks: Off
Include Hyperlinks: Off
Export Nonprinting Objects: Off
Export Visible Guides and Baseline Grids: Off
Create Tagged PDF: Off
Interactive Elements: Do Not Include
Compression
Color Images
Bicubic Downsample at: 300 ppi
for images above: 300 ppi
Compression: ZIP
Tile Size: N/A
Quality: 8 Bit
Grayscale Images
Bicubic Downsample at: 300 ppi
for images above: 300 ppi
Compression: ZIP
Tile Size: N/A
Quality: 8 Bit
Monochrome Images
Downsample at: 1200 ppi
for images above: 1200 ppi
Compression: CCITT Group 4
Compress Text and Line Art: On
Crop Image Data to Frames: On
Marks and Bleeds
Crop Marks: Off
Bleed Marks: Off
Registration Marks: Off
Color Bars: Off
Page Information: Off
Page Mark Type: Default
Weight: 0.125 pt
Offset: 0.125 in
Use Document Bleed Settings: Off
Bleed Top: 0.125 in
Bleed Bottom: 0.125 in
Bleed Left: 0.125 in
Bleed Right: 0.125 in
Include Slug Area: Off
Output
Color Conversion: No Color Conversion
Destination: N/A
Profile Inclusion Policy: Don't Include Profiles
Simulate Overprint: Off
Output Intent Profile Name: N/A
Output Condition: N/A
Output Condition Identifier: N/A
Registry Name: N/A
Advanced
Subset Fonts Below: 1%
Omit PDF: Off
Omit EPS: Off
Omit Bitmap Images: Off
Transparency Flattener Preset: [High Resolution]
Ignore Spread Overrides: Off
Warnings -
Is there a way to know what report is being processed ?
In XI R2 / Webi Report Server, or XI 3.x / Webi Processing Server, is there a way to know what object is being processed ?
For example currently, I can see thru system tool like "Process Explorer" that "wireportserver.exe" has been using a lot of CPU and increasing memory for several minutes. I feel that a report is too large or complicated, but which one ?
In audit database, I can only see events like "document read", but no "begin of refresh process".
So, do I have to wait for the process to be finished to find a "document refreshed" and know what was going on ?
Moreover, at least in R2, if user cancels his refresh request (by closing his browser for example), of if request takes too much time and reaches timeout, no audit event corresponding to this refresh request will ever be recorded. In this case, I have no information at all about what report was making the report server taking so much CPU and RAM. It has just a "read" event, but so have a lot of other reports having been read during the same period of time.
Ideally, I would just have to select the latest "begin of refresh" events without "end of refresh" to know which report are currently being processed. But unfortunately the first one doesn't exist.
Has anyone an idea to get this information anyway ?
ThanksHello Seb
Thanks for your reply.
I was aware of this instance manager in 3.x.
In R2, I was also able to do the same with a request thru the query manager.
Unfortunately in both versions , I haven't found yet how to find informations on report being refreshed by users directly, and not by job server.
I anyone has an idea...
In R2 I have tested the -trace option of report server : it generates a big amount of lines in trace files, but that seem completely useless : no information on what report is being processed..
I don't understant why this information is so complicated to get. It could be so helpfull...
regards
François -
I inadvertently deleted 6 folders from picasa which also deleted them from my Mac. i have so many items in my trash that I do not know which they were....is there any way to track what items I placed in my trash only on today's date? since I have no clue what they were specifically.
which also deleted them from my Mac.
By the way, the items are not deleted until you empty the trash - which you should do occasionally because they all take up room on your hard drive. I don't know of a way to do exactly what you want - you can try looking at your trash in column view and it will show you the last time you modified or opened a file - that might give you an idea. -
Is there any way to tell what songs on my iPod are NOT in my iTunes library?
There are some songs on my iPod that are not in my current iTunes library. I ran into a problem with album artwork and may need to do a full restore. If I do this, however, the songs that are not in my library will be lost. Is there any way, through iTunes, a third-party program, or directory digging to tell if a song is not in your iTunes library?
Select the iPod in iTunes then File > Transfer purchases.
If these are not iTunes purchases, simply restore them to iTunes from the backup of your HD. -
Metadata update needed -- Is there a way to tell what change will be made?
Hi all,
I have many thumbnails which show that metadata updates are pending.
Is there any way to find out what metadata will be updated when the commit is made (Keystroke splat-s on mac?)
Thanks in advance,
$$PhotoHobbyAny change- and it's not only development adjustments that might be shown in History- to the Metadata will be shown only in the Development module.
-
HT4061 Is there a way to tell what my serial number is, somebody stole my phone.
The police officer at my school needs to know what it is for whatever reason. Is there a way to figure it out even though i dont have it.
Scroll down about mid-way in this support article:
http://support.apple.com/kb/ht4061
and read from there to the bottom.
Regards. -
As the title states, I've got a .textClipping file that keeps getting created on my desktop when I log in. The file looks similar to: "6bc29bf81b634b3293da5e858930e06a88adf182.textClipping". I'm trying to figure out what is creating this file. Any suggestions?
Thanks in advance.Login items:
SophosUIServer
textexpanderd (Text Expander 2.x - possibly the culprit?)
TotalFinder
Remote Wonder Driver
Lockdown
macfusionAgent
Most of these I've had installed for a year or more. TotalFinder and Text Expander may be relatively new. -
Is there a way to decipher what chords are being used in an audio track?
I use logic pro x software and I was looking at this piece of audio. It's a synth lead and I wanted to create a bass to go with it however it's hard to work out the chords used so I was wondering if there are any add ons or something that can tell me what chords are used in the audio track. Im looking for something kind of like the BMI counter but for chord recognition. Can anyone help me! if not would anyone be able to decipher them for me? thanks
Not that i am aware of.. Not for Audio tracks.. Midi tracks yes, Audio no....
However there are 3rd party apps/websites that might do the job....
http://www.allmyfaves.com/blog/music/chordify-turns-any-music-or-song-into-chord s/
http://chordify.net/pages/how-to-use-chordify/
and maybe even....
http://play.riffstation.com
if its a relatively well known song.... -
AVM1 into AVM2. Is there a way to tell which is being loaded?
I have an app that users can load SWF files into. It's
written in AS3 (AVM2).
Currently, they can load both AVM1 and AVM2 SWF files into
it. Id like to give the users an alert when they load AVM1 content.
Is there a way to tell when AVM1 is being loaded...maybe a property
I should check in the loaded SWF?I figured it out. Thanks.
-
Is there any way to track what reports are actively running on BOE?
Good Afternoon.
I am looking for a way to track the names of what reports are currently being run on Business Objects. We are on Business Objects Enterprise XI R2 SP3 and from what Iu2019m aware, the servers can show the administrators how many connections and how many jobs are running, and the auditing command can track when a report has completed/failed (from what I understand), but nothing really tells us what reports are actively being run.
The purpose of this is to measure impact for an emergency restart of the server, track down reports that are taking up system resources, and debugging issues involved with the SDK.
Background: We have several reports hosted on Business Objects, both Crystal Reports and Web Intelligence. These reports go to different universes and databases and use several different accounts depending on the project (no central generic accounts to the databases). Sometimes when people are running several large reports (some being upwards of 1 million rows) the users will open one, leave it to run and go to open several others, killing our session limit and resources on the server. In addition, there have been times in development that restarts have been required but there was no way to tell what reports were running, just the number of them, and in several different spots (RAS, Page server, etc.).
Wish list (If my first priority is answered, Iu2019m also looking for the following):
- One to one associations of what reports are being run by what users.
- A centralized location to see what reports are being run by users opening them and what reports are being run by users scheduling them.
- The ability to u201Ckillu201D a report that is taking too long to run by a user.
- Possibly an interactive dashboard showing the number of active reports verses the serveru2019s limit, what reports are set in queue, etc.
- The u201Cstageu201D a report is running in, so if someone is running a report but its stuck at the prompt for a variable stage, querying data from the database, getting data back from the database, producing and processing the data to the screen, etc.
If Iu2019ve missed something in the Business Objects tools or if someone knows of a way to extract this type of data from the Business Objects server (3rd party tool or custom fix) I would appreciate the assistance. Thank you for your time.Brian,
I don't know if you tried using the Query Builder.
The query below (or some modification of it) may be of some help.
SELECT
SI_SCHEDULEINFO, SI_NAME
FROM
CI_INFOOBJECTS
WHERE
SI_SCHEDULE_STATUS = 1
The SI_SCHEDULEINFO.SI_SUBMITTER property in the query result will give you the BOUSER value of the user that submitted the job.
SI_SCHEDULE_STATUS takes the following values:
0 The job is currently being processed by the job server.
1 The job completed successfully.
3 The job failed. Check error message.
8 The job is paused.
9 The job has not started because dependencies are not satisfied (e.g. Events)
Best,
Srinivas -
Do I need to be worried? Is there a way to tell if I have a bad MacBook?
Hello all,
I just picked up a used MacBook Pro from a friend for $650. It is within the dates that there was the issues with the video chipsets from NIVIDIA. This notebook was not used that extensively, I don't think, so I am not sure if I am in the clear regarding this issue or not. Is there a way to tell if this MacBook is covered under he known issue even though it is beyond all coverage. It notes that if the issue appears within the 1st 4 years of purchase, it will be covered. Is this the best that they can do? Or can an apple guy run something on the system, or look up my S/N# and tell me if I have a notebook with the issue?
Reason I ask is to known whether I need to use this for the purpose I bought it for, or if I can rely on it as my main notebook as well.
Thanks for all, or any, help that someone on here can be. Love this notebook (and only had it for a few hours), but just wondering how much it can be trusted, or if there is a way to know.
Thanks you guys...hope I will be welcomed to the MAC club, as I have NEVER owned a MAC until now!
Message was edited by: traitorHi t,
traitor wrote:
Hello all,
I am not sure if I am in the clear regarding this issue or not.
You won't be sure until the day you stop using it or it develops issues.
Is there a way to tell if this MacBook is covered under he known issue even though it is beyond all coverage. It notes that if the issue appears within the 1st 4 years of purchase, it will be covered.
Correct. NVIDIA issue
Is this the best that they can do?
At this point, it is what it is. Anything beyond this would be at Apple's discretion, on a case-by-case basis.
Or can an apple guy run something on the system, or look up my S/N# and tell me if I have a notebook with the issue?
You've already noted that your MBP falls within the range. It does have the GPU that may develop the issue. If the issue is occurring now, their test will show it. If the issue is not currently occurring, the test will not show it. The test tests whether or not the issue is occurring, it's not a predictor as to if/when it will occur. Some GPUs within that range will not develop the issue.
Reason I ask is to known whether I need to use this for the purpose I bought it for, or if I can rely on it as my main notebook as well.
I would feel comfortable using it as my main computer (I have a MBP that also falls in that range), but this computer or any other in the world could develop issues at any time. I backup frequently and in different ways and strongly recommend that you do, and everyone else does too. Every HD will die at some point in ongoing use. Some will take seconds, some years. Some will give notice, some not. Some will leave platters with recoverable data, some will have the platters gouged by failed heads, with little to no recovery possible. The only safe computing is by backing up data (and although I've never had to resort to it, having a second machine available; I keep most of my "old" Macs, so if my "main" machine would ever go down, I can just grab my data from a backup and keep going).
Thanks for all, or any, help that someone on here can be. Love this notebook (and only had it for a few hours), but just wondering how much it can be trusted, or if there is a way to know.
Heat is a big enemy of electronics. Monitor periodically with iStat Pro. Fans should speed up long before CPU hits thermal shutdown range of 100C.
Message was edited by: tjk -
My phone is trying to send an email that it can't send. The message is in the Outbox. I would like to delete the message but as long as the message is trying to send it, I am unable to. Is there any way to tell it to stop sending so that I can delete it?
Thanks - the only thing is for a long time it would not allow my to select Edit - I tried it but - what ever - this time it did - THANKS - Mark
-
I leave my Mac Mini on constantly as a HTPC. I came home after being at work all day to find the fan on high and the lock screen incredibly sluggish. I have no idea how long it was like that, it's never done anything like it before. I couldn't login because it was too slow, I had to force it to shut off. Is there any way to see what it could've been when I boot it up, such as log files or something like that? I was hoping to get in to see top or the activity monitor but as I said earlier, I wasn't able to log in.
I had TeamViewer 9 installed. The Preferences window that contained the Uninstall button would not open so I just moved the .app to the trash. Last night I:
Installed TeamViewer 10 as it was the latest version, I figured I had that one previously
Uninstalled it using the preferences pane
Realized from the /private/var/db/receipts (I think) entries that I had TV9 installed previously, not 10
Installed TeamViewer 9
Tried to uninstall TV9, found the broken preferences pane and remembered why I just deleted it in the first place
Upgraded it to TV10
Uninstalled it using the preferences pane
I'll check on it tonight, but I think it's okay. I want to do a grep -r -i "teamviewer" / when I get back to see if anything is left behind. -
Is there a way to check what I had purchased from the itune store to match the charges on my credit card, because there is a charge that I do not recognize
http://support.apple.com/kb/HT2727
Regards.
Maybe you are looking for
-
MP4 in HTML5 -- playbar moves, but no video
Hi I have Captivate 6.0.1.240 (64-bit) installed on a Win 7 system. I have inserted MP4 video in Captivate 6 using the Insert Video > Multi-Screen Synchronized Video > Progressive Download method and published as HTML5. When I play it on Safari 5.1.7
-
Hi All, I am very frustrated because Spotlight is incapable of finding a file on my Mac. The file is named: "Maya.env" And is located here: Users/username/Library/Preferences/Autodesk/maya/2011-x64 Can anyone tell me why Spotlight is not able to fin
-
Quality Manager - Clearing Unscored Call recordings
Probably a very basic question, but unfortunately I'm not yet familiar with this product. Some of our supervisors wish to clear out a backlog of "Unscored" recordings from the list in Quality Management Desktop, so that they can start with a clean sl
-
Coreapplication_obis1 is not starting up.
./opmnctl status Processes in Instance: instance1 --------------------------------------------------------------+--------- ias-component | process-type | pid | status --------------------------------------------------------------+--------- coreapplic
-
HT204053 How do I download my photos in the cloud to my iPad?
Help with downloading items in the cloud to my iPad.