SQL being generated improperly - JDBC bc - poll operation
I have a bpel process that is kicked off by a JDBC binding component's "poll" operation. I have the PollingPostProcessing value set to MarkColumn. I've set the MarkColumnName and MarkColumnValue parameters (see below). The column I'm marking is defined as:
TINYINT(4), not null, with a default value of 0.
I'm using MySQL v5
My issue is that the SQL generated by JBI is incorrect, it's missing spaces: select * from .mbmessage where monitored != *1ormonitoredis* NULL
The Error:
Received in-only message.
Executing sql . select * from .mbmessage
Unexpected exception Occured while processing the MEP.
javax.jbi.messaging.MessagingException: Error occured while executing sql.select * from .mbmessage where monitored != 1ormonitoredis NULL
at com.sun.jbi.jdbcbc.InboundMessageProcessor.executeInboundSQLSelect(InboundMessageProcessor.java:484)
at com.sun.jbi.jdbcbc.InboundMessageProcessor.processInOnly(InboundMessageProcessor.java:388)
at com.sun.jbi.jdbcbc.InboundMessageProcessor.execute(InboundMessageProcessor.java:308)
at com.sun.jbi.jdbcbc.InboundMessageProcessor.run(InboundMessageProcessor.java:231)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1448)
at com.sun.jbi.jdbcbc.InboundMessageProcessor.executeInboundSQLSelect(InboundMessageProcessor.java:480)
... 4 moreHere is a snippet from my JDBC binding component.
<jdbc:input xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" MarkColumnName="monitored" MarkColumnValue="1" MoveRowToTableName="" PKName="messageId" PollMilliSeconds="5000" PollingPostProcessing="MarkColumn" TableName=".mbmessage" Transaction="NOTransaction" numberOfRecords="" operationType="poll" paramOrder="" sql="...."/>Has anyone else come across this situation? I'm hoping that it's something easy I'm overlooking.
Thanks in advance,
-sellerjd
Does anyone have the JDBC binding component's "poll" operation working correctly, using the "MarkColumn" option for the PollingPostProcess attribute? If so, could you share your experiences in setting it up? Does the "marked column" in the database need to be a specific type or have certain rules?
Any info would be very much appreciated.
Similar Messages
-
How to modify the SQL being generated from BC, to fix the issue
Hi,
We have seen a strange issue in our implementation.The issue is also reproducible in Vanilla environment.
In Contact List Applet, if we Query in First Name or Last Name fields in UI, the Query being generated is,showing that, Siebel is Querying for first name in S_POSTN_CON.CON_FST_NAME. This is a normalized column for S_CONTACT.FST_NAME.
This is causing the performance issue.
When I check the configuration in Tools for Contact BC's First Name field, it is configured as follows.
Join = S_CONTACT
Column = FST_NAME.
I do not understand, Why it is still querying in S_POSTN_CON.
Any suggestions on how to fix this issue to make the Query to be performed on S_CONTACT.FST_NAME?
Regards
VamshiHi Vamshi,
As Robert mentioned, there just happens to be a number of things that need to be analyzed prior to changing the shape of the buscomp that triggers that sql.
If this siebel performance issue occurs on a production environment, you should certainly look at the performance trend/characteristics of that sql over time and assess its the impact on your business community (...), then carefully identify its -true- root-cause, implement a fix and validate it against a production-like environment in order to verify there is no regression associated with it; once the fix is deployed on your production system, you want to monitor its benefit overtime and on a 24x7 basis…all this may sound very generic yet good practices.
If you are looking at -effectively- solving this siebel peformance issue (and others...) in a timely manner, best is to have your Siebel Teams 1)use a Siebel-specific performance monitoring software technology built by Siebel Architects (like GMT v1.8.5, more info @ www.germainsoftware.com) that is able to collect 24x7 all the data needed for root-cause analysis(and more..), and 2)have senior siebel architects (like Robert's team) that have successfully solved tones and severe performance and scalability issues for many years, provide technical guidance to your team throughout the resolution process.
Siebel CRM is a great CRM software solution that is very complex. Every "switch you turn on/off", every customization you built into it may generate performance issues if it is not carefully implemented, optimized, tested...and monitored 24x7 once it is deployed onto your production system.
Good luck w/ this..
Regards,
Yannick Germain
CEO & Founder
GERMAIN SOFTWARE llc
Complete Siebel Performance Monitoring Tool
21 Columbus Avenue, Suite 221
San Francisco, CA 94111, USA
Cell: +1-415-606-3420
Fax: +1-415-651-9683
[email protected]
http://www.germainsoftware.com -
How to examine the generated SQL statement in Receiver JDBC Adapter
I have been searching this forum how to display te generated sql statement (by the jdbc receiver adapter).
The only suggestion is to use RWB, but I was unable to find any details about how to do so.
Any help is appreciatedHi,
To add, u can see the SQL Statements in Audit log of RWB.
Select Message Monitoring-> Adapter Engine. choose ur entry and click on Details option button, u can see the SQL Statements in Audit Log.
Regards,
Sudharshan
Message was edited by:
Sudharshan Aravamudan -
ADDM report not being generated
I noticed that addm reports are not being generated from last 2 days. So I did the following:
SQL> exec dbms_workload_repository.create_snapshot;
BEGIN dbms_workload_repository.create_snapshot; END;
ERROR at line 1:
ORA-13516: AWR Operation failed: only a subset of SQL can be issued
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 10
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 33
ORA-06512: at line 1
I got above error. I am not sure what that means. I also ran below SQL:
SQL> select nam.ksppinm name, val.KSPPSTVL, nam.ksppdesc description
2 from x$ksppi nam, x$ksppsv val
3 where nam.indx = val.indx and
4 nam.ksppinm = '_awr_restrict_mode'
5 order by 1
6 ;
awrrestrict_mode
FALSE
AWR Restrict Mode
What could be the reason that the reports are not being generated anymoreCheck Note:308003.1 - AWR Snapshots Not Generating
-
Notifications are not being generated for any emails that have rules applied to them.
Notifications are not being generated for any emails that have rules applied to them. Any clues how to fix this?
In System Center 2012 Operations Manager, the alert notification will be sent when the alert first meets all criteria, regardless of resolution state, unless resolution state itself is a criterion. If alert suppression is enabled for the rule or monitor
that raises an alert, only one notification will be sent when the subscription criteria are first met. No additional notifications will be sent until the alert is closed and a new alert is raised that meets all subscription criteria. PLease check
1) whether your rule has trun on alert supression
2) Close the alert, craised by rule, and do it again
Roger -
MS SQL Server 7 thru JDBC:ODBC bridge
Hi,
I am trying to access MS SQL server 7 thru JDBC ODBC bridge. I am finding my varchar data is being truncated to 255 characters. Any help on this would be appreciated.Any body know of a good type 4 jdbc driver for SQL
Server 7. There is one for SQL server 2000
downloadable from micrsoft site, but does it work for
sql server 7 too ?Older betas of this driver suported SQL Server 7, but I believe the plan is to specifically remove that capability in its final release.
My biased opinion would be to try the driver from DataDirect. http://www.ddtek.com Its their driver (an older version) that Microsoft has licensed for MS SQl 2000.
Getting it from DataDirect has a couple obvious advantages:
1. Its a later, more stable, better performing version
2. It will continue to Support MS SQL 7
3. It's suported by 24/7 phone,email and web tech support.
4. And, early this week, you should be able to get the latest 3.0 release which promises to be even more robust, in addition to conforming to the new specs.
5. its not free, but then again- you get what you pay for... -
How to view the sql queries generated by EJB (CMP)
Hello,
I'm using Oracle9iAS (9.0.2.1.0) Containers for J2EE (build 020827.1652) & Oracle 8.1.7 database.
I have a CMP that has about 400 fields and the corrsoponding table has about 800 fields. I'm able to call create and add a row in database.
Now when I call update method to set the remaining fields of this row (I get the proper instance by calling findByPrimaryKey()) I'm getting an exception ORA-00957 duplicate column name.
I'm using reflection to set all the fields by passing my update method a HashMap and setting those fields that this HashMap contains. And as HashMap cannot contain duplicate keys the possiblility of having duplicates is eliminated.
But why am I getting ORA-00957 duplicate column name.
Is there a way I can configure somehow to view what sql query is being generated by the OC4j container when its firing this query to update the database table.
Any help will be greatly appriciated.
Vipin.Install IronTrack SQL as described in the following link
http://www.irongrid.com/documentation/irontracksql/install.html#install_oracle9iAS -
How can I turn off archive logs are being generated by system? (ugrent)
Dear all,
How can I turn off archive logs are being generated by system?
Best Regards,
AmySorry not to you @kamran its to OP.accidently it reply button pressed for you
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145750508 bytes
Database Buffers 25165824 bytes
Redo Buffers 262144 bytes
Database mounted.
SQL> alter database noarchivelog
2 /
Database altered.
SQL> Khurram -
Hi Gali and Experts!!
I am working on ECC 6.0 and have worked on 4.X version too. I was wondering if within SAP do we have any SQL Generator which will automatically generate the SQL query? We create views, we do lot of joins on the tables and we write n number of sql queries, so is there a provision that whenever we generate a view or any other data object we can have access to the underlying SQL query that is being generated at backend. Of course, it must be generating the SQL query behind the scenes....This can be done in Peoplesoft. Please let me know.
Thanks,
~Sidwell..what about table joins....in query viewer....anyways thanks for the input...
~Sid -
How much Redo log is being generated by a user sesssion?
How can find which user session is creating the highest redolog entries and how much rego log is being generated?
1) Query V$SESS_IO. This view contains the column BLOCK_CHANGES which indicates how much blocks have been changed by the session. High values indicate a session generating lots of redo.
The query you can use is:
SQL> SELECT s.sid, s.serial#, s.username, s.program,
2 i.block_changes
3 FROM v$session s, v$sess_io i
4 WHERE s.sid = i.sid
5 ORDER BY 5 desc, 1, 2, 3, 4;
Run the query multiple times and examine the delta between each occurrence of BLOCK_CHANGES. Large deltas indicate high redo generation by the session.
2) Query V$TRANSACTION. This view contains information about the amount of undo blocks and undo records accessed by the transaction (as found in the USED_UBLK and USED_UREC columns).
The query you can use is:
SQL> SELECT s.sid, s.serial#, s.username, s.program,
2 t.used_ublk, t.used_urec
3 FROM v$session s, v$transaction t
4 WHERE s.taddr = t.addr
5 ORDER BY 5 desc, 6 desc, 1, 2, 3, 4;
Run the query multiple times and examine the delta between each occurrence of USED_UBLK and USED_UREC. Large deltas indicate high redo generation by the session.
You use the first query when you need to check for programs generating lots of redo when these programs activate more than one transaction. The latter query can be used to find out which particular transactions are generating redo. -
Hi All,
When we do a test-outlookconnectivity -protocol:http the result is a success but then we get the following:
ClientAccessServer ServiceEndpoint Scenario
Result Latency
(MS)
xxxxxxxxxxxx... xxxxxxxxxxxxxx Autodiscover: Web service request. Success 46.80
WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance
of an object.
Object reference not set to an instance of an object.
+ CategoryInfo : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
So it looks like it's not completing successfully.
I can't find anything on this in particular, and don't really know how to go about solving it - We are fully up to date, Exchange 2010 Sp2 with Rollup 5-v2
Any help appreciated!hi,
I have the same issue also on Exchange 2010 SP2 RU5v2
I ran your command and get the below
[PS] C:\Installs\report\Activesync>Test-OutlookConnectivity -Protocol:http |FL
RunspaceId : ebd2c626-1634-40ad-a17e-c9a713d1a62b
ServiceEndpoint : autodiscover.domain.com
Id : Autodiscover
ClientAccessServer : CAS01.domain.com
Scenario : Autodiscover: Web service request.
ScenarioDescription :
PerformanceCounterName :
Result : Success
Error :
UserName : Gazpromuk.intra\extest_645e41faa55f4
StartTime : 8/21/2013 4:08:50 PM
Latency : 00:00:00.1250048
EventType : Success
LatencyInMillisecondsString : 125.00
Identity :
IsValid : True
WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
+ CategoryInfo : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
Any help would be greatly appreciated, I also get random failures of OWA, EAS and web services, very frustrating
I have no errors in the app event log
thanks
Faisal Saleem Windows Systems Analyst 07595781867 -
Site Web Analytics - no usage data being generated
Hello all:
I have a SharePoint Foundation 2013 farm with 2 WFE - 1 Search Server and 1 DB server. Search Service Application has been configured and functioning properly. Usage and health Data Service Application has been created and started. Usage
data collection is enabled and the "Analytics Usage" check box is checked. Usage Data Import and Usage Data Processing timer jobs are scheduled and run successfully.
But, I still get the following error when I go to the Site Web Analytics "A web analytics report is not available for this site. Usage processing may be disabled on this server or the
usage data for this site has not been processed yet."
After doing some research, some folks have suggested the following which has to do with manually enabling the receivers via powershell - which I have done but still no report and same error.
http://geekswithblogs.net/bjackett/archive/2013/08/26/powershell-script-to-workaround-no-data-in-sharepoint-2013-usage.aspx
Other Internet searches indicate that Web Analytics Reports is no longer available in SharePoint Foundation 2013:
http://blogs.msdn.com/b/chandru/archive/2013/08/31/sharepoint-2013-web-analytics-report-where-is-it.aspx
http://sharepoint.stackexchange.com/questions/63099/where-is-the-web-analytics-service-in-sharepoint-2013
There is also a TechNet question which indicate that "Microsoft Support confirmed me there's a bug in SharePoint Foundation 2013 in the Database that's going to be fixed in the June or August CU"
http://social.technet.microsoft.com/Forums/sharepoint/en-US/5372109c-8a6e-4d31-aa34-13b6cbde52cf/sharepoint-foundation-2013-web-analytics?forum=sharepointgeneral
But, there is no resolution if this bug has been addressed or not.
Therefore, I would really like to know what the deal is with this issue. At the moment, I do not see any usage data being generated on any of the SharePoint Foundation servers in the farm.
Please advise.
Thank you,
RumiHi Rumi,
Find a same issue internaly which says that the links Site Web Analytics is no longer valid in SharePoint 2013 Foundation due to the changes in analytics service application architecture, so you may need the SharPoint enterprise edition for using
this feature.
Symptom
- Recently, we upgraded to SharePoint Foundation 2013 from WSS 3.0. In SharePoint Foundation 2013 sites, we see the option to click on Site Web Analytics reports but when we click on it, we get an error.
- Clicking on Site Web Analytics reports from Site Settings \ Site Actions produces the error: “A web analytics report is not available for this site. Usage processing may be disabled on this server or the usage data for this site has not been processed yet.”
- We have ensured we have logging enabled (multiple categories)
- Example Site: http://sharepoint2/sites/IT/Projects/SAP/_layouts/15/usageDetails.aspx
Cause
By Design
1) The links in Site Settings from a site collection are no longer valid in SharePoint 2013 (due to change in Analytics Service application architecture changes...part of Search Service now)
2) SharePoint Foundation 2013 does not support Usage Reporting Analytics
Resolution
o Purchase a license for SharePoint Server 2013 Enterprise, and build out a farm for it (the Foundation SKU cannot be upgraded in-place to Server).
o Once built up, you could copy your databases over and attach them to the Server farm and do your cutover.
o Going forward from there, you would be able to have access to the Usage reports.
Also as you have found that msdn blog with the explenation that it is not available in SPF 2013.
http://blogs.msdn.com/b/chandru/archive/2013/08/31/sharepoint-2013-web-analytics-report-where-is-it.aspx
http://technet.microsoft.com/en-us/library/jj819267.aspx#bkmk_FeaturesOnPremise
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected].
Daniel Yang
TechNet Community Support -
"The report is being generated. Please try again later. " for last 4 hours
Hi,
I am try to check the report function which the azure portal has for Azure Active Directory Premium. However, it's showing "The report is being generated. Please try again later." everywhere for
4 hours already.
Is there anybody can help me to figure it out what's happen? Maybe I miss something?
Thanks!
KevinHello,
Since we have not heard back from you we are archiving the thread.
Please let us know if you are still facing the issue.
Regards,
Neelesh -
Hi guys,
I'm having quite a little trouble in doing one thing which has been done for several times but which is giving me a hard time...
I've created a bpm process which in an error condition will trigger a simple alert.
I've tested the process and everything goes allright, except the alert. What is happening? Well, the alert is not being sent to my inbox. Why? Maybe because the alert is not being generated.
I've went to sxmb_moni_bpe and everything is OK. I can see the message of the alert being fired. After that I went to slg1 to see if my alert is being generated, and the answer is no. It's not being generated....
I've gone through Michal's blogs and everything was checked...The question is, if I execute RSALERTTEST with my alert category, the alert is generated and send to my inbox. Do you have any ideas?
Thanks a lot for your attentionHi,
Yes the job scheduling is needed only for Sp14 and below.
Can you recheck if the Alert is actually getting triggered or not in the BPM in the control step? Make sure that you have given the correct Alert Category in your Control Step and also, make sure that the recipient in your alert as well as the Alert Inbox entry you are seeing is the same.
Finally, refresh the Alert Inbox.
Regards,
Bhavesh -
Java.sql.SQLException: Error accessing jdbc driver
Hi,
We are using WebLogic Server 7.0 as Application Server.
We now create a connection pool named regPool and
a Tx datasource named regDS.
When we get the connection from the datasource, exception occurred.
java.sql.SQLException: Error accessing jdbc driver: driverURL =
jdbc:weblogic:pool:regPool, props = {enableTwoPhaseCommit=false,
jdbcTxDataSource=true, connectionPoolID=regPool}
at
weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:323)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:377)
at weblogic.jdbc.jts.Driver.connect(Driver.java:129)
at
weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java
:265)
So I guess that why we can't use CMP for finding data. Here is the error when we call the finder.
javax.ejb.FinderException: Exception in findAllEmr while preparing or
executing statement: 'null'
java.sql.SQLException: Cannot obtain connection after 30 seconds. ,
Exception = Access not allowed
java.sql.SQLException: Cannot obtain connection after 30 seconds. ,
Exception = Access not allowed
at
weblogic.jdbc.jts.Connection.wrapAndThrowSQLException(Connection.java:694)
According to the exception message, it looks
like the connection fail between WLS and Oracle 9.2.
Here is a scenario I think you should need to know.
I change the table-name in the weblogic-cmp-rdbms-jar.xml
to a name that doesn't exist in the database.
Then, re-package the EJB, copy it to server and restart the server.
A exception occurred that says the table doesn't exist.
So, in this case, it looks like the datasource works and
connection is fine.
Any recommendation will be appreciated.
Jimmy ChangHi!
I am a default user to the databse server. I connect to the database with '\' as the username and blank passoword(I mean with Network authentication may be).When I am trying to create connection using
con = DriverManager.getConnection("jdbc:oracle:thin:@DRACINAL2:BSAJ", "/","" )
it gives me followint error
ava.sql.SQLException: Null user or password not supported in THIN driver
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
void oracle.jdbc.dbaccess.DBError.throwSqlException(int, java.lang.Object)
void oracle.jdbc.dbaccess.DBError.check_error(int)
oracle.jdbc.dbaccess.DBConversion oracle.jdbc.ttc7.TTC7Protocol.logon(java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
void textPack.GenTextFile.main(java.lang.String[])
How should I go about it?
Thanks for your help.
-Sreekanth Varidhireddy
Maybe you are looking for
-
Problems with Print Program of Production Order (CO03) !!
Hi all, I have a question about Print program of Production Order. I created a new Order in CO01. Then, in CO03, I call Print Program ( menu <b>Functions >> Print</b>). At the first time, it printed a so-called original version. Later, when i print
-
Mac Pro 2007 with Nvidia 8800GT screen redraw problems on Mac OS 10.5.2
I seem to be having a slight screen redraw problem. Such as when grabbing the browser window and moving up and down it seems the redraw can't keep up,also seems problematic when watching flash or other video online. It does it in the finder too for w
-
View the ADF Logger message on WebLogic Server Log
Hi everyone I have developed an application and i am using using ADF Logger in it to log the message on Jdev log but i want to view the log message on the weblogic server can anyone help out... Regards Praveen
-
My 'songs' list in my library are all listed twice. How do I delete the duplicates without removing the songs from my playlists and albums?
-
How to lock a row in a db2/400
Hi all, Could someone show me how to lock a row in the database DB2/400 The scenario: DB.beginTransaction User 1 gets a row with a column bill_number "select bill_number from numbers where pk = xxx for update" aux_bill_number = bill_number USER 1 upd