Illegal register: "icc" : syntax error with  Sun C 5.8 compiler

I wanted to compile my C file with compiler option "cc -c -Xc -mt -fast -xarch=amd64" on Solaris 10 amd64 machine but it failed with following error -
Assembler: abc.c
"/tmp/GAAOBain6", line 819 : Illegal register: "icc"
"/tmp/GAAOBain6", line 819 : Syntax error
Near line: " orq %icc,%r8 ;/ line : 210"
"/tmp/GAAOBain6", line 852 : Illegal register: "icc"
"/tmp/GAAOBain6", line 852 : Syntax error
Near line: " movzwq %icc,%r9 ;/ line : 215"
cc: ube failed for abc.c
*** Error code 2
I am using following sun C compiler -
/SS11/SUNWspro/bin/cc -V
cc: Sun C 5.8 Patch 121016-02 2006/03/31
Do anybody has idea about this issue?
Thanks
Sgupta

Thanks Boris for your help.
My abc.c file is following -
struct struct_1 {
unsigned type:8;
unsigned level:5;
unsigned seen:1;
unsigned pad:2;
unsigned length:16;
void sample (unsigned char type)
struct struct_1 *q;
/*** Allocate and assign pBody here **/
q->type = type;
q->length = type;
==========================================
compiling this file with following option gives the error in Sol-10 amd64 -
/SS11/SUNWspro/bin/cc -c -Xc -mt -fast -xarch=amd64 abc.c
But compiling without "-fast" options work fine.
Thanks
Sgupta

Similar Messages

  • Syntax Error with EXPORT statement in ECC 6

    Hi All,
    I have one issue with EXPORT statement syntax.
    I have declared data like below:
    DATA: BEGIN OF mem_id,
              mandt LIKE sy-mandt,
              uname LIKE sy-uname,
              modno LIKE sy-modno,
            END OF mem_id.
    export the memory id
        EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID MEM_ID.
    When I am checking the syntax error i am getting like "MEM_ID" must be a character-type field (data type C, N, D or T). by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".
    I know this statement would be like IMPORT ITAB TO JTAB FROM MEMORY ID 'table'. So I have written like below
    EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID 'MEM_ID'. But still it is throwing an error.
    Can you please let me know how can I resolve this?
    Regards,
    Jyothi CH.

    Hi Jyothi,
    data: l_var type string.
    concatenate '6' '8' into l_var separated by space.
    export l_var to memory id 'BB'.
    Here we have to declare the type(structure) for l_var not for BB
    and in another program
    data:l_var type string.
    import l_var from memory id 'BB'.
    write : l_var.

  • Syntax Error with JSON.Parse method to parse SharePoint List Items

    Hi All,
    I want to get SharePoint List data and bind that retrived data to the JQuery Grid Control.
    For this I used SPServices to get the SharePoint List data in SOAP Envelope. Now I need to parse the soap envelope and store the retrieved items in array to pass it to the Grid Control.
    While using the JSON.Parse(resporseText) method, Iam consistenly getting an Syntax Error!
    Could anyone help me with this ?
    Please find the SOAP Envelope I received from SP List as below:
    "<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"><GetListItemsResult><listitems xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
    xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
    xmlns:rs='urn:schemas-microsoft-com:rowset'
    xmlns:z='#RowsetSchema'>
    <rs:data ItemCount="2">
    <z:row ows_OBNumber='112211.000000000' ows_Project_x0020_Name='Project 1' ows_MetaInfo='11;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 1' ows_ID='11' ows_UniqueId='11;#{FBBCBCF9-666D-42F9-92D7-67188C51BC9B}' ows_owshiddenversion='1' ows_FSObjType='11;#0' ows_Created='2015-01-12 10:25:06' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:25:06' ows_FileRef='11;#sites/Lists/Projects/11_.000' />
    <z:row ows_OBNumber='1122343.00000000' ows_Project_x0020_Name='Project 2 ' ows_MetaInfo='12;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 2' ows_ID='12' ows_UniqueId='12;#{0D772B76-68E4-4769-B6FF-6A269F9C7ABD}' ows_owshiddenversion='1' ows_FSObjType='12;#0' ows_Created='2015-01-12 10:33:48' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:33:48' ows_FileRef='12;#sites/Lists/Projects/12_.000' />
    </rs:data>
    </listitems></GetListItemsResult></GetListItemsResponse></soap:Body></soap:Envelope>"
    Any help on this will be greatly appreciated.
    Thanks In Advance.!

