Date/Time erros when working with Database Connectivity toolkit
Hi!,
We are observing errors with date/time when working with LV. The error occurs when the system datetime format is set such that day precedes month (e.g. dd/mm/yyyy). Our VI uses LV 7.1, Database Connectivity 1.0 and SQL Server 2000 on a Win2000 machine.
Problem details
Our database in SQL server has a table having columns with data type "datetime"
If the system date format (as set in control panel) is "mm/dd/yyyy", the 'insert into database' vi works fine. This function inserts the date and time (among other things) into the above mentioned table.
However, when the system datetime is set to dd/mm/yyyy we start receiving error that date and time is beyond range for dates in which the date had the day field greater than 12 (e.g. 23/10/2005). With the same settings, if the date is such that day field is equal or less than 12 (e.g. 03/10/2005), we do not receive an error but the date is interpreted as 10 March 2005 rather than 03 September 2005.
Clearly LV (or is it SQL) is mistaking the day field as month.
We have taken care that when sending and receiving date, the format date and time string is set as per system settings.
Thus, if system setting is "dd/mm/yyyy" our format string is "%d/%m/%Y"
And if the setting is "mm/dd/yyyy" our format string is"%m/%d/%Y"
Any help on problem cause and cure is welcome.
Thanks,
Gurdas
Gurdas Singh
PhD. Candidate | Civil Engineering | NCSU.edu
Hi Xu,
You answer led me to some very interesting fact finding on how SQL server handles date and time. I have attached a zip file which contains webpages that throw more light on this issue.
The attached pages tell me that SQL has an inbuilt date/time reference format. The default in mm/dd/yyyy. Which explains why my VI worked when I used that format to write to SQL.
However there is a catch:
SQL expects the date/time to be in its inbuilt reference format when you WRITE data to SQL. If the date/time is in a different format, better tell SQL about it by using say the SET command you mentioned.
BUT what about the date/time format when you are reading data from SQL?
Our finding is that SQL sends date/time string in the system date format when you READ from SQL !!! That is very surprising behaviour (why differentiate between write and read?).
Is our finding correct?
So, we adopted the following simple strategy (yet to be fully tested):
1) Whenever we write date/time to SQL, the string is formatted as mm/dd/yyyy. Presently, the user's SQL server is in the default state. Caveat is that if the user changes SQL date/time from default (which is mm/dd/yyyy) to anything else, our software will give errors. But then he changed it ;-)
2) When we read date/time from SQL we format the string as per system date/time format.
I know this is not very robust coding. But assuming the user keeps his SQL in the current setting, should we expect smooth working?
In other words, are there any errors and/or flaws in our strategy?
Thanks,
Gurdas
Gurdas Singh
PhD. Candidate | Civil Engineering | NCSU.edu
Similar Messages
-
Problem with database connectivity toolkit
I have problem with Labview database connectivity toolkit. I build and deploy the real_web.vi (attached to the post) to the web server. It seems that the DB Tools Open Connect can not connect to the data base, and it issues the following error:
NI_Database_API.lvlib:DB Tools Open Connec (String).vi->real_web.vi->real_web.vi.ProxyCallerADO Error: 0x80004005 Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in NI_Database_API.lvlib:DB Tools Open Connec (String).vi->real_web.vi->real_web.vi.ProxyCaller
But in highlight execution, I do not get this error! My program connects to the database and read the data. What is wrong ?
Moreover, when I connect to the vi using the web-browser, the cpu usage of ApplicationWebServer process goes up to 100% (The same problem as stated in this post).
Attachments:
real_web.vi 28 KBSay what you will about the problems that the DCT can cause (and goodness knows I have) my suspicion is that this is not a toolkit ptoblem. When ever something only works with execution highlighting on, two words should immediately jump to mind: "race" "condition".
Execution highlighting will muck aound with the order in which things get done in your code. Can you post what your code looks like?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
New time capsule stops working with http connections
I have the latest 2TB Time Capsule. I've been getting a weird issue where my I can no longer can do http connections (i.e. browse the internet) but I can still use other internet capable services like Skype or Steam. It seems that traffic through port 80 just seems to stop working. All of my devices on my network experience the issue. I have even exchanged Time Capsules but the issue still presists.
Does anyone have any ideas?Here's a traceroute when things work:
traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 3.637 ms 1.030 ms 0.924 ms
2 69.254.248.1 (69.254.248.1) 10.644 ms 10.237 ms 10.590 ms
3 te-7-1-ur02.olathe.ks.indepen.comcast.net (68.87.234.209) 10.453 ms 10.177 ms 10.519 ms
4 te-4-4-ar02.independence.mo.indepen.comcast.net (68.87.234.5) 10.464 ms 11.360 ms 13.087 ms
5 68.87.234.29 (68.87.234.29) 11.762 ms 12.583 ms 13.066 ms
6 be-20-702-cr01.sanjose.ca.ibone.comcast.net (68.86.89.37) 28.948 ms 21.847 ms 24.969 ms
7 he-0-11-0-0-pe04.350ecermak.il.ibone.comcast.net (68.86.83.58) 22.267 ms 22.081 ms 21.251 ms
8 * * *
9 * * *
10 72.14.237.110 (72.14.237.110) 26.647 ms
72.14.237.108 (72.14.237.108) 25.617 ms
72.14.237.110 (72.14.237.110) 53.230 ms
11 72.14.232.141 (72.14.232.141) 33.403 ms 33.622 ms
209.85.248.228 (209.85.248.228) 34.010 ms
12 216.239.46.193 (216.239.46.193) 33.824 ms 33.433 ms 34.014 ms
13 * * *
14 google-public-dns-a.google.com (8.8.8.8) 37.414 ms 34.587 ms 34.306 ms
Here's the output when it doesn't:
traceroute 8.8.8.8
traceroute: unknown host 8.8.8.8
I just changed my DNS. I'll report back in a day to say if it fixed anything. -
Data incompatibility error when working with objets
Hi
I am passing an object to the procedure inside package.
when i am using for loop it's working fine
the code is below
create or replace type emp_obj as
object(empno number(10),
ename varchar2(10),
sal number(10,3));
create or replace type emp_tab is table of emp_obj;
CREATE OR REPLACE PACKAGE emp_obj_pkg
AS
PROCEDURE emp_ins_proc(p_emp_tab IN emp_tab);
END emp_obj_pkg;
CREATE OR REPLACE PACKAGE BODY emp_obj_pkg
AS
PROCEDURE emp_ins_proc(p_emp_tab IN emp_tab)
IS
BEGIN
FOR i IN 1..p_emp_tab.count
LOOP
INSERT INTO emp VALUES( p_emp_tab(i).empno,p_emp_tab(i).ename,p_emp_tab(i).sal);
END LOOP;
END emp_ins_proc;
END emp_obj_pkg;
declare
v_emp_tab emp_tab;
begin
select emp_obj(empno,ename,sal) bulk collect into v_emp_tab from emp;
emp_obj_pkg.emp_ins_proc(v_emp_tab);
end;
when i am trying to use the forall in the package it throwing the error data incompatibility error
the procedure code for the package is
CREATE OR REPLACE PACKAGE BODY emp_obj_pkg
AS
PROCEDURE emp_ins_proc(p_emp_tab IN emp_tab)
IS
BEGIN
FORALL i IN 1..p_emp_tab.count
INSERT INTO emp VALUES p_emp_tab(i);
END emp_ins_proc;
END emp_obj_pkg;
i got below errors
ERROR
PL/SQL: SQL Statement ignored
PL/SQL: ORA-00932: inconsistent datatypes: expected - got -
pls help me how to do this with for all
Thanks & Regards
Bala Sake954925 wrote:
when i am trying to use the forall in the package it throwing the error data incompatibility errorThe structure following the VALUE clause need to match the structure of the table being inserted into.
Basic examples of using record structures for inserting data, for object and normal tables.
SQL> create or replace type TEmployee is object(
2 emp_id number,
3 emp_name varchar2(10),
4 dept_id number
5 );
6 /
Type created.
SQL>
SQL> create or replace type TEmployeeTable is table of TEmployee;
2 /
Type created.
SQL>
SQL> create table employees of TEmployee(
2 constraint pk_employees primary key( emp_id )
3 ) organization index;
Table created.
SQL>
SQL> create or replace procedure EmpInsert( empTable TEmployeeTable ) is
2 begin
3 forall i in 1..empTable.Count
4 insert into employees values empTable(i);
5 end;
6 /
Procedure created.
SQL>
SQL> declare
2 empArray TEmployeeTable;
3 begin
4 select
5 TEmployee( empno, ename, deptno )
6 bulk collect into
7 empArray
8 from emp;
9
10 EmpInsert( empArray );
11 end;
12 /
PL/SQL procedure successfully completed.
SQL> create table employees(
2 emp_id number primary key,
3 emp_name varchar2(10),
4 dept_id number
5 ) organization index;
Table created.
SQL>
SQL> declare
2 cursor c is select empno, ename, deptno from emp;
3 type TCursorBuffer is table of c%RowType;
4 buffer TCursorBuffer;
5 begin
6 open c;
7 loop
8 fetch c bulk collect into buffer limit 100;
9
10 forall i in 1..buffer.Count
11 insert into employees values buffer(i);
12
13 exit when c%NotFound;
14 end loop;
15 close c;
16 end;
17 /
PL/SQL procedure successfully completed.
SQL> Of course, these example do not show how one should code when moving data from one table to another (using native SQL only is by far faster and more scalable).
However it does show the basics of inserting a structure via the INSERT call in PL/SQL (as oppose to individual variables) - and this is an important consideration as the resulting code is more robust and requires less keystrokes. -
Database connectivity toolkit problem with WINDOWS VISTA and Microsoft jet 4.0 provider
Hi again,
I'm experiencing a problem with Database connectivity toolkit and Microsoft Jet 4.0 provider (MS ACCESS mdb database).
I was able to get my application to work properly on my PC: WINDOWS XP PROFESSIONAL, VERSION 2002, SERVICE PACK 3 and Msjet40.dll ver. 4.0.9511.0 (Windows XP SP3 and Security Bullettin MS08-028).
The same connectivity toolkit seems to have problems (although I didn't get any error dialog) on a laptop with WINDOWS VISTA ULTIMATE, SERVICE PACK 2 and Msjet40.dll ver. 4.0.9755.0.
Does anyone have an idea whether it is a sort of compatibility issue or a different thing?
Would it be possible to include my DLLs into the installer in such a way LabVIEW application calls those DLLs instead of the ones it finds on the host PC?
Thanks a lot. Any suggestion or advice very welcome and appreciated.I ran into this with Windows7 64 but, could not get the jet 4.0 to work. Endnd up dumping access and used sql server express, its free, and all my code worked fine, just used a different UDL to connect. I wasted lots of time trying to find a way of getting the jet4.0 to work with 64bit windows.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA -
Limit errors while working with multiple connections
I'm currently evaluating SQL Developer and I'm looking particularly for functionnalities that permit to distinct clearly several connections, so as to avoid DBA errors when working with several connections in parallel.
Currently it seems that SQL Developer provide these features :
- folders organization in the explorer --> for example we can create one folder per environnement (DEV, ...).
- connection name --> each user can define its own name. These aliases are then shown in main window title and tabs when opening a connection.
These features ar quite limited when comparing with a tool like Toad, which permit to associate colors to connections (good feature!) or define custom fields. Moreover database user is not shown into the SQL Developer interface, unless we add it into the connection name...
Do you know if it is planned to improve these features in following SQL developer releases ?
Or,if not, would it be possible to develop rapidly a plugin that can provide it? (especially concerning connections colors)
Thanks.OK I found a feature request that exactly corresponds to mine : [http://htmldb.oracle.com/pls/otn/f?p=42626:39:8190796679950913::NO::P39_ID:3881]
But this request is 2 years old and was apparently rejected. Can I submit again a similar request?
And do you know if it would be possible to add this feature by developing a custom plug-in?
I mean: do SQL Developer plug-in extension mechanism allow us to extend the "connection preferences" wizard, and GUI?
Thanks -
What does HTML have over PDFs when working with data?
I'm doing some research for a client whose company is moving from PDFs to HTML for their in-house user interfaces.
What does HTML have over PDFs when working with data?
Thanks!
LukePDFs can indeed work with data and can be programmed with javascript. You can do some pretty interesting things with it. It is even possible to create interactive forms on the web using PDF, however it requires server-side support. As a general rule, though, PDFs are terrible as a web interface and it's far easier to work with HTML and PHP.
HTML is lightweight and PDF isn't (in case that seems like a small thing, it's actually a big negative for PDFs). The success of your PDFs will depend on the versions of acrobat your users use, and getting data in and out of the PDFs will require learning far more about Acrobat's FDF format and XML implementation than you may want to know. -
Incredibly Long Lag Time When Working With Effects in Premiere Pro CC 2014
I am having incredibly long lag times when working with effects in Premier Pro CC 2014. Like 60 seconds or more. This also happens periodically when I am doing something as simple as cutting into a timeline (just ripple deleting from and in to an out point).
I have a MacBook Pro running OSX 10.9.4 2 GHz Intel Core i7 with 16 GB 1600 MHz DDR3.
I have seen that some people are having different versions of the same problem. I do have RedGiant plug-ins, but I am not using any of them in this project. The Red Giant plugs (again, not being used in the project) include MOJO and Universe. The previous version most certainly did not work like this. Any ideas? I did try moving the Red Giant plugs out of the COMMON folder and "alt" starting up to reset preferences. Still having same problems.
A specific example is I have an interview shot. I add brightness and contrast. Just making a change to the effect (increasing brightness) causes freezing of the interface and long delays. I added a piece of transparent video on a top layer to add a CIRCLE to create a vignette effect. Same deal -- ridiculously long times for effect changes to take place.
Does anyone have any clues as to how to fix these problems?
THANKS FOR ANYONE'S HELP!!!!!!!Got the same Error. Previous I worked with a GTX 760, and was hoping to get it fixed with using a GTX 780 6GB. But just as you, didn't solve the Problem.
Usually I got the Problem solved, with exiting Premiere, restarting it, reset my Workspace. Then the Problem of having the bugged Workspace was gone. And also the Problem of the missing Video Tracks.
At the moment I started on a new Project. Pretty simple, with only a 21 second DV footage. And here I was switching tabs with my Browser, came back to the Project, and the Video Tracks were gone. I saved, closed Premiere, restated and the Video Tracks are still missing.
So I made a new Sequence, voilá the Video Tracks are there. Thus I need to copy and paste the Tracks onto the new Sequence.
But that is not really a solution!
I was on the Phone with Adobe, and on Chat, but they couldn't help me. They suggested to get a Tesla or Quadro Card, or at least a GPU that got confirmed as working on their page. I did that, but obviously, that is not the issue. -
Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?
try a reset.
Hold the home & power buttons down simultaneously until you see the Apple logo appear.
Note: no data will be lost. -
How can I use SQL TOOLKIT concurrently with Database Connectivity ?
I have installed LabVIEW 6.1 with the Database Connectivity Toolkit and the SQL Compatibility Toolkit (e.g. _SQL folder). I am trying to make the transition from the SQL Toolkit VIs to the Database Connectivity toolkits, but for compatability with existing systems I would like to be able to run the two sets of VIs concurrently (but not in the same app).
When I read into 6.1 a connection VI that I wrote with LabVIEW 6.0 and the SQL toolkit the connection reference type gets changed from a number to type connection (see attachments) . Does compatbility mean that my SQL toolkit VIs are converted to a form compatible with the new ADO ?
Can I use the SQL Toolkit VIs or the Database connectivit
y VIs in the same installation of 6.1 ?
Can I have the SQL Toolkit VIs appear on the functions pallette and function as they did when only the SQL toolkit was installed ?
Attachments:
CNNCT.vi 20 KB
CNNCT.vi 22 KBIn response to your #2 below:
Actually it is possible to have the old SQL Toolkit and new Database
connectivity in the same installation of LabVIEW. I have only tried it on
6i, but don't see why it wouldn't work on 6.1. The trick is not to install
the SQL toolkit compatabitily VI's. The old SQL toolkit uses the Intersolve
dll through ODBC while the new Database connectivity uses ADO so it is
possible to use both methods not only in the same LabVIEW install, but it
the same running application. It has been a while since I originally did
this, so I am posting only to mention that it is possible and not exactly
how to do it. If anyone is interested in more details just respond.
Brian
"Jeff B" wrote in message
news:[email protected]...
> First, direct answers to your direct questions:
>
> 1. Does compatbility mean that my SQL toolkit VIs are converted to a
> form compatible with the new ADO ?
>
> Yes
>
> 2. Can I use the SQL Toolkit VIs or the Database connectivity VIs in
> the same installation of 6.1 ?
>
> No
>
> 3. Can I have the SQL Toolkit VIs appear on the functions pallette
> and function as they did when only the SQL toolkit was installed ?
>
> No
>
>
> Now an elaboration:
>
> Having the old SQL Toolkit and the new Database Connectivity Toolset
> installed on the same version of LabVIEW on the same computer is not
> supported.
>
> Once you install the Database Connectivity Toolset, any VIs written
> with the SQL Toolkit will run, but with the ADO layer, as you
> suspected.
>
> Internally, the only way we can have both the SQL Toolkit and the
> Database Connectivity Toolset installed on the same computer for
> troubleshooting customer issues is to have them installed on different
> versions of LabVIEW. I, for example, have LabVIEW 5.1.2, 6.0.3, and
> 6.1 all installed on my computer, and I have the SQL Toolkit install
> on LabVIEW 5.1.2, and the Database Connectivity Toolset installed on
> LabVIEW 6.0.3. In this configuration I can still run SQL Toolkit VIs
> independent of the Database Connectivity Toolset if I open and run
> them in LabVIEW 5.1.2. -
I am using the "fetch all" vi to do this, but it is retrieving one record at a time, (if you examine the block diagram) How can i retrieve all records in a faster more efficient manner?
If this isn't faster than your previous method, then I think you found the wrong example. If you have the Database Connectivity Toolkit installed, then go to the LabVIEW Help menu and select "Find Examples". It defaults to searching for tasks, so open the "Communicating with External Applications" and "Databases" and open the Read All Data. The List Column names just gives the correct header to the resulting table and is a fast operation. That's not what you are supposed to be looking at ... it's the DBTools Select All Data subVI that is the important one. If you open it and look at its diagram, you'll see that it uses a completely different set of ADO methods and properties to retrieve all the data.
-
Very slow responce when working with Office file on DFS-Share
Very slow responce when working with Office file on DFS-Share
We have implemented the following configuration
Domain level Windows 2000. Two member servers with Windows Server 2008 R2, sharing the same DFS namespace with, at the moment, one folder target called Home.
Users complaining that the access to different MS Office files is very slow. Even creating a new MS Word document using right click context menu takes up to 4 minutes to open. Saving, for example, one singe Excel sheet takes also few minutes.
Tested with both, MS Office 2007 and MS Office 2010. Makes no difference. When using Office 2010 you can see the message like contacting:
\\DomainName\Root\Home\UserName. Other files like TXT, JPG or PDF are not affected.
What makes the thing really weird is the fact, that the behavior described above can absolutely change after client machine being rebooted, suddenly everything becomes very fast and this condition can revert back again just after the next
reboot.
Considerations until now:
1. This has nothing to do with the file size. Even tiny files are affected.
2. AD Sites are configured correctly and the client workstations see themselves in the correct sites.
3. This is not an Office issue. If I map my folder target not as DFS, but directly as shared network drive
\\ServerName\Root\Home\UserName , everything functions as expected
What makes me suspicious: when using f.e. TCPView to monitor connections, I can see, that each time I make any operation on an office file, there will be a connection established to one of the domain controllers, sometimes to remote ones,
located in other countries. But on the other side, even if the connection is established to the nearest DC, operations are still very very slow!
Just forget to say. All clients are Windows 7
Thanks to all who respond.Dear all,
sorry for the delayed reply. The problem has been solved now and since September 19<sup>th</sup>. everything is functioning as expected.
What was done:
Deleted replication targets excepting the initial ones
Carefully recreated folder targets
Deleted and recreated replication groups
Disabled SNP features on both namespace servers
Created EnableTCPA registry entry
Checked that the following Updates are installed
http://support.microsoft.com/kb/2688074
http://support.microsoft.com/kb/2647452
Concering Office File validation KB2553065 - This Update was already declined on our WSUS server
Kind Regards
Eduard -
Hi, I recently updated to CC from CS6 and am having issues when working with PSDs containing video layers, or are set up as frame animations: When attempting to Save As, the dialog will be completely blank except for the Save and Cancel buttons. If I press cancel, then return to Save As, CC then often crashes.
Here is the Error Event from Event Viewer:
Faulting application name: Photoshop.exe, version: 14.0.0.0, time stamp: 0x5176451b
Faulting module name: MediaCoreIF.DLL, version: 7.0.0.0, time stamp: 0x51573a21
Exception code: 0xc0000005
Fault offset: 0x00000000001fca98
Faulting process id: 0x750
Faulting application start time: 0x01ce9e1925a5045b
Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Photoshop.exe
Faulting module path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\MediaCoreIF.DLL
Report Id: db6d5f8f-0a0c-11e3-9df9-0026b9cc01d1
So far I am only having these issues if I have been working with video layers and then frame animations. Frame animations in particular seem to cause instability as I can often work with video layers all day without a problem. Then if I import video frames to layers, or open a PSD containing a frame animation, the Save As may not necessarily work.
Sometimes closing and restarting Photoshop will allow me to save again, but then sometimes a whole system reboot is required. It is only temporary though.
I am not running antivirus software or other apps aside from what starts at boot.Frustrating that this thread has petered out, since I'm having the exact same issue. Did you ever find a way to improved stability?
Also of note, the issue followed me across machines. Two weeks ago I purchased a new machine, figured if that didn't solve the problem nothing would... It didn't. :\
The only similar factors are that the machines both are 64bit Windows 7 (a fresh OEM install on the new box) and have nVidia-brand graphics cards. (Again, though - not the SAME graphics card, picked up a new one with the new machine.) No drive cloning was involved: this is completely new hardware, a fresh factory install of Windows 7, different antivirus (went from AVG to Avast), and new download of Photoshop CC from CreativeCloud.
Looks like our event details are quite similar, too.
Log Name:
Application
Source:
Application Error
Date:
4/6/2014 1:57:39 PM
Event ID:
1000
Task Category: (100)
Level:
Error
Keywords:
Classic
User:
N/A
Computer:
REDACTED
Description:
Faulting application name: Photoshop.exe, version: 14.2.1.570, time stamp: 0x52f4a9f2
Faulting module name: MediaCoreIF.DLL, version: 7.0.0.0, time stamp: 0x51573a21
Exception code: 0xc0000005
Fault offset: 0x00000000001fca98
Faulting process id: 0x1ca4
Faulting application start time: 0x01cf51c68639ec43
Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Photoshop.exe
Faulting module path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\MediaCoreIF.DLL
Report Id: 5268f22b-bdbd-11e3-b9df-d850e65afc6f -
Error when working with TableView using JCA
Hi sdns,
I am getting an iview rutnime error when working with Tableview using JCA. Here i am putting all my code, go thorugh it and tell me if any error is there.One more thing is Usermappping and all properties are set to system object.
Now you can throught he code which is followed by error also.
<u>Java file.</u>
public class DisplayComponent extends PageProcessorComponent {
public DynPage getPage() {
return new DisplayComponentDynPage();
public static class DisplayComponentDynPage extends JSPDynPage {
private JCATviewBean bean;
public void doInitialization() {
IPortalComponentProfile profile =
((IPortalComponentRequest) getRequest())
.getComponentContext()
.getProfile();
Object o = profile.getValue("myBean");
if (o == null || !(o instanceof JCATviewBean)) {
bean = new JCATviewBean();
profile.putValue("myBean", bean);
} else {
bean = (JCATviewBean) o;
// fill your bean with data here...
IPortalComponentRequest request =
(IPortalComponentRequest) this.getRequest();
doJca(request);
public void doProcessAfterInput() throws PageException {
public void doProcessBeforeOutput() throws PageException {
this.setJspName("Report.jsp");
private IConnection getConnection(
IPortalComponentRequest request,
String alias)
throws Exception {
IConnectorGatewayService cgService =
(IConnectorGatewayService) PortalRuntime
.getRuntimeResources()
.getService(
IConnectorService.KEY);
ConnectionProperties prop =
new ConnectionProperties(
request.getLocale(),
request.getUser());
return cgService.getConnection(alias, prop);
public void doJca(IPortalComponentRequest request) {
IConnectionFactory connectionFactory = null;
IConnection client = null;
String rfm_name = "BAPI_COMPANYCODE_GETLIST";
try {
try {
// pass the request & system alias
// Change the alias to whatever the alias is for your R/3 system
client = getConnection(request, "MyIDES");
} catch (Exception e) {
System.out.println(
"Couldn't establish a connection with a target system.");
return;
Start Interaction
IInteraction interaction = client.createInteractionEx();
IInteractionSpec interactionSpec =
interaction.getInteractionSpec();
interactionSpec.setPropertyValue("Name", rfm_name);
CCI api only has one datatype: Record
RecordFactory recordFactory = interaction.getRecordFactory();
MappedRecord importParams =
recordFactory.createMappedRecord(
"CONTAINER_OF_IMPORT_PARAMS");
IFunctionsMetaData functionsMetaData =
client.getFunctionsMetaData();
IFunction function = functionsMetaData.getFunction(rfm_name);
if (function == null) {
System.out.println(
"Couldn't find " + rfm_name + " in a target system.");
return;
How to invoke Function modules
System.out.println("Invoking... " + function.getName());
MappedRecord exportParams =
(MappedRecord) interaction.execute(
interactionSpec,
importParams);
How to get structure values
IRecord exportStructure = (IRecord) exportParams.get("RETURN");
String columnOne = exportStructure.getString("TYPE");
String columnTwo = exportStructure.getString("CODE");
String columnThree = exportStructure.getString("MESSAGE");
System.out.println(" RETURN-TYPE = " + columnOne);
System.out.println(" RETURN-CODE = " + columnTwo);
System.out.println(" RETURN-MESSAGE =" + columnThree);
How to get table values
IRecordSet exportTable =
(IRecordSet) exportParams.get("COMPANYCODE_LIST");
exportTable.beforeFirst();
// Moves the cursor before the first row.
while (exportTable.next()) {
String column_1 = exportTable.getString("COMP_CODE");
String column_2 = exportTable.getString("COMP_NAME");
System.out.println(
" COMPANYCODE_LIST-COMP_CODE = " + column_1);
System.out.println(
" COMPANYCODE_LIST-COMP_NAME = " + column_2);
// create the tableview mode in the bean
bean.createData(exportTable);
Closing the connection
client.close();
} catch (ConnectorException e) {
// app.putValue("error", e);
System.out.println("Caught an exception: \n" + e);
} catch (Exception e) {
System.out.println("Caught an exception: \n" + e);
<u>Bena file</u>
package com.sap.JCA.bean;
import java.util.Vector;
import com.sapportals.connector.execution.structures.IRecordSet;
import com.sapportals.htmlb.table.DefaultTableViewModel;
import com.sapportals.htmlb.table.TableViewModel;
public class JCATviewBean {
public DefaultTableViewModel model;
public TableViewModel getModel() {
return this.model;
public void setModel(DefaultTableViewModel model) {
this.model = model;
public void createData(IRecordSet table) {
// this is your column names
Vector column = new Vector();
column.addElement("Company Code");
column.addElement("Company Name");
// all this logic is for the data part.
Vector rVector = new Vector();
try {
table.beforeFirst();
while (table.next()) {
Vector data = new Vector();
data.addElement(table.getString("COMP_CODE"));
data.addElement(table.getString("COMP_NAME"));
rVector.addElement(data);
} catch (Exception e) {
e.printStackTrace();
// this is where you create the model
this.setModel(new DefaultTableViewModel(rVector, column));
<b>JSP File:</b>
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="myBean" scope="application" class="com.sap.JCA.bean.JCATviewBean" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<br>
<hbj:textView id = "tv1" text = "<b>TableView Example Using JCA</b> <br>"/>
<hbj:tableView
id="myTableView1"
model="myBean.model"
design="ALTERNATING"
headerVisible="true"
footerVisible="true"
fillUpEmptyRows="true"
navigationMode="BYLINE"
selectionMode="MULTISELECT"
headerText="TableView example1"
visibleFirstRow="1"
visibleRowCount="30"
width="500 px"
/>
</hbj:form>
</hbj:page>
</hbj:content>
<b>Error when Executing this component:</b><u></u>
Portal Runtime Error
<b>An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
com/sapportals/portal/htmlb/page/PageProcessorComponent.
Exception id: 12:21_28/10/05_0173_94105150
See the details for the exception ID in the log file</b>
If anybody find the error please reply to this post.
Regards,
sireesha.Thanks for your response Martin,
I have already seen the log file but im couldn't findout anything from that since it is so long here im putting some part of please see this.if u able to find it clarify me,
<b>Here the log file:</b>
1.5#001321FD6213005D0000907100001CB000040419258FBF4E#1130405957843#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler/JobStore#Plain###With in the acquireLockForNextAvailableJob DataStore#
#1.5#001321FD6213005D0000907200001CB00004041925916735#1130405957953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Acquired the job null#
#1.5#001321FD6213005D0000907300001CB0000404192591688D#1130405957953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Did not find any job.So, Waiting for sometime for the next job#
#1.5#001321FD621300650000120E00001CB00004041925C953D7#1130405961625#com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory##com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.XIManagedConnectionFactoryController.run()######04d7f690469311da8d52001321fd6213#Thread[Thread-114,5,SAPEngine_System_Thread[impl:5]_Group]##0#0#Debug#1#/Applications/ExchangeInfrastructure/AdapterFramework/ThirdPartyRoot/comsap/Server/Adapter Framework#Java###MCF with GUID is running. (,)#3#964bfca0444711dabb51001321fd6213#com.sap.engine.services.deploy.server.ApplicationLoader@1586c77#964bfca0444711dabb51001321fd6213#
#1.5#001321FD6213005D0000907400001CB000040419275B24FC#1130405987953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###within the infinite of the Scheduler Thread#
#1.5#001321FD6213005D0000907500001CB000040419275B25D9#1130405987953#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler/JobStore#Plain###With in the acquireLockForNextAvailableJob DataStore#
#1.5#001321FD6213005D0000907600001CB000040419275B2E27#1130405987953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Acquired the job null#
#1.5#001321FD6213005D0000907700001CB000040419275B2EFA#1130405987953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Did not find any job.So, Waiting for sometime for the next job#
#1.5#001321FD6213005D0000907800001CB0000404192924ED59#1130406017953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###within the infinite of the Scheduler Thread#
#1.5#001321FD6213005D0000907900001CB0000404192924EE36#1130406017953#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler/JobStore#Plain###With in the acquireLockForNextAvailableJob DataStore#
#1.5#001321FD6213005D0000907A00001CB0000404192924F652#1130406017953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Acquired the job null#
#1.5#001321FD6213005D0000907B00001CB0000404192924F710#1130406017953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Did not find any job.So, Waiting for sometime for the next job#
#1.5#001321FD621300650000120F00001CB000040419295CCD8B#1130406021625#com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory##com.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.XIManagedConnectionFactoryController.run()######04d7f690469311da8d52001321fd6213#Thread[Thread-114,5,SAPEngine_System_Thread[impl:5]_Group]##0#0#Debug#1#/Applications/ExchangeInfrastructure/AdapterFramework/ThirdPartyRoot/comsap/Server/Adapter Framework#Java###MCF with GUID is running. (,)#3#964bfca0444711dabb51001321fd6213#com.sap.engine.services.deploy.server.ApplicationLoader@1586c77#964bfca0444711dabb51001321fd6213#
#1.5#001321FD6213005D0000907C00001CB0000404192AEEB1E2#1130406047953#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###within the infinite of the Scheduler Thread#
#1.5#001321FD6213005D0000907D00001CB0000404192AEEB2C0#1130406047953#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.persistence.jdo.DataBaseJobStore#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler/JobStore#Plain###With in the acquireLockForNextAvailableJob DataStore#
#1.5#001321FD6213005D0000907E00001CB0000404192AEEBAD8#1130406047968#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Acquired the job null#
#1.5#001321FD6213005D0000907F00001CB0000404192AEEBB9E#1130406047968#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#sap.com/crm.trexr3#trexr3.com.sapmarkets.isa.services.schedulerservice.SchedulerThread#J2EE_ADMIN#530##obtdev3_O09_94105150#Guest#8a2bbd20444711da932c001321fd6213#Thread[SchedulerThread,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#/System/Scheduler#Plain###Did not find any job.So, Waiting for sometime for the next job# -
Hi there, Hope everyone is well. I have troubles with my Ai when working with a logo, I just want to move it from one point to another and it gets pretty slow to be moved. I am working on a brand new iMac and this problem surprises me a little bit. Do you know why is this happening? I get de Ai from the Creative Cloud...could it be the internet?
Can you please show a screenshot?
Are there any placed raster images in your file? Are there any raster effects in your logo file? What are your Effect > Document Raster Effects Settings... ? Also, what are your Preferences > Scratch Disks settings, and how much free space do you have on that (those) drive(s)?
I doubt it's the internet, unless you're also synching at the same time ... and while this is taking place your internet connection is super-slow.
Maybe you are looking for
-
How or where do I find the app in the iphone, the provider says it is stored somewhere?
-
XML data encoding iso-8859-1 . Currently utf-16 is default encoding
Hello ABAP Gurus , Need a help from you . Scenario : We have SAP4.7 enterprise version which we have now converted to Unicode system . There is a BSP application which talks to an external web application (Non Unicode) thru HTTP protocol and sends da
-
Hanging and getting stuck when uploading
This has happened a few times now FCPX gets stuck uploading It doesnt move from the percentage mark its stuck on It becomes unresponsive to clicks I have to force close Also... I suspect that the job gets finished... When I tried to reupload a task t
-
Hi Friends, we have a requirement in that we need to know the corresponding tables for invoice verification, i have gone through with the following tables BKPF,BSEG,RSEG,MSEG AND MKPF, i am getting confusion while selecting the corresponding table fo
-
hi all, I have tried the file to file scenario and its working fine. Now i'm trying the file to csv scenario. In the same file to file scenario I have done changes in the receiver communication channel like file content conversion. In the datatype i