Hibernate fails to fetch the record in the Database
Hi ,
We are developing a J2EE based server application which has to cater to different types of mobile clients.
The clients will be pinging the server at a rate of 4-5 requests per sec.
I use HibernateUtil.getSession().load(PK) and it returns null..but the record is very much there in the DB..i have not inserted that record using JDBC.
This happens at times..not always..
Exception : No row with the given identifier exists in the session..
If i destroy and recreate the session factory, it works fine..but it is an expensive operation.
DB : Mysql 5
Hibernate version 3
My mapping file :
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="client.Contacts" table="contacts">
<id name="cId" column="c_Id" unsaved-value="null">
<generator class="identity" />
</id>
<property name="ContactID">
<column name="ContactID" />
</property>
<property name="firstName">
<column name="FirstName" />
</property>
<property name="lastName">
<column name="LastName" />
</property>
<property name="address">
<column name="address" />
</property>
<property name="email">
<column name="Email" />
</property>
<property name="url">
<column name="url" />
</property>
<property name="birthday">
<column name="birthday" />
</property>
<property name="note">
<column name="note" />
</property>
<property name="telephone">
<column name="telephone" />
</property>
<property name="telephoneFax">
<column name="telephoneFax" />
</property>
<property name="telephoneHome">
<column name="telephoneHome" />
</property>
<property name="telephoneWork">
<column name="telephoneWork" />
</property>
<property name="telephoneCell">
<column name="telephoneCell" />
</property>
<property name="nickName">
<column name="nickName" />
</property>
<property name="version">
<column name="version" />
</property>
<property name="userPhoneFK">
<column name="userPhoneFK" />
</property>
<property name="isDeleted">
<column name="isDeleted"/>
</property>
<property name="userModifiedFlag">
<column name="isModifiedbyUser"/>
</property>
<property name="isRestored">
<column name="isRestored"/>
</property>
<property name="lastBackUpTime">
<column name="lastBackUpTime" />
</property>
<property name="isAddedOnServer">
<column name="isAddedOnServer" />
</property>
</class>
</hibernate-mapping>
Java code :
String sortContactsQuery = " from Contacts c where c.isRestored= 'false' and isDeleted='false' and c.userPhoneFK="+msisdnID+" order by c.ContactID ASC ";
contactList= getSession().createQuery(sortContactsQuery).list();
contactList = criteria.list();
This list is empty even though there are records.
Thanks in advance.
Ven
Sorry but you have posted your question in the wrong forum. Your question isn't related to neither Patterns nor OO Design.
Similar Messages
-
Failed to fetch the content. The response status was 425.
Dear All,
Recently we have migrated our portal to netweaver 2004's. and we have done reverse proxy config for portal with Iis Proxy..
The url iviews which contain the actual urls like www.yahoomail.com...are not working...it says "Failed to fetch the content. The response status was 425. ".
Is that the problem with proxy server?
Suggest me
Rgds
PradeepHi Glen
Thanks for the reply...i do hav searched in google...i got the same ...
but i want someone who suggest where went wrong...in reverse proxy...
Nornally when u use url iview...it will definitly come and display which ever url u will give in ...
Rgds
PRadeep -
In azure microsoft DEPLOYMENT FAILED while fetching the files from git
Hello there,
I am using windows azure service for deploying my website but it gets display error "DEPLOYMENT FAILED" while fetching the file from my git repository. Please suggest me.Hi David,
Thank you for your response,
I deployed it using git and now its completed but i have an anather question that is I have created the app in portal.azure.com and a mysql db, both the files and db are deployed but still I am getting error "You
do not have permission to view this directory or page."
Please suggest. -
Failing to fetch the data from application
Hi Experts,
I have a concern over here related to one query.
My application user is executing one query aganist the database view and facing the below execption.
But when i am executig the same from db end it is getting executed.
com.lombardisoftware.component.exception.worker.ExceptionComponentWorker.doJob(ExceptionComponentWorker.java:39)
at com.lombardisoftware.component.common.workflow.ExecutionJob.doJob(ExecutionJob.java:449)
at com.lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean.doResumeWorkflowEngine(EJBWorkflowManagerBean.java:875)
at com.lombardisoftware.server.ejb.workflow.EJBWorkflowManagerBean.resumeProcess(EJBWorkflowManagerBean.java:315)
at sun.reflect.GeneratedMethodAccessor266.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:598)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:330)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.GeneratedMethodAccessor186.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:176)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
Please advice.My application user is executing one query aganist the database view and facing the below execption.
But when i am executig the same from db end it is getting executed.So the problem is with the application & not Oracle RDBMS.
Go talk to the Application Support folks -
Database initialization failed after attach the database.
Hello Everyone,
I have a problem after detaching the database and attaching it again (I moved the database to another partition because of shortage of disk space). Then, I find that the system can not start. (I've two systems and now neither of them could start). The error seems very similar.
In the pure java system(netweaver 04s) log: jvm_bootstrap.out,
com.sap.engine.bootstrap.synchronizationException: Database Initializtion Failed! Check database properties.
com.sap.engine.frame.core.configuration.configurationException: Error while connecting to DB.
Caused by: java.sql.SQLException: [NWMss] [SQLServer JDBC Driver] [SQLServer] Login failed for user 'SAPBP0DB'.
In pure ABAP system(Netweaver 04s) log: dev_w12:
openoledbConnection: MARS property was not set.
openoledbConnection: line 23722. hr: 0x8000ffff login failed for user 'CNDT50083414\SAPServiceBE0'.
sloledb.cpp [openoledbConnection, line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
sloledb.cpp [openoledbConnection, line 23722]: Error/Message: (err 0, sev 0), Invalid string connection attribute.
Is this because the DB not started? In Windows Services, I found 'MSSQLServer' is started.
How can I trace down to this problem? I don't have much idea on DB...
All your kindly help is greatly appreciated.
Best Regards,Hi Karan,
Thank you for your reply. I attach the dev_w0 file here:
trc file: "dev_w0", trc level: 1, release: "700"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, MJ
B
B Tue Sep 23 13:16:15 2008
B create_con (con_name=R/3)
B Loading DB library 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll' ...
B Library 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll' loaded
B Version of 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll' is "700.08", patchlevel (0.158)
B New connection 0 created
M sysno 02
M sid BE0
M systemid 562 (PC with Windows NT)
M relno 7000
M patchlevel 0
M patchno 159
M intno 20050900
M make: multithreaded, Unicode, 64 bit, optimized
M pid 1704
M
M kernel runs with dp version 237000(ext=110000) (@(#) DPLIB-INT-VERSION-237000-UC)
M length of sys_adm_ext is 576 bytes
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 1704) [dpxxdisp.c 1316]
I MtxInit: 30000 0 0
M DpSysAdmExtCreate: ABAP is active
M DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
M DpShMCreate: sizeof(wp_adm) 21008 (1616)
M DpShMCreate: sizeof(tm_adm) 5912624 (29416)
M DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
M DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
M DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
M DpShMCreate: sizeof(comm_adm) 552080 (1088)
M DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
M DpShMCreate: sizeof(slock_adm) 0 (104)
M DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
M DpShMCreate: sizeof(file_adm) 0 (72)
M DpShMCreate: sizeof(vmc_adm) 0 (1864)
M DpShMCreate: sizeof(wall_adm) (41664/36752/64/192)
M DpShMCreate: sizeof(gw_adm) 48
M DpShMCreate: SHM_DP_ADM_KEY (addr: 0000000011080050, size: 6604928)
M DpShMCreate: allocated sys_adm at 0000000011080050
M DpShMCreate: allocated wp_adm at 0000000011082150
M DpShMCreate: allocated tm_adm_list at 0000000011087360
M DpShMCreate: allocated tm_adm at 00000000110873C0
M DpShMCreate: allocated wp_ca_adm at 000000001162ABF0
M DpShMCreate: allocated appc_ca_adm at 00000000116309B0
M DpShMCreate: allocated comm_adm at 00000000116328F0
M DpShMCreate: system runs without slock table
M DpShMCreate: system runs without file table
M DpShMCreate: allocated vmc_adm_list at 00000000116B9580
M DpShMCreate: allocated gw_adm at 00000000116B9600
M DpShMCreate: system runs without vmc_adm
M DpShMCreate: allocated ca_info at 00000000116B9630
M DpShMCreate: allocated wall_adm at 00000000116B9640
M rdisp/queue_size_check_value : -> off
M ThTaskStatus: rdisp/reset_online_during_debug 0
X EmInit: MmSetImplementation( 2 ).
X MM global diagnostic options set: 0
X <ES> client 0 initializing ....
X Using implementation view
X <EsNT> Using memory model view.
M <EsNT> Memory Reset disabled as NT default
X ES initialized.
M ThInit: running on host CNDT50083414
M
M Tue Sep 23 13:16:16 2008
M calling db_connect ...
C Thread ID:6104
C Thank You for using the SLOLEDB-interface
C Using dynamic link library 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll'
C dbmssslib.dll patch info
C patchlevel 0
C patchno 158
C patchcomment Corrections of odbc-based dbsl: dsql: optype, DSN (1135165)
C np:(local) connection used on CNDT50083414
C CopyLocalParameters: dbuser is 'be0'
C
C Tue Sep 23 13:16:17 2008
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: MARS property was not set.
C OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
C Procname: [OpenOledbConnection - no proc]
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
C Procname: [OpenOledbConnection - no proc]
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
C Procname: [OpenOledbConnection - no proc]
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
C Procname: [OpenOledbConnection - no proc]
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
C Procname: [OpenOledbConnection - no proc]
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
C Procname: [OpenOledbConnection - no proc]
C failed to establish conn to np:(local).
C Retrying without protocol specifier: (local)
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
C Procname: [OpenOledbConnection - no proc]
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
C Procname: [OpenOledbConnection - no proc]
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
C Procname: [OpenOledbConnection - no proc]
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
C Procname: [OpenOledbConnection - no proc]
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
C Procname: [OpenOledbConnection - no proc]
C sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
C Procname: [OpenOledbConnection - no proc]
C failed to establish conn. 0
B ***LOG BY2=> sql error -1 performing CON [dbsh#2 @ 1204] [dbsh 1204 ]
B ***LOG BY0=> Login failed for user 'CNDT50083414\SAPServiceBE0'. [dbsh#2 @ 1204] [dbsh 1204 ]
B ***LOG BY2=> sql error -1 performing CON [dblink#5 @ 431] [dblink 0431 ]
B ***LOG BY0=> Login failed for user 'CNDT50083414\SAPServiceBE0'. [dblink#5 @ 431] [dblink 0431 ]
M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c 1440]
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 10504]
M
M Info for wp 0
M
M pid = 1704
M severity = 0
M status = 0
M stat = WP_RUN
M waiting_for = NO_WAITING
M reqtype = DP_RQ_DIAWP
M act_reqtype = NO_REQTYPE
M rq_info = 0
M tid = -1
M mode = 255
M len = -1
M rq_id = 65535
M rq_source =
M last_tid = 0
M last_mode = 0
M semaphore = 0
M act_cs_count = 0
M csTrack = 0
M csTrackRwExcl = 0
M csTrackRwShrd = 0
M mode_cleaned_counter = 0
M control_flag = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M attachedVm = no VM
M
M *****************************************************************************
M *
M * LOCATION SAP-Server CNDT50083414_BE0_02 on host CNDT50083414 (wp 0)
M * ERROR ThInit: db_connect
M *
M * TIME Tue Sep 23 13:16:17 2008
M * RELEASE 700
M * COMPONENT Taskhandler
M * VERSION 1
M * RC 13
M * MODULE thxxhead.c
M * LINE 10724
M * COUNTER 1
M *
M *****************************************************************************
M
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 724]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 261]
M Entering ThSetStatError
M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
M Entering ThReadDetachMode
M call ThrShutDown (1)...
M ***LOG Q02=> wp_halt, WPStop (Workproc 0 1704) [dpnttool.c 333] -
Getting Error of SqlBuildTask fail while building the database project
Hi Experts,
I am getting error while building the database project in following manner please help on this.
Error 803 04018: The "SqlBuildTask" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Data.Tools.Schema.UserInteractionServices.GetElementName(IModelElement element, ElementNameDetails details)
at Microsoft.Data.Tools.Schema.Sql.SqlUserInteractionServices.GetElementName(IModelElement element, ElementNameDetails details)
at Microsoft.Data.Tools.Schema.Sql.Sql110UserInteractionServices.GetElementName(IModelElement element, ElementNameDetails details)
at Microsoft.Data.Tools.Schema.Sql.Validation.MismatchedNameRule.Analyze(SqlSchemaModel sqlSchemaModel, ISqlModelElement sqlElement, SqlRuleSetting ruleSetting, SqlRuleExecutionContext context)
at Microsoft.Data.Tools.Schema.Sql.Validation.SqlValidationRuleProxy.Analyze(SqlSchemaModel sqlSchemaModel, ISqlModelElement sqlModelElement, SqlRuleSetting ruleSetting, SqlRuleExecutionContext context)
at Microsoft.Data.Tools.Schema.Sql.Validation.SqlValidationRule.Analyze(SqlRuleSetting ruleSetting, SqlRuleExecutionContext context)
at Microsoft.Data.Tools.Schema.Sql.RuleEngine.SqlRuleEngine.ExecuteRuleImpl(SqlRuleSetting ruleSetting, SqlRuleExecutionContext context, Predicate`1 suppressProblem, IEnumerable`1& errors)
at Microsoft.Data.Tools.Schema.Sql.RuleEngine.SqlRuleEngine.ExecuteRules(SqlSchemaModel dataSchemaModel, IEnumerable`1 ruleSettings, IEnumerable`1& errors, Predicate`1 suppressProblem, Func`1 executeCanceled)
at Microsoft.Data.Tools.Schema.Sql.RuleEngine.SqlRuleEngine.ExecuteRules(SqlSchemaModel dataSchemaModel, IEnumerable`1 rules, IEnumerable`1& errors, Predicate`1 suppressProblem, Func`1 executeCanceled)
at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.RunBuildValidation(SqlSchemaModel model, ErrorManager errorContainer, Func`1 buildCanceledQuery, HashSet`1 includedRuleIDs, HashSet`1 excludedRuleIDs)
at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnRunBuildValidations(ErrorManager errorManager, HashSet`1 includedRuleIds)
at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.RunBuildValidations(ErrorManager errorManager, HashSet`1 includedRuleIDs)
at Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.LoadImpl(ITaskHost providedHost, TaskLoggingHelper providedLogger, Boolean runAllBuildTimeValidationRules)
at Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.Load(ITaskHost providedHost, TaskLoggingHelper providedLogger, Boolean runAllBuildTimeValidationRules)
at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteLoadTaskHostStep()
at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteStep(Func`1 step)
at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets 547 5 ABC_DB
Niraj SevalkarHi Niraj, does this happen for all projects or for one specific project? I'd love to understand if this is a specific bug or if it might be a setup issue.
If this issues is reproduceable on the latest SSDT bits, I'd suggest capturing the event log for what is going wrong and then opening a connect
bug for this issue at https://connect.microsoft.com/SQLServer/feedback/CreateFeedback.aspx and
use the category "Developer Tools(SSDT, BIDS, etc.)". We're trying to track all bugs through connect so that you can tell when we have fixed the issue and we can request
more information. Please include the event log (instructions on this below) plus any other useful information you can provide, such as an example of exact steps to reproduce the problem.
Gathering an Event Log for SSDT
For diagnostic purposes we would like you to gather an event log for the issue that you are experiencing in SSDT. In order to gather a log and send it to a member of
the team, please follow the steps below.
Open a new command prompt as Administrator.
Run the following command
logman create trace -n DacFxDebug -p "Microsoft-SQLServerDataTools" 0x800 -o "%LOCALAPPDATA%\DacFxDebug.etl" -ets
logman create trace -n SSDTDebug -p "Microsoft-SQLServerDataToolsVS" 0x800 -o "%LOCALAPPDATA%\SSDTDebug.etl" -ets
Run whatever the target/issue scenario is in SSDT.
Go back to the command prompt and run the following commands
logman stop DacFxDebug -ets
logman stop SSDTDebug -ets
The resulting ETL files will be located at %LOCALAPPDATA%\SSDTDebug.etl & %LOCALAPPDATA%\DacFxDebug.etl and can be navigated to using Windows Explorer.
Please attach this file when creating the connect bug
NOTE - These logs will only be used by Microsoft product team members in order to better diagnose the problem you are experiencing
with SSDT and will not be shared elsewhere. If you want to make sure that there is no private information in your ETL file, the SSDTDebug.etl file can be opened and analyzed using the Windows Event Viewer.
To do this, open the Windows Event Viewer application. In the right-hand panel, select Open Saved Log. Navigate to the location where you saved the log, open, and review
the contents of the trace.
Thanks,
Kevin -
After upgrading to mountain lion my mail fails while reformatting the database
I recently upgraded to OS X Mountain Lion and when I try to start the mail app it goes into a reformat the database process that never ends. I force quit the mail app and shutdown the MacBook Pro. But when I reboot and try mail again it does the same thing. What can I do? I don't care about my mail database. I would like to begin receiving emails, however.
Maybe this will help. If you monitor the "More Like This" box (top right), other threads appear. Opening them usually displays other threads.
https://discussions.apple.com/thread/3197363 -
How to query the database periodically???
Hi,
i would like to do a certain task ( like fetching the database, etc) in a particular interval time. For example, my program has to query the database in every 15 mins and display the record if any new record added in the table.
Any one please help me in this and if possible, please give me a sample code.Hi,
Yes, the delay is 1000 ms ( 1 sec) but the program runs only 12 secs because the main thread sleep only 12000 ms.
public static void doMain()
*throws Exception {*
Timer t = new Timer(true);
t.schedule(new Ping("Fixed delay")
*, 0, 1000);*
Thread.currentThread().sleep(12000);
After 12000 ms, the program stops running.
But my requirement is, my program runs continuously for a particular period of time without stops running. ( for example, if i give a period of time is 2 to 6, the program runs in every 1000 ms delay between 2pm to 6pm without stops running).
Please help me in this....... -
Hi All,
I want to fetch some records from a database table which are the latest entries. How can I fetch these records?
Regards,
JeetuHi,
Method 1:
1) check whether you have DATE field in your database table.
2) fetch all records into your internal table.
3) sort internal table by date descending.
4) you will get the latest records on top in your internal table.
Method 2:
If you want only latest 10 records from your internal table
data: begin of itab occurs 10,
Declare your fields here make sure that you have DATE field in your internal table.
end of itab.
Select <fields> from <database table> into itab.
append itab sorted by date.
endselect.
note: Date should be one of teh fields of itab. -
Ok, so I'm a newbie on Arch, but I've been using Linux for three years so...
My issue is that gnome-extra won't install via pacman. It failed to fetch the package libelf:
:: Retrieving packages from extra...
error: failed retrieving file 'libelf-0.8.10-3.1-x86_64.pkg.tar.gz'
.easynews.com : Not Found
warning: failed to retrieve some files from extra
error: failed to commit transaction (unexpected error)
Errors occured, no packages were upgraded.
Ok, I presume this is an error with easynews.com. First off I wgetted the source code for libelf 0.8.10, compiled and installed it, but it still gives me this same error. Probably not installed in the right path or something.
So now I'm wondering, how can I switch the mirror that pacman uses? Or how can I install libelf from source but in the right path?
TIAThanks for the info. Yes I know about the edit button, but I overuse it on other forums so I just made another post. It can get a bit cluttered, so I'll always edit from now on (what I used to do).
I can google this, but do you recommend any good UK mirrors?
In Ubuntu (my native distro, arch is in a vm), there's two official mirrors that I can see, the main one and the UK one. They never seem to have broken or missing packages, so I haven't had to worry about package mirrors yet.
How do I go about making pacman see that I already have it installed? In Debian (well, Ubuntu), I haven't had this problem. It seems to recognize all software in the /usr or /usr/local directories. I didn't think Arch would be very different, but it seems there are quite alot of things that are done in slightly different ways.
Thanks alot
PS. I have GNOME up and running, but it doesn't have all the standard software that comes with it, ie because I couldn't install gnome-extras.
PPS. I think Arch is a brilliant distro as you can basically do what you want with it and it's MUCH less bloated than Ubuntu. But Ubuntu is suited to both geeks and average Joe's if you ask me (not saying I'm an average Joe, I am certainly a Linux geek!). I might try resizing my Linux partition and making a small partition just for Arch so it doesn't have to run in a VM.
EDIT: I tried another mirror and it failed again, with the same package. Is this package obsolete or something?
Last edited by srynznfyra (2009-07-12 17:30:51) -
Hi all
I want to fetch just twenty thousands records from table. My query take more time to fetch twenty thousands records. I post my working query, Could you correct the query for me. thanks in advance.
Query
select
b.Concatenated_account Account,
b.Account_description description,
SUM(case when(Bl.ACTUAL_FLAG='B') then
((NVL(Bl.PERIOD_NET_DR, 0)- NVL(Bl.PERIOD_NET_CR, 0)) + (NVL(Bl.PROJECT_TO_DATE_DR, 0)- NVL(Bl.PROJECT_TO_DATE_CR, 0)))end) "Budget_2011"
from
gl_balances Bl,
gl_code_combinations GCC,
psb_ws_line_balances_i b ,
gl_budget_versions bv,
gl_budgets_v gv
where
b.CODE_COMBINATION_ID=gcc.CODE_COMBINATION_ID and bl.CODE_COMBINATION_ID=gcc.CODE_COMBINATION_ID and
bl.budget_version_id =bv.BUDGET_VERSION_ID and gv.budget_version_id= bv.budget_version_id
and gv.latest_opened_year in (select latest_opened_year-3 from gl_budgets_v where latest_opened_year=:BUDGET_YEAR )
group by b.Concatenated_account ,b.Account_descriptionHi,
If this question is related to SQL then please post in SQL forum.
Otherwise provide more information how this sql is being used and do you want to tune the SQL or the way it fetches the information from DB and display in OAF.
Regards,
Sandeep M. -
How to fetch records from the database into a combo box?
Hi:
I´m really new with ABLBPM and I´m trying to fetch records from the database to display them into a combo box as valid values for a presentation but I´m using a dynamic method with this code:
<em>for each row in SELECT campo1, campo2 from TABLE</em>
<em>do</em>
<em>solicitudes[] = [row.campo1, row.campo2]</em>
<em>end</em>
<em>return solicitudes
</em>And the debugger says that SQL instructions can be used only in fuctions and procedures that are executed on the server.
Do you know another way to do it?
P.D. Sorry for my terrible english
GreetingsHi Steve,
Thank you, your idea is perfect, but when I try to run the screenflow where the combo should be filled I get this error:
fuego.lang.ComponentExecutionException: No se ha podido ejecutar correctamente la tarea.
Motivo: 'java.lang.NullPointerException'.
at fuego.web.execution.InteractiveExecution.setExecutionError(InteractiveExecution.java:307)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:166)
at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
at fuego.webdebugger.servlet.DebuggerServlet.redirect(DebuggerServlet.java:136)
at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:85)
at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
at fuego.web.execution.servlet.ServletExternalContext.processAction(ServletExternalContext.java:110)
at fuego.webdebugger.servlet.DebuggerExecution.dispatchComponentExecution(DebuggerExecution.java:64)
at fuego.web.execution.InteractiveExecution.invokePrepare(InteractiveExecution.java:351)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:192)
at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
at fuego.webdebugger.servlet.DebuggerServlet.doDebug(DebuggerServlet.java:148)
at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:82)
at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
Any ideas??
Thanks and greetings -
Can we split and fetch the records in Database Adapter
Hi,
I designed a Database Adapter to fetch the records from oracle Database. Some time, the Database Adapter need to fetch around 5000, or 10,000 records in single shot. In that case my BPEL process is choking and getting error as
java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
Could someone help me to resolve this?
In Database Adapter can we split and fetch the records, if number of records more then 1000.
ex. First 100 rec as one set and next 100 as 2nd set like this.
Thank you.You can send the records as batches useing the debatching feature of db adapter. Refer documentation for implementation details.
-
Hi,
Please suggest me the best way to fetch the record from the table designed below. It is Oracle 10gR2 on Linux
Whenever a client visit the office a record will be created for him. The company policy is to maintain 10 years of data on the transaction table but the table holds record count of 3 Million records per year.
The table has the following key Columns for the Select (sample Table)
Client_Visit
ID Number(12,0) --sequence generated number
EFF_DTE DATE --effective date of the customer (sometimes the client becomes invalid and he will be valid again)
Create_TS Timestamp(6)
Client_ID Number(9,0)
Cascade Flg vahrchar2(1)
On most of the reports the records are fetched by Max(eff_dte) and Max(create_ts) and cascade flag ='Y'.
I have following queries but the both of them are not cost effective and takes 8 minutes to display the records.
Code 1:
SELECT au_subtyp1.au_id_k,
au_subtyp1.pgm_struct_id_k
FROM au_subtyp au_subtyp1
WHERE au_subtyp1.create_ts =
(SELECT MAX (au_subtyp2.create_ts)
FROM au_subtyp au_subtyp2
WHERE au_subtyp2.au_id_k =
au_subtyp1.au_id_k
AND au_subtyp2.create_ts <
TO_DATE ('2013-01-01',
'YYYY-MM-DD'
AND au_subtyp2.eff_dte =
(SELECT MAX
(au_subtyp3.eff_dte
FROM au_subtyp au_subtyp3
WHERE au_subtyp3.au_id_k =
au_subtyp2.au_id_k
AND au_subtyp3.create_ts <
TO_DATE
('2013-01-01',
'YYYY-MM-DD'
AND au_subtyp3.eff_dte < =
TO_DATE
('2012-12-31',
'YYYY-MM-DD'
AND au_subtyp1.exists_flg = 'Y'
Explain Plan
Plan hash value: 2534321861
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 91 | | 33265 (2)| 00:06:40 |
|* 1 | FILTER | | | | | | |
| 2 | HASH GROUP BY | | 1 | 91 | | 33265 (2)| 00:06:40 |
|* 3 | HASH JOIN | | 1404K| 121M| 19M| 33178 (1)| 00:06:39 |
|* 4 | HASH JOIN | | 307K| 16M| 8712K| 23708 (1)| 00:04:45 |
| 5 | VIEW | VW_SQ_1 | 307K| 5104K| | 13493 (1)| 00:02:42 |
| 6 | HASH GROUP BY | | 307K| 13M| 191M| 13493 (1)| 00:02:42 |
|* 7 | INDEX FULL SCAN | AUSU_PK | 2809K| 125M| | 13493 (1)| 00:02:42 |
|* 8 | INDEX FAST FULL SCAN| AUSU_PK | 2809K| 104M| | 2977 (2)| 00:00:36 |
|* 9 | TABLE ACCESS FULL | AU_SUBTYP | 1404K| 46M| | 5336 (2)| 00:01:05 |
Predicate Information (identified by operation id):
1 - filter("AU_SUBTYP1"."CREATE_TS"=MAX("AU_SUBTYP2"."CREATE_TS"))
3 - access("AU_SUBTYP2"."AU_ID_K"="AU_SUBTYP1"."AU_ID_K")
4 - access("AU_SUBTYP2"."EFF_DTE"="VW_COL_1" AND "AU_ID_K"="AU_SUBTYP2"."AU_ID_K")
7 - access("AU_SUBTYP3"."EFF_DTE"<=TO_DATE(' 2012-12-31 00:00:00', 'syyyy-mm-dd
hh24:mi:ss') AND "AU_SUBTYP3"."CREATE_TS"<TIMESTAMP' 2013-01-01 00:00:00')
filter("AU_SUBTYP3"."CREATE_TS"<TIMESTAMP' 2013-01-01 00:00:00' AND
"AU_SUBTYP3"."EFF_DTE"<=TO_DATE(' 2012-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
8 - filter("AU_SUBTYP2"."CREATE_TS"<TIMESTAMP' 2013-01-01 00:00:00')
9 - filter("AU_SUBTYP1"."EXISTS_FLG"='Y')Code 2:
I already raised a thread a week back and Dom suggested the following query, it is cost effective but the performance is same and used the same amount of Temp tablespace
select au_id_k,pgm_struct_id_k from (
SELECT au_id_k
, pgm_struct_id_k
, ROW_NUMBER() OVER (PARTITION BY au_id_k ORDER BY eff_dte DESC, create_ts DESC) rn,
create_ts, eff_dte,exists_flg
FROM au_subtyp
WHERE create_ts < TO_DATE('2013-01-01','YYYY-MM-DD')
AND eff_dte <= TO_DATE('2012-12-31','YYYY-MM-DD')
) d where rn =1 and exists_flg = 'Y'
--Explain Plan
Plan hash value: 4039566059
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 2809K| 168M| | 40034 (1)| 00:08:01 |
|* 1 | VIEW | | 2809K| 168M| | 40034 (1)| 00:08:01 |
|* 2 | WINDOW SORT PUSHED RANK| | 2809K| 133M| 365M| 40034 (1)| 00:08:01 |
|* 3 | TABLE ACCESS FULL | AU_SUBTYP | 2809K| 133M| | 5345 (2)| 00:01:05 |
Predicate Information (identified by operation id):
1 - filter("RN"=1 AND "EXISTS_FLG"='Y')
2 - filter(ROW_NUMBER() OVER ( PARTITION BY "AU_ID_K" ORDER BY
INTERNAL_FUNCTION("EFF_DTE") DESC ,INTERNAL_FUNCTION("CREATE_TS") DESC )<=1)
3 - filter("CREATE_TS"<TIMESTAMP' 2013-01-01 00:00:00' AND "EFF_DTE"<=TO_DATE('
2012-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))Thanks,
VijayHi Justin,
Thanks for your reply. I am running this on our Test environment as I don't want to run this on Production environment now. The test environment holds 2809605 records (2 Million).
The query output count is 281699 (2 Hundred Thousand) records and the selectivity is 0.099. The Distinct values of create_ts, eff_dte, and exists_flg is 2808905 records. I am sure the index scan is not going to help out much as you said.
The core problem is both queries are using lot of Temp tablespace. When we use this query to join the tables, the other table has the same design as below so the temp tablespace grows bigger.
Both the production and test environment are 3 Node RAC.
First Query...
CPU used by this session 4740
CPU used when call started 4740
Cached Commit SCN referenced 21393
DB time 4745
OS Involuntary context switches 467
OS Page reclaims 64253
OS System time used 26
OS User time used 4562
OS Voluntary context switches 16
SQL*Net roundtrips to/from client 9
bytes received via SQL*Net from client 2487
bytes sent via SQL*Net to client 15830
calls to get snapshot scn: kcmgss 37
consistent gets 52162
consistent gets - examination 2
consistent gets from cache 52162
enqueue releases 19
enqueue requests 19
enqueue waits 1
execute count 2
ges messages sent 1
global enqueue gets sync 19
global enqueue releases 19
index fast full scans (full) 1
index scans kdiixs1 1
no work - consistent read gets 52125
opened cursors cumulative 2
parse count (hard) 1
parse count (total) 2
parse time cpu 1
parse time elapsed 1
physical write IO requests 69
physical write bytes 17522688
physical write total IO requests 69
physical write total bytes 17522688
physical write total multi block requests 69
physical writes 2139
physical writes direct 2139
physical writes direct temporary tablespace 2139
physical writes non checkpoint 2139
recursive calls 19
recursive cpu usage 1
session cursor cache hits 1
session logical reads 52162
sorts (memory) 2
sorts (rows) 760
table scan blocks gotten 23856
table scan rows gotten 2809607
table scans (short tables) 1
user I/O wait time 1
user calls 11
workarea executions - onepass 1
workarea executions - optimal 9
Second Query
CPU used by this session 1197
CPU used when call started 1197
Cached Commit SCN referenced 21393
DB time 1201
OS Involuntary context switches 8684
OS Page reclaims 21769
OS System time used 14
OS User time used 1183
OS Voluntary context switches 50
SQL*Net roundtrips to/from client 9
bytes received via SQL*Net from client 767
bytes sent via SQL*Net to client 15745
calls to get snapshot scn: kcmgss 17
consistent gets 23871
consistent gets from cache 23871
db block gets 16
db block gets from cache 16
enqueue releases 25
enqueue requests 25
enqueue waits 1
execute count 2
free buffer requested 1
ges messages sent 1
global enqueue get time 1
global enqueue gets sync 25
global enqueue releases 25
no work - consistent read gets 23856
opened cursors cumulative 2
parse count (hard) 1
parse count (total) 2
parse time elapsed 1
physical read IO requests 27
physical read bytes 6635520
physical read total IO requests 27
physical read total bytes 6635520
physical read total multi block requests 27
physical reads 810
physical reads direct 810
physical reads direct temporary tablespace 810
physical write IO requests 117
physical write bytes 24584192
physical write total IO requests 117
physical write total bytes 24584192
physical write total multi block requests 117
physical writes 3001
physical writes direct 3001
physical writes direct temporary tablespace 3001
physical writes non checkpoint 3001
recursive calls 25
session cursor cache hits 1
session logical reads 23887
sorts (disk) 1
sorts (memory) 2
sorts (rows) 2810365
table scan blocks gotten 23856
table scan rows gotten 2809607
table scans (short tables) 1
user I/O wait time 2
user calls 11
workarea executions - onepass 1
workarea executions - optimal 5Thanks,
Vijay
Edited by: Vijayaraghavan Krishnan on Nov 28, 2012 11:17 AM
Edited by: Vijayaraghavan Krishnan on Nov 28, 2012 11:19 AM -
Hi
I'm seeing this critical error on my primary.
SMS_DISCOVERY_DATA_MANAGER Message ID 2636 and 620.
Discovery data manager failed to process the discovery data record (DDR)"D:\Prog.....\inboxes\auth\ddm.box\userddrsonly\adu650dh.DDR", because it cannot update the data source.
Where these ddr's are actually under ddm.box\userddrsonly\BAD_DDRS folder
I see a ton of DDR files in that folder. Not sure if I can delete them, so I moved them to a temp folder. AD User discovery keeps generating them.
Any help ?
Thanks
UK
Check the ddm.log file for more information.
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude
Maybe you are looking for
-
Embed FREE3OF9.TTF in Oracle 9i PDF report
I want to embed the "Free 3 of 9" barcode font in my Oracle 9i report. The steps I have taken are as follows: 1. I know I can't use a True Type font for embedding so I have used the conversion utility - ttf2pt1 - to create .afm and .pfa files. 2. I h
-
Can anyone help; re: Faxing problems with my 6200 all in one
Our HP office jet 6210 which we use only for faxing and minor printing intermittenly goes crazy with blinking red and amber lights when a fax is being received or when we are sending one. When the fax fails and we stop the blinking lights, it self t
-
CoreServicesUIAg[845] Unable to clear quarantine
Hi. Recently i'm getting lots of new kernel.log errors/messages. Feb 16 22:28:27 imac27 kernel[0]: CoreServicesUIAg[345] Unable to clear quarantine `CodeResources': 93 Feb 16 22:28:27 imac27 kernel[0]: CoreServicesUIAg[345] Unable to clear quarantine
-
Info on creating business cards in pages
In creating business cards using pages, how do copy and paste? Doesn't seem to work as normal.
-
Verizon 755p; using Versamail; cant sync contacts & calendar
I am having a sync conflict.... I HAD been able to sync Contacts & Calendar via USB but once I started using Treo for emails, have been unable to sync ever since. Very frustrating. Hours upon hours trying to figure it out. Went to advanced settings