    Hi,
    According to your description, there is an issue when parsing result from the data retrieved using SPServices.
    By default, SPServices returns data as XML format, however, the JSON.parse() method “Throws a SyntaxError exception if the string to parse is not valid JSON”:
    https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
    To extract the data needed from the response, you can either take the demo below for as a reference:
    http://spservices.codeplex.com/wikipage?title=GetListItems
    Or use the jQuery.parseXML() function:
    http://api.jquery.com/jquery.parsexml/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Syntax Error with Table Parameter (type: ANY) when Creating Function Module

    Hello experts,
    I want to create a function module with a table parameter and table type is ANY. But when I check (Ctrl+F7) this function module, syntax error occurs - "In this statement, the internal table "MSG_TABLE_ITEM" must have the type "STANDARD TABLE"."
    Could anyone tell me what the wrong is? And how can I fix it?
    Thanks,
    Shelwin

    Hi,
    For table parameters, you can only pass
    MSG_TABLE_ITM   TYPE STANDARD TABLE
    or
    MSG_TABLE_ITM  ( don't fill other columns TYPING ASSOCIATED TYPE  ).
    For reference check FM 'GUI_UPLOAD' - Table parameters
    Regards,
    DPM

  • MySQL syntax error with TestStand 4.0 database logging

    I had been using MS Access database to log results which worked fine but the access database is too limited. Switched to MySql. Database works fine and I can query it from Visual C++ and was able to create all my result tables fine from TestStand.
    I get a syntax error when actually trying to log results and it has to do with either a missing quote or and extra quote, I can't quite tell. I thought I saw a post on this somewhere but can't find it now. Here is the complaint from TestStand:
    An error occurred calling 'LogOneResult' in 'ITSDBLog' of 'zNI TestStand Database Logging'
    An error occurred executing a statement.
    Statement: UUT_RESULT.
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT VALUES' at line 1
    Description: [MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT VALUES' at line 1
    Number: -2147467259
    NativeError: 1064
    SQLState: 37000
    Reported by: Microsoft OLE DB Provider for ODBC Drivers
    Description: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    Number: -2147217887
    NativeError: 0
    SQLState: 37000
    Reported by: Microsoft OLE DB Provider for ODBC Drivers
    Source: TSDBLog
    And here is all that appears in the MySql logfile:
    INSERT INTO UUT_RESULT DEFAULT VALUES
    070914
    You can't see it here but the string is truncated after the word VALUES. The next line starts with the odd number.
    Any ideas?
    Thanks,
    Bill Peters
    BAE SYSTEMS

    Sure. There were two bugs in the ini file that contains the default TS schemas (I think it was Default_Database_Options.ini or like that...).
    Anyway the table description for STEP_NUMERICLIMIT had for it's command line INSERT INTO MEAS_NUMERICLIMIT. I guess TestStand looked at that and said hmm I better create that table too. Then later down the page when you try to create MEAS_NUMERICLIMIT it says the table already exists even though it is empty. The generate SQL button builds a bad file and then the database viewer creates a bad database. I would have to go into MySql and drop the database. I had to save the schema under a custom name, edit it read it back in, generate a new SQL file, but then it would still fail validation because the ini files don't get updated until you exit TestStand. So basically I did this process 3 times before I got it right.
    It's wasn't a big deal but it's amazing how a little thing can cause a lot of work.
    The second bug, I'm not certain was initially in the file or somehow got set on the fly. There was a random int statement at the very end of the SQL table description for UUT_RESULT. It was also in the schema INI file. Since the int had no name and occurred in a odd place, it created a syntax error in MySql. Same fix as above.
    But like I said it's working great now. I like this approach because I serve it to the net with Apache and parse the database with simple PHP scripts.
    Thanks,
    Bill Peters
    BAE SYSTEMS

  • Compilation error with sun workshop 6u2

    hi,
    i try to compile a systemc code with sun work shop 6u2 but the compilation generate this error
    Beginning generate/compile...
    Compilation may take a few seconds... please wait.......ucbcc: Warning: Option -YP,:/usr/ucblib:/usr/ensta/pack/SunWorkShop-6u2/SUNWspro/WS6U2/bin/../lib:/usr/ensta/pack/SunWorkShop-6u2/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, ignored otherwise
    ucbcc: Invalid input file name /home/uei/chtourou/cadence/soflib/fir/pmb/spb.C, no output generated for this file.
    ucbcc: Warning: Option -YP,:/usr/ucblib:/usr/ensta/pack/SunWorkShop-6u2/SUNWspro/WS6U2/bin/../lib:/usr/ensta/pack/SunWorkShop-6u2/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is invoked, ignored otherwise
    ld: warning: option -YP appears more than once, first setting taken
    ld: fatal: file /home/uei/chtourou/cadence/soflib/fir/pmb/spb_sun4v.o: cannot open file: No such file or directory
    ld: fatal: File processing errors. No output written to /home/uei/chtourou/cadence/soflib/fir/pmb/spb_sun4v.so
    system-002: Error: The following system command failed.
    CC -G -o /home/uei/chtourou/cadence/soflib/fir/pmb/spb_sun4v.so /home/uei/chtourou/cadence/soflib/fir/pmb/spb_sun4v.o `/home/uei/chtourou/tmp/systemc-2.0.1/spwSystemC/src/libList.csh.${PLATFORM_DIR}` -lc
    leaf-057: Error: Failed to compile the SPB wrapper for polymorphic leaf
    soflib/fir.pmb
    Failed SPB Wrapper generation for soflib/fir with 2 Error(s), 0 Warning(s) and 0 Note(s).
    Compilation Failed .
    thank you very much

    this compilation it's made from cadence spw and it use the sun workshop,so i don't know options of compilation
    my os is the SUNOS 5.8
    any help will be usefull
    thank you

  • Syntax errors with ES freeze/hang FM

    Hi,
    I keep bumping into situations where a small syntax error causes FM to freeze, like there is a modal dialog open except there is no dialog. For example:
    doc = app.ActiveDoc();
    ...this is wrong because of the parenthesis, but rather than throwing any errors, FM just freezes and I can't get it unfrozen, except to kill it with the Task Manager. Is there a way to prevent this freeze or at least thaw it out? It's becoming tiresome to restart FM and reset locks, etc. with every little typo.
    Thanks,
    Russ

    Hi Russ,
    I think this won't help you, but I can reproduce this with app.ActiveDoc() and app.ActiveBook().
    With other properties I get a correct runtime error "app.AutoBackup() is not a function".
    So generally it works as expected, but not in these two cases.
    I think this is a problem of the script engine in these two cases. Perhaps there's an invisible (private) method defined, which is used internally, I don't know.
    Bye
    Markus

  • Sun VDI 3.1.1 error with Sun 7310

    Hello,
    I'm working on a Sun VDI solution using a 7310 with Sun Storage 2010.Q1.0.0 and am having a provisioning error when importing a template or desktop. It errors about copying disk image to storage. Upon switching to a Solaris ZFS storage server the issue goes away. I'm curious if anyone else has run into this issue and if the Sun Storage OS should be update or if there are specific configuration variables that should be set in the ZFS storage pool being used by the Sun VDI implementation.
    Thank you,
    Mike

    Okay, after some issues with the 7310 that is being used for this pilot I was able to do some more testing to generate logs around the failures. I have been able to get this to work with a regular Solaris 10 iSCSI and NFS server that uses ZFS. In fact it worked perfectly but that isn't the storage array that is meant for this project. The Sun VDI implementation is accessing the 7310 using the 'root' account and is connecting over gigE SAN. We can see Sun VDI logging into the storage array, it creates the '/suspend-data' NFS share right away as it should. When I got to import a template you can see it deploy the iSCSI LUN and the associated Target and IQN.
    Here are snippets from the cacao log showing the different failure messages.
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.vbox.VBDesktopProvider createDesktops
    FINE: thr#22 Created desktop on 10.72.169.169 with volume ec0263c0-eaef-4636-a2ac-96046e4fc81e at IQN iqn.1986-03.com.sun:vdi:kgksyhsior0abizjhg.g:exlbox2mm0szsgnr7ed- of size 17179869184
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.persistence.PersistenceImpl commit
    FINEST: thr#22 Committing object [id=14] class com.sun.vda.service.persistence.PersistentStorage
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.storage.Volume importFromFile
    FINEST: thr#22 Copying from /sunvdi/templates/solaris10/solaris10.vdi to ec0263c0-eaef-4636-a2ac-96046e4fc81e on host 10.72.169.169 for user root
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.persistence.PersistenceImpl update
    FINEST: thr#22 Updating object [id=14] class com.sun.vda.service.persistence.PersistentStorage
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.persistence.PersistentJob commit
    FINEST: thr#22 Committing object [id=null] class com.sun.vda.service.persistence.PersistentJob
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.core.jobs.Job run
    INFO: thr#23 Starting Job[192]: STORAGE_ACTION for [Solaris 10, STORAGE_AND_ISCSI_RESSOURCE: INITIATOR:iqn.1986-03.com.sun:01:2a95e6efffff.4beb10d0]
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.persistence.PersistenceImpl update
    FINEST: thr#23 Updating object [id=192] class com.sun.vda.service.persistence.PersistentJob
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.persistence.PersistentJob commit
    FINEST: thr#23 Committing object [id=192] class com.sun.vda.service.persistence.PersistentJob
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.persistence.PersistenceImpl update
    FINEST: thr#23 Updating object [id=14] class com.sun.vda.service.persistence.PersistentStorage
    Jun 17, 2010 3:42:58 PM com.sun.vda.service.vbox.SshServer executeCommand
    FINEST: thr#23 Executing command script run('cd /') ; run('configuration') ; run('san') ; run('initiators') ; run('iscsi') ; run('create') ; run('set alias=vdi:2a95e6efffff.4beb10d0') ; run('set initiator=iqn.1986-03.com.sun:01:2a95e6efffff.4beb10d0') ; stdout = run('commit') ; print(stdout) on host 10.72.169.169:22 for user root
    Jun 17, 2010 3:43:00 PM com.sun.vda.service.vbox.SshServer executeCommand
    FINEST: thr#23 executed script run('cd /') ; run('configuration') ; run('san') ; run('initiators') ; run('iscsi') ; run('create') ; run('set alias=vdi:2a95e6efffff.4beb10d0') ; run('set initiator=iqn.1986-03.com.sun:01:2a95e6efffff.4beb10d0') ; stdout = run('commit') ; print(stdout)
    Jun 17, 2010 3:43:00 PM com.sun.vda.service.vbox.SshServer executeCommand
    FINEST: thr#23 Executing command script run('cd /') ; run('configuration') ; run('san') ; run('initiators') ; run('iscsi') ; run('groups') ; run('create') ; run('set name=vdi:2a95e6efffff.4beb10d0') ; run('set initiators=iqn.1986-03.com.sun:01:2a95e6efffff.4beb10d0') ; stdout = run('commit') ; print(stdout) on host 10.72.169.169:22 for user root
    Jun 17, 2010 3:43:01 PM com.sun.vda.service.vbox.SshServer executeCommand
    FINEST: thr#23 ...
    Jun 17, 2010 3:43:01 PM com.sun.vda.service.storage.Initiator$CommitThis doAction
    FINEST: thr#23 Committing initiator com.sun.vda.service.storage.Initiator@16708cc
    Jun 17, 2010 3:43:01 PM com.sun.vda.service.persistence.PersistenceImpl commit
    FINEST: thr#23 Committing object [id=null] class com.sun.vda.service.persistence.PersistentStorageInitiator
    Jun 17, 2010 3:43:01 PM com.sun.vda.service.persistence.PersistentJob commit
    FINEST: thr#23 Committing object [id=192] class com.sun.vda.service.persistence.PersistentJob
    Jun 17, 2010 3:43:01 PM com.sun.vda.service.core.jobs.Job run
    FINE: thr#23 Job[192]: STORAGE_ACTION for [Solaris 10, STORAGE_AND_ISCSI_RESSOURCE: INITIATOR:iqn.1986-03.com.sun:01:2a95e6efffff.4beb10d0] finished.
    Jun 17, 2010 3:43:02 PM com.sun.vda.service.persistence.PersistenceImpl update
    FINEST: thr#22 Updating object [id=14] class com.sun.vda.service.persistence.PersistentStorage
    Jun 17, 2010 3:43:02 PM com.sun.vda.service.persistence.PersistenceImpl update
    FINEST: thr#22 Updating object [id=14] class com.sun.vda.service.persistence.PersistentStorage
    Jun 17, 2010 3:43:02 PM com.sun.vda.service.storage.Volume$CommitShareData doAction
    FINEST: thr#22 Committing target:com.sun.vda.service.storage.Target@65e initiator:com.sun.vda.service.storage.Initiator@6bc lun:-1
    Jun 17, 2010 3:43:02 PM com.sun.vda.service.persistence.PersistenceManager retry
    FINEST: thr#22 Error committing target: com.sun.vda.service.storage.Target@65e Trying again ...
    Jun 17, 2010 3:43:02 PM com.sun.vda.service.persistence.PersistenceImpl update
    FINEST: thr#22 Updating object [id=41] class com.sun.vda.service.persistence.PersistentStorageVolume
    Jun 17, 2010 3:43:02 PM com.sun.vda.service.storage.Volume$CommitShareData doAction
    FINEST: thr#22 Committing target:com.sun.vda.service.storage.Target@65e initiator:com.sun.vda.service.storage.Initiator@6bc lun:-1
    Jun 17, 2010 3:43:02 PM com.sun.vda.service.vbox.SshServer executeCommand
    FINEST: thr#22 Executing command script run('cd /') ; run('shares') ;run('select sunvdi') ; run('select ec0263c0-eaef-4636-a2ac-96046e4fc81e') ; run('set writecache=true') ; run('set status=online') ; run('set targetgroup=vdi:exlbox2mm0szsgnr7ed-') ; run('set initiatorgroup=vdi:2a95e6efffff.4beb10d0') ; stdout = run('commit') ; print(stdout) on host 10.72.169.169:22 for user root
    Jun 17, 2010 3:43:04 PM com.sun.vda.service.vbox.SshServer executeCommand

  • Getting HTTP Status 500 error with sun one application server...

    Hi,
    I am trying to develop a sample application and try to run with sun one application server. I followed the tutorial. My application client is working fine. But my web client is producing the following error. I think we don't need to install Tomcat seperately when we have the application server or do I have to... any suggestions...
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs.
    Sun-Java-System/Application-Server-PE-8.0

    You do not need to install Tomcat. SJSAS contains a web container. The error you are seeing could be caused by a few reasons. There are many previous threads on this issue, perhaps you could search the forum. I used the following search term, "Unable to compile class for JSP" ,and got many hits.
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=J2EE+Software+Development+Kit+%28J2EE+SDK%29&qp=forum%3A136&qt=Unable+to+compile+class+for+JSP

  • Firefox generates a javascript syntax error with ![CDATA[

    I have an app written in HTML5, SVG and javascript that ran until today. I uploaded 3.6.10, and now javascript reports a syntax error for the <![CDATA[ tag. Even when I remove the tag, the SVG will not run. I haven't made ANY changes to the app, just updated Firefox. What changed to break this?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum.
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the MozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25
    You need to post a link to the website or post relevant parts of the code.

  • Syntax Error with creating object

    Hi,
    I am getting the following syntax error in the code below:
    non-staic variable this cannot be referenced from a static context
    job[ ] thread = new job(20);
    non-staic variable this cannot be referenced from a static context
    thread[index] = new job(index);
    public static void main (String[ ] args) {
    job[ ] thread = new job(20);
         for(int index=0; index < 20; index++) {
              input1[index]=index;
              input2[index]=index*2;
         for (int index=0; index < 20; index++) {
              thread[index] = new job(index);
              thread[index].start();
    Zulfi.

    Declare the nested class 'job' as static. Like "static class job" etc.

  • Syntax Error with SWF files on SH903i

    I'm using Flash Pro 8 and thought I'd try out creating a very
    simple SWF to test on the phone. Using the basic templates for
    Flash 1.0/1 and Actionscript 1... I made a simple bouncing circle,
    but I keep getting a "syntax error" when I try to download it into
    my phone via the phone web browser. Is there something I'm missing?
    It seems very straight-forward, but is there something I'm
    missing?

    I figured it out. I had to access the file directly.
    Oddly.

  • Error with Sun App. Server 9...table or view does not exist..

    I am not sure where to post this but here it is:
    I am using Sun App. Server 9 along with a XE database...I use two schemas in my web app but on the first I get ORA error -table or view does not exist from SAS ,although it exists..the second works fine...
    Q: I cannot use 2 simultaneous connection with XE? or what seams to be the problem...
    PS: I also experimented randomly a oracle.toplink error that my Persistance Unit was unable to connect

    two PU's
    two Database Connections (in fact jsf pages ware generate based on entity classes-witch ware made using the connection)
    two schemas: HR and CONTA
    On a second thought I think somehow you're right ...it must be some connection error regarding the schema used...
    I'll look into it...but later...
    Florin POP

  • @prompt syntax error with Optional

    Hi Everyone,
    My first post here, hope you guys can help me out. I have some predeifned conditions on a UDT universe which does not parse but works fine. However, In IDT i am making the same but unable. As I have seen so far with the .UNX universe any predefined conditions which does not parse on IDT does not work on the report as well unlike UNV universe. So here is my issue:
    This does not parse on .UNV but works fine on the report:
    convert(varchar, Vw_Ln_Umb.rim_no)  =  @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL',}) OR 'ALL' =
    @variable('Customer No:')
    I have corrected the mistake of the 7th parameter which is the default value as follows:
    convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL'})
    OR 'ALL' =  @variable('Customer No:')
    and i get the following error : Incorrect syntax near the keyword 'OR'.
    When I remove the "OR 'ALL' =  @variable('Customer No:')"
    I get the error: Incorrect syntax near ')'.
    So i have to correct the filter condition as
    convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent)
    but this does not allow me to have ALL as the default value which inturn acts as an optional prompt at report level.
    Kindly help me either fix this or create pre-defined conditions with optional prompts.
    Mahee

    Hi mahee,
    Apply this filter condition
    if you want to select single value in report use "Mono"
    Vw_Ln_Umb.rim_no = @Prompt('Customer No:','N','Limit Details\Customer No.',Mono,Free,Not_Persistent)
    if you want to select multiple value in report use "Multi"
    Vw_Ln_Umb.rim_no IN @Prompt('Customer No:','N','Limit Details\Customer No.',Multi,Free,Not_Persistent)
    Remove extra comma in your filter condition.
    Regards
    Mustafa

  • Deployment error with sun app server 8.2

    hi,
    i'm a newbieto java programming.
    i'm following the j2ee tutorial.
    but i'm stuck when deploying
    could anyone help me on this?
    thanks in advance.
    Distributing /opt/CustomerBook/dist/customerbook.ear to [localhost:4848_server]
    Unable to construct properties list for: getConnectionPoolProperties
    deployment started : 0%
    Deployment error: Deployment timed out after 120 seconds.. See the messages.log file for details.
    /opt/CustomerBook/nbproject/build-impl.xml:219: Deployment error: Deployment timed out after 120 seconds.. See the messages.log file for details.
    BUILD FAILED (total time: 2 minutes 54 seconds)
    EXECUTION SECTION
    =================
    line 219:
    ** <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" forceRedeploy="${forceRedeploy}" debugmode="false"/>**

    For future references:
    this happens to me too and I found that the cause is that the AM server you are going to configure, is already registered into the directory server.
    Try running this command (with the obvious parameters substituted)
    ldapsearch -B -T -D 'cn=directory manager' -w YOUR_CREDENTIALS -b ou=1.0,ou=iPlanetAMPlatformService,ou=services,YOUR_BASEDN -s base objectclass=* | grep YOUR_SERVERNAMEIf you found that the server you are configuring is listed here try going to AMserver console (if you have another AMserver configured) and browse to Configuration->System Properties->Platforms. If the server is here, remove it, if not, just hit Save (very important).
    If this is your first AM and is a first installation you can just get rid of the Directory Server suffix and recreate it with the Top Entry alone.
    Edited by: flistello on Mar 27, 2008 4:30 PM

Maybe you are looking for