Is it bug or what?

In my project im having 3 beans in EJB module 2 SLSB and 1 MDB its like 1slsb hav remote interface and other slsb hav local interface. Communication is like Remote Interface (slsb1)->MDB->Local Interface(slsb2) all are deployed in glassfish v2 .
In my web client my servlet is calling just remote interface of slsb1 and i hav put jar path of ejb module in my webclient ..When i deploy my client it fails that and said it cant find ejb refrence ....bla bla bla..
I find 2 solution for that ...
1 When i use remote interface in both slsb then it works fine...(that i really dont want to do).
2 I edited my ejb jar module which i put in classpath of web module and just put remote interface class of slsb1 and remove all other stuff. In this way web client is also successfully deployed and Application works fine.
So my question is this the right way of doing it or there is some bug in glassfish or am i doing something wrong?

It's not a bug. There is no special knowledge of what an ejb-jar module is within a .war. All you need to do is make the classes that you need to invoke the application local or remote EJB visible to the .war. That can mean packaging them in WEB-INF/classes, in a .jar within WEB-INF/lib, or referring to a library .jar packaged at the toplevel of an .ear in which the .war is packaged.

Similar Messages

  • Is this a bug? What do I do?

    Hi all,
    I am running an update of a table with 2 columns from 9.2.0.8 to 8.1.7.4 over database link.
    First column (number) is updated, but second appears to be NULL. ?!
    I've tried to do it from 8.1.7 to 9.2, but with the same result.
    Then I've tried to create a table on 8.1.7 side and insert data from 9.2 into it first, but .... same: NULL values for char colums.
    Is it a bug?
    What else can I try?
    Thanks,
    Eugene

    Thanks all for replies.
    This is the oddest thing and that is why I was asking you if it's a bug. It worked this time and you will laugh at me.
    Here is what I've done:
    ============
    9.2 DB
    ============
    select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE 9.2.0.8.0 Production
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    desc macys_store_names;
    Name Null? Type
    PH00_PKT_CTL_NBR NOT NULL NUMBER(6)
    STORE_NAME CHAR(25)
    truncate table macys_store_names;
    Table truncated.
    select count(*) macys_rec_num
    2 from phpick00@db817
    3 where ph00_soldto like 'MACYS%'
    4 and ph00_pkt_stat_flg = ' ';
    MACYS_REC_NUM
    1292
    insert into macys_store_names
    2 SELECT ph00_pkt_ctl_nbr,
    3 substr(defa_cust_store_name,1,25) store_name
    4 FROM sales_order A,
    5 customer_store b,
    6 (
    7 select ph00_pkt_ctl_nbr,
    8 '81' business_unit_id,
    9 SUBSTR(ph00_order,1,1) sales_order_prefix,
    10 LTRIM(SUBSTR(REPLACE((ph00_order||ph00_order_sfx),' ',''),2),0) sales_order_numb
    er
    11 from phpick00@db817
    12 where ph00_soldto like 'MACYS%'
    13 and ph00_pkt_stat_flg = ' '
    14 ) c
    15 WHERE A.business_unit_id = b.business_unit_id AND
    16 A.customer_id = b.customer_id AND
    17 A.customer_store_id = b.customer_store_id AND
    18 a.business_unit_id = c.business_unit_id
    19 and a.sales_order_prefix = c.sales_order_prefix
    20 and a.sales_order_number = c.sales_order_number;
    1292 rows created.
    commit;
    Commit complete.
    select * from macys_store_names where rownum < 10;
    PH00_PKT_CTL_NBR STORE_NAME
    567384 Fort Steuben
    567385 Fort Steuben
    567386 Chesterfield MO
    567387 Chesterfield MO
    567388 Mid Rivers
    567389 Mid Rivers
    567390 White Oaks
    567391 White Oaks
    567392 Market Place IL
    9 rows selected.
    update phpick00@db817 a
    2 set ph00_mark_for = (select store_name
    3 from macys_store_names b
    4 where a.ph00_pkt_ctl_nbr = b.ph00_pkt_ctl_nbr)
    5 ,ph00_lm_user_id = 'MACYS_STOR'
    6 ,ph00_dlm = sysdate
    7 where ph00_pkt_ctl_nbr in
    8 (select ph00_pkt_ctl_nbr from macys_store_names);
    1292 rows updated.
    commit;
    ============
    8.1.7 DB
    ============
    select * from v$version;
    BANNER
    Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
    PL/SQL Release 8.1.7.4.0 - Production
    CORE 8.1.7.2.1 Production
    TNS for 32-bit Windows: Version 8.1.7.4.0 - Production
    NLSRTL Version 3.4.1.0.0 - Production
    select ph00_pkt_ctl_nbr, ph00_mark_for
    2 from phpick00
    3 where ph00_pkt_ctl_nbr in
    4 (select ph00_pkt_ctl_nbr from macys_store_names@db92)
    5 and rownum < 10
    6 ;
    PH00_PKT_CTL_NBR PH00_MARK_FOR
    566781 Queens
    566782 Queens
    566783 Brooklyn
    566784 Brooklyn
    566785 Herald Square
    566786 Herald Square
    566787 Westfarms Mall
    566788 Westfarms Mall
    566789 Manhasset
    9 rows selected.
    Thanks,
    Eugene
    Edited by: epipko on Oct 19, 2009 10:40 AM
    Edited by: epipko on Oct 19, 2009 10:44 AM

  • Power PC, 10.5.8, 1.8GHz single . . . Recently running very slow, currently VERY slow.  I. Must have a bug.  What's the best virus scrubber out there?  Thanks.

    Power PC, 10.5.8, 1.8GHz single . . . Recently running very slow, currently VERY slow.  I. Must have a bug.  What's the best virus scrubber out there?  Thanks.

    Hi, likely somethiung else, but Free Sophos...
    http://www.sophos.com/products/enterprise/endpoint/security-and-control/mac/
    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    First, Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    In the Memory tab, are there a lot of Pageouts?

  • Download Presenter trial in your website but when I published object scorm in zip file miss some important file such as ismmanifest.xml. In fact Moodle upload is wrong! Is it a bug or what? Thank you.

    Download Presenter trial in your website but when I published object scorm in zip file miss some important file such as ismmanifest.xml. In fact Moodle upload is wrong! Is it a bug or what? Thank you.

    You can publish Adobe Presenter Projects to your Moodle LMS (this will work for many other LMS’ too.)Please follow the steps as mentioned in the blog linked below.
    https://blogs.adobe.com/presenter/2013/08/step-by-step-how-do-i-publish-my-presenter-cours e-to-my-learning-management-system.html#more-6260
    Regards,
    Rajeev.

  • What is going on with all my apple device. Facebook keep displaying users or friend in wrong display picture and today uses my friend picture to display my I D...what is going on. A bug or what?

    What is going on with all my apple device. Facebook keep displaying users or friend in wrong display picture and today uses my friend picture to display my I D...what is going on. A bug or what?

    IPad and IPhone 4

  • Crazy Metadata Errors Hope system is secure?  Is this a install bug or what

    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: @(#)PROGRAM:Install  PROJECT:Install-846
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: @(#)PROGRAM:IA  PROJECT:InstallAssistant-469.5
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Hardware: MacBookPro8,1 @ 2.30 GHz (x 4), 4096 MB RAM
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Running OS Build: Mac OS X 10.9.1 (13B42)
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: DYLD_NO_FIX_PREBINDING=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: __CF_USER_TEXT_ENCODING=0x0:0:0
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: PWD=/
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: SHLVL=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: __OSINSTALL_ENVIRONMENT=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: CI_DEFAULT_OPENCL_USAGE=0
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: OS_INSTALL=1
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: _=/System/Library/CoreServices/Language Chooser.app/Contents/MacOS/Language Chooser
    Jan  3 20:02:01 localhost Install OS X Mavericks[376]: Env: __CHECKFIX1436934=1
    Jan  3 20:02:03 localhost Install OS X Mavericks[376]: OSInstallChunkedDownload loaded...
    Jan  3 20:02:03 localhost Install OS X Mavericks[376]: OSInstallChunkedDownload loaded...
    Jan  3 20:02:04 localhost OSIESpringboard[373]: LSExceptions [0x7ffc58429910] unloaded
    Jan  3 20:02:05 localhost Install OS X Mavericks[376]: Checking Software Update catalog URL https://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-sn owleopard-leopard.merged-1.sucatalog
    Jan  3 20:02:05 localhost Install OS X Mavericks[376]: Can not connect to /var/run/systemkeychaincheck.socket: No such file or directory
    Jan  3 20:02:06 localhost Install OS X Mavericks[376]: Could not add SWU product
    Jan  3 20:02:13 localhost Install OS X Mavericks[376]: LSExceptions [0x7ffdb3c07e40] unloaded
    Jan  3 20:02:14 localhost Unknown[357]: 2014-01-03 20:02:14.017 Install OS X Mavericks[376:1003] Couldn't find app store version, falling back to hardcoded
    Jan  3 20:02:15 localhost Unknown[357]: 2014-01-03 20:02:15.638 Install OS X Mavericks[376:870f] ERROR: number of bytes written -1 was less than the requested amount 928542.
    Jan  3 20:02:15 localhost Unknown[357]: 2014-01-03 20:02:15.639 Install OS X Mavericks[376:870f] ERROR: failed to write cached response to /var/root/Library/Caches/com.apple.InstallAssistant.Mavericks. Falling back to old persistent store mechanism.
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: Using product <IAPisaSource: 0x7ffdb3d8c370> at distance 25
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: Using product <OSInstallESDProduct> based on distribution at /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/OSInstall_AppStore.mpkg at distance 5
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: JS: installCheckScript threw exception TypeError: 'null' is not an object (evaluating 'my.target.systemVersion')
    Jan  3 20:02:15 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:02:33 localhost Unknown[357]: 2014-01-03 20:02:33.698 Install OS X Mavericks[376:d46f] NSPersistentUIManager was unable to writev to persistent state file: 28 (No space left on device)
    Jan  3 20:02:33 localhost Unknown[357]: 2014-01-03 20:02:33.701 Install OS X Mavericks[376:d46f] -[NSPersistentUIWindowSnapshotter writeWindowSnapshot:length:width:height:bytesPerRow:toFile:inDirectory:encrypti ngWithKey:uuid:checksum:isUserWaitingImpatientlyForThisThingToFinish:]: 0 == ftruncate(fd, finalFileSize) failed on line 759: No space left on device
    Jan  3 20:02:33 localhost Unknown[357]: 2014-01-03 20:02:33.701 Install OS X Mavericks[376:d46f] -[NSPersistentUIWindowSnapshotter writeWindowSnapshot:length:width:height:bytesPerRow:toFile:inDirectory:encrypti ngWithKey:uuid:checksum:isUserWaitingImpatientlyForThisThingToFinish:]: 0 == ftruncate(fd, fileLength) failed on line 830: No space left on device
    Jan  3 20:02:59 localhost Install OS X Mavericks[376]: Created IATool object:b3e59c50
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Preventing machine sleep.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Using product IA_PKSecureNetEnabledProduct <file:///Volumes/Maxox/OS%20X%20Install%20Data/> at distance 5
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Using mutable product path: /Volumes/Maxox/OS X Install Data
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: No available package ref for compatibility update. Ignoring.
    Jan  3 20:03:00 localhost Install OS X Mavericks[376]: Retrieving 1 packages (5.290 GB)
    Jan  3 20:03:27 localhost Unknown[357]: 2014-01-03 20:03 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:03:27 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:03:27 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:03:27 localhost Unknown[357]: 2014-01-03 20:03:27.880 Install OS X Mavericks[376:2003] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:03:28 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:03:30 localhost Install OS X Mavericks[376]: CoreServices logging is enabled,
    Jan  3 20:03:30 localhost Install OS X Mavericks[376]: SFL Favorites initialized.
    Jan  3 20:03:36 localhost Unknown[357]: 2014-01-03 20:03:36.032 Install OS X Mavericks[376:303] Metadata.framework [Error]: MDPlistContainerRef _MDCopyCompleteFlatSchema(int): couldn't fetch complete schema from server ((ipc/send) invalid destination port)
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: Sending Installer Log to Apple...
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: User Contact: [email protected]
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: User Comment:
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: Unable to submit Crash Reporter log in OS Install environment!
    Jan  3 20:04:11 localhost Install OS X Mavericks[376]: Sent Installer Log to Apple.
    Jan  3 20:06:15 localhost Unknown[357]: 2014-01-03 20:06 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:06:15 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:06:15 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:06:15 localhost Unknown[357]: 2014-01-03 20:06:15.416 Install OS X Mavericks[376:fdcf] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:06:15 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:08:01 localhost Unknown[357]: 2014-01-03 20:08 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:08:01 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:08:01 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:08:01 localhost Unknown[357]: 2014-01-03 20:08:01.987 Install OS X Mavericks[376:e327] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:08:01 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:10:21 localhost configd[113]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:22 localhost OSIESpringboard[373]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:22 localhost OSIESpringboard[373]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:22 localhost OSIESpringboard[373]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:28 localhost configd[113]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "µàÎ∑".
    Jan  3 20:10:49 localhost Unknown[357]: 2014-01-03 20:10 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:10:49 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:10:49 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:10:49 localhost Unknown[357]: 2014-01-03 20:10:49.177 Install OS X Mavericks[376:8aeb] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:10:49 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:26:02 localhost Unknown[357]: 2014-01-03 20:26 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:26:02 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:26:02 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:26:02 localhost Unknown[357]: 2014-01-03 20:26:02.760 Install OS X Mavericks[376:8aeb] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:26:02 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:48:47 localhost Unknown[357]: 2014-01-03 20:48 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 20:48:47 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:48:47 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 20:48:47 localhost Unknown[357]: 2014-01-03 20:48:47.833 Install OS X Mavericks[376:f377] Metadata.framework [Error]: couldn't get the client port
    Jan  3 20:48:47 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: Sending Installer Log to Apple...
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: User Contact: [email protected]
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: User Comment: apple ID
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: User Comment: installer log
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: Unable to submit Crash Reporter log in OS Install environment!
    Jan  3 20:50:34 localhost Install OS X Mavericks[376]: Sent Installer Log to Apple.
    Jan  3 21:03:48 localhost storeagent[377]: SUAppStoreUpdateController: XPC error in __77-[SUAppStoreUpdateController _queryForAvailableUpdatesWithCompletionHandler:]_block_invoke (Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application." (The connection was invalidated from the other process or the connection name was invalid.) UserInfo=0x7f97d2c611d0 {NSDebugDescription=The connection was invalidated from the other process or the connection name was invalid.})
    Jan  3 21:03:48 localhost storeagent[377]: SUAppStoreUpdateController: Service connection invalidated!
    Jan  3 21:03:48 localhost Install OS X Mavericks[376]: IAPisaDownload: finished
    Jan  3 21:03:48 localhost Install OS X Mavericks[376]: Moved download assets into mutable product... /Volumes/Maxox/OS X Install Data/mzps4946682012419507071.pkg => /Volumes/Maxox/OS X Install Data/InstallESD.dmg.partial
    Jan  3 21:03:53 localhost Unknown[357]: 2014-01-03 21:03 Install OS X Mavericks[376] (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Jan  3 21:03:53 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 21:03:53 localhost Install OS X Mavericks[376]: Connection to sharingd became invalid
    Jan  3 21:03:53 localhost Unknown[357]: 2014-01-03 21:03:53.525 Install OS X Mavericks[376:10e7f] Metadata.framework [Error]: couldn't get the client port
    Jan  3 21:03:53 localhost Install OS X Mavericks[376]: Folder Manager is being asked to create a folder (docs) while running as uid 0

    No gcc bug; it's a bug in your program.  From what I can tell, the char array `C' is designed to hold a string like "01:15:48" which is 8 characters.  Hence, it needs to be declared as `char C[9]' to have room for the terminating \0.  `char C[8]' causes sscanf to smash your stack, as it writes the \0 byte somewhere else.  Making that change fixed the program on my computer.  Too bad valgrind can't detect that sort of error.

  • Is this a GCC bug or what?

    Ok, i've written this simple program in C:
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    int main(void)
    char *c,*str,C[8];
    unsigned short int D,y;
    time_t h;
    struct tm *t;
    h=time(NULL);
    t=gmtime(&h);
    str=asctime(t);
    sscanf(str,"%*s %*s %hu %s %hu",&D,C,&y);
    c=malloc(31*sizeof(char));
    snprintf(c,30,"%c%c%c, %hu-%c%c%c-%hu %s GMT",str[0],str[1],str[2],D,str[4],str[5],str[6],y,C);
    printf("%s\n%s\n",str,c);
    free(c);
    return 0;
    which uses only standard libc functions.
    I've got a x86_64 Ubuntu 9.10 machine which uses gcc 4.4.1.
    I compile that with -Wall -Wextra -pedantic -pedantic-errors.
    ubuntu-desktop ~ $ uname -a
    Linux ubuntu-desktop 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:02:15 UTC 2009 x86_64 GNU/Linux
    ubuntu-desktop ~ $ gcc -o tm tm.c -Wall -Wextra -pedantic -pedantic-errors
    ubuntu-desktop ~ $ ./tm
    Sun Jan 3 23:26:13 2010
    Sun, 3-Jan-2010 23:26:13 GMT
    The output is ok.
    Now i compile it on an Archlinux x86 machine.
    server C $ uname -a
    Linux server 2.6.32-ARCH #1 SMP PREEMPT Sat Dec 26 08:26:17 UTC 2009 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GenuineIntel GNU/Linux
    server C $ gcc -o tm tm.c -Wall -Wextra -pedantic -pedantic-errors
    server C $ ./tm
    Sun Jan 3 23:28:32 2010
    Sun, 3-Jan-2010 23:28:32H
    I can't explain how this could happen except with a kind of mistake in compiling GCC or in a GCC 4.4.2 bug.
    After this, I've tried to compile the source with the Ubuntu GCC with -m32 and link it with the gcc of Archlinux.
    This is the result:
    server C $ ./tm
    Sun Jan 3 23:35:51 2010
    Sun, 3-Jan-2010 23:35:51 GMT
    *** stack smashing detected ***: ./tm terminated
    [bla,bla,bla...read this as the consequence of the different glibc version]
    It works so, there's something wrong with gcc, but my knowledges can't find what.
    Sorry for my English, but i'm Italian.
    Last edited by krnlpk (2010-01-03 23:40:10)

    No gcc bug; it's a bug in your program.  From what I can tell, the char array `C' is designed to hold a string like "01:15:48" which is 8 characters.  Hence, it needs to be declared as `char C[9]' to have room for the terminating \0.  `char C[8]' causes sscanf to smash your stack, as it writes the \0 byte somewhere else.  Making that change fixed the program on my computer.  Too bad valgrind can't detect that sort of error.

  • Is this a bug or what?

    Hi,
    Have you ever tried to pass integers from a popup to its
    parent after manipulating it?
    unfortunately the integer keeps its value in the parent
    without applying the changes that happened inside the popup.
    So...
    Is this a bug or a problem with my code?

    Actually I passed two variables from the parent to the popup,
    one is an array, and the seconed is an integer.
    When changing the array inside the popup and adding new
    elements to it without referencing it by using the
    parentDocument.{the array}, the manipulation was successful and the
    parent kept the changes. But when doing the same with the integer,
    the parent didn't accept the change and kept its value without
    changing, so I had to reference the integer using the
    parentDocument.{the integer} which is the opposite of what is
    described in the flex mannual under the topic of "passing data from
    and to the popup", and that was the reason of my wonder.
    Do you have any idea of why is that?

  • Bug or what? (SELECT_LIST_FROM_QUERY)

    Hi,
    when I query SELECT distinct job FROM emp I get:
    JOB
    CLERK
    SALESMAN
    PRESIDENT
    MANAGER
    ANALYSTBut when I run the example:
    SELECT job, APEX_ITEM.SELECT_LIST_FROM_QUERY(3,job,'SELECT DISTINCT job FROM emp') FROM emp(from [SELECT_LIST_FROM_QUERY|http://download.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/api.htm#CHDIDGDA])
    I get this result:
    JOB           | SELECT_LIST
    ----------+-----------------
    PRESIDENT | <select name="f03" ><option value="%null%">%</option><option value="PRESIDENT" selected="selected">PRESIDENT</option></select>
    MANAGER   | <select name="f03" ><option value="%null%">%</option><option value="MANAGER" selected="selected">MANAGER</option></select>
    ...See what I mean? I would expect, that there is for evey job one option-entry, but only the job-description (PRESIDENT, MANAGER) is generated in the list.
    Is this a bug or did I something wrong? What I have to do, to get the other job names in my select list?
    Kind regards
    Tom

    Sure it is not a bug. A select list requires a display and a return value. Also, a column alias is required for the apex item. How about using this:
    SELECT job,
           apex_item.select_list_from_query
                                   (3,
                                    job,
                                    'SELECT DISTINCT job d, job r FROM emp',
                                    'style="width:220px" ',
                                    'YES',
                                    '0',
                                    '- Select Job -',
                                    'f03_' || '#ROWNUM#',
                                    NULL,
                                    'NO'
                                   ) job_select
      FROM empDenes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • New Apple discution forums bugs or what?

    Hi,
    Since the new forums become online, I must admit there is many different issues that looks strange to me.
    For instance:
    - when I post, I get a screen with only the top Apple site icons and the botton site support links. I have then to browse back to the discution I was from the start. Anoying.
    - The icon that were just added a few weeks ago for level 3 users to report bad post is no longer there.
    - No personal icons, which I do not really care of, but still...
    - I loose all the subscription to the thread I was in. too bad I suppose.
    - the links over the threads somethimes point only to the top discution forum. No way to get back to the forum I was in before when I am in my profile for example.
    - in some places of the forum, the display are a little bit confusing. For example, in the iPod there is a link to iPod with color display at the top, then a full catégorie of folder on the same subject in the middle of the page. Why?
    - before the merge, I was about 1220 points to the next level, now I am ~2400 to the next one. No explanation on why that change...
    - the general look and feel is more confusing than on previous versions. For example, the last version had a line of icons for edit post, and voting, that is now all gone and put almost everywhere.
    - The last version had post numbers and subpost numbers (I mean post 3 was reply by post 3.1 which was reply by post 3.1.1). This classification was usefull, but we loose that.
    - the subscribe posts were send by email as full message, now I have to get to the forum to see the full answer, because the mail just contain information stating it was updated but not the message itself. It was more than usefull from what I know.
    I just hope Apple read this and make some adjustment...

    Just use the same one on all devices.

  • 5800 xm - bug or what else... it restarts itself a...

    Hi all,
    I'm the (for everything else lucky) owner of a 5800 XM, that works almost great.
    Dunno what's the cause, it resets itself (does a partial reboot, showing the white screen with the Nokia blue logo) in several ordinary use circumstances. For example, it will almost certainly reset itself after sending an ordinary text message.
    Already tried hard resetting, firmware upgrade, etc... never formatted my memory card, btw, and always restored settings from backup.
    I even tried reinstalling firmware (31.0.101) but didn't solve.
    Ideas?
    Thanks!!!

    The file extension .wlz refers to a WinImage file
    WinImage:
    "WinImage is a fully-fledged disk-imaging suite for easy creation, reading and editing of many image formats and fileystems, including DMF, VHD, FAT, ISO, NTFS and Linux. The disk image is an exact copy of a physical disk (floppy, CD-ROM, hard disk, USB, VHD disk, etc.) or a partition that preserves the original structure. With WinImage in place, you can recreate the disk image on the hard drive or other media, view its content, extract image-based files, add new files and directories, change the format, and defragment the image. All this and more is delivered in one intuitive user interface that enables imaging right out of the box"
    in http://www.winimage.com/winimage.htm
    I don't really understand how did those files ended up in ur phone but probably it was due to a wrong file copy... 
    Eric

  • Bug or what ?

    Hi,
    I've followed the Tutorial 'Generating a Struts-based JSP Application for an
    Application Module'( Jdev 9.0.3 Prod Release), where I'm working with only one table.
    After all files are generated, I run the main.html, and this is what I did :
    1). click on Browse.
    This will list the data. In my case, I have 20 rows.
    2). click on Query.
    Put your value that you want to search, then click on 'Search' button.
    In my case, I have 1 row returned.
    3). now click back on Browse.
    This time it display 2). rather than 1). !!!!
    Any suggestions ?
    Thanks.

    Benoit,
    There are different way to go at it depending what your application need to do.
    The fact is, the browse and the query page are looking at the same ViewObject and as long as that will be true you will need to reset the criteria one way or another.
    That would be the first solution, in the browse action class (located in the sources and called something like VOnameBrowseAction.java), always reset the criterias using the applyViewCriteria method. Your new execute method would like like:
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
        BC4JContext context = BC4JContext.getContext(request);
        // Retrieve the view object instance to work with by name
        ViewObject vo = context.getApplicationModule().findViewObject("<VO name>");
        vo.setRangeSize(3);
        vo.setIterMode(ViewObject.ITER_MODE_LAST_PAGE_PARTIAL);
        // Remove all existing criterias.
        vo.applyViewCriteria(null);
        return BC4JUtils.getForwardFromContext(context, mapping);
      }The drawback (maybe) is that you loose your criterias, so the next time your will query, the criterias will be empty.
    The second solution would be create a new ViewObject usage in your datamodel (Business component Application module design time) and use the query page only the new VO.
    Charles.

  • I  cannot  download the uptade for adobe reader. It looks as if there is a bug. What should I do?

    I cannot download the update for ad adobe reader. Why?  There is a bug.

    Calling it a bug doesn't make it so. More likely something is wrong on your end, but since you haven't provided any info on your system or otehr details, nobody can help you.
    Mylenium

  • Creating an alias - is this a bug or what??

    Please let me know if this is a bug or a "feature"!!! As I understand things (a few changes since OS 6.0.4 in 1989...) there are 4 ways to create an alias when one is in a folder. For example, I'm in my Applications folder with 300 items in that folder. Generally I put my aps into a folder with the name of that app and the word folder. (I used to use ƒ but read that Unix doesn't appreciate that symbol)-- OK back to the main point: ALIAS creation - 4 ways I know to do this:
    1. I right-click and choose Make Alias with the folder or icon selected
    2. I hold down the option and command keys and select the folder or icon, then drag it just a bit and voilà - an alias.
    3. I choose the folder or icon I want and then do cmd-L to create the alias.
    4. I go to the file menu after selecting the folder and choose Make Alias
    GREAT all 4 work (is there a 5th way?)--
    BUT when I do choices 3 or 4, then instead of everything staying in place, the alias is created and then the screen jumps to the very top - to the "A" or numbered labeled folders / apps!
    NOTE: My apps folder has the view choice to ARRANGE BY NAME. If I change this to none - then cmd-L or Make Alias just makes the alias in-place!
    BUT choices 1 and 2 also keep the window of my apps folder in the same location EVEN WHEN IN THE ARRANGE BY NAME mode.
    Again - is this a bug or a feature? Certainly annoying to make an alias and then have to go back and search for the alias... And note: If arrangement is SNAP TO GRID then choices 3 and 4 for creating an alias also have the screen jump to the "A" folders, i.e. the BUG!
    Any comments appreciated - this is a real pain as I keep many of my folders organized by SNAP TO GRID or ORGANIZE BY NAME.
    Best regards,
    Steve Schulte
    Saturday 22 May 2010

    Thanks for your fast reply! There are 3 issues and I'm mainly concerned with #3- but I likely confused everyone with my long post - so let me try this:
    1. Moving Apps out of the Applications folder: You are right, it is best to keep the apps in the Applications folder. Especially Apple's applications - for the update and maybe other reasons and I do that.
    2. Creating an alias and where does the alias go: That's right, it has the same name and just the word alias added to the end so YES it stays right next to the original (especially when the folder is in the Arrange by Name view). So no problem there - mine is the same.
    3. Third issue is really my only concern: The act of creating an alias by cmd-L or the menu: In a window that scrolls, i.e. with many apps or several apps with large icon size (I should mention I'm talking in ICON view here)-- when you make an alias, the window automatically scrolls to the very top. So if you have a folder with 300 apps in it and you make an alias of ZEBRA FOLDER, then the alias is in the correct place but the window scrolls to the top (AARDVARK Folder or whatever).
    *ADDITIONAL INFO:* After several restarts - yup, this is now NOT happening very often. Mostly the window is NOT scrolling so perhaps I'm wasting your time and others with this post. Let me recheck the next few days and then post again- especially if the problem has disappeared... which it seems is the case... (I should remember to restart 2x when anything unusual before posting!)
    Regards,
    Steve
    Saturday 22 May 2010

  • Photoshop CS4 -- Bug in What's New

    After installing CS4, I looked in Photoshop for What's New, which previously was to be found under help. I finally found it, under Essentials, but instead of launching What's New, instead you get a panel which says "the selected workspace will modify menu and/or keyboard shortcut sets. Would you like to apply this workspace?" What's going on?

    Understood. So jsu how do you find What's New in Photoshop CS4? I see that with In Design, What's New is found in the equivalent location and links to an adobe.com page instead of popping up the mysterious message above referenced.
    A search in Photoshop CS4 help yields Workspace > What's New in CS4, which obviously isn't working.

Maybe you are looking for