Problems while registeting sapccm4x agent

Hello,
While I try to start the sapccm4x agent I get the fallowing error:
ERROR: Shared Memory misconfiguration ==> can not monitor SAP application server atnets9910fx_DEV_01
       Dispatcher Admin Shared Memory (Key 01) and CCMS Shared Memory (Key 13) both in pool 10.
       Please change configuration with profile parameters
           ipc/shm_psize_01 = -<different pool nr>
       xor
           ipc/shm_psize_13 = -<different pool nr>
Can you help me solving this issue?
Regards,
manoliv

Hi,
Can you tell us what command you are firing for starting CCMS Agent.
Suggestion:
1. Start CCMS agent by following command -->
sapccm4x pf=<path of instance profile> -nosema -DCCMS
If above command still not resolve the problem.
Then download the latest CCMS Agent of 640 for your system and the try to run above command again.
Thanks
Anil

Similar Messages

  • Installation problems with SAPCCM4X Agent

    Hi!
    I would like to install a SAPCCM4x agent on windows and have two problems.
    By one of the systems when i execute the commando for the installation sapccm4x -R pf=...
    I get the following error message:
    ERROR: Cannot open Monitoring Segment 0 rtc = 245
    Last reported error: 249 CCMS monitoring segment has wrong EYE CATCH: CCMS monitoring segment belongs to a non-ABAP
    SAPCCM4X of release 7.00 is to be used only to monitor ABAP instances of kernel release 7.00 (NW04s) or 6.40.
    By the second system I can install the SAPCCM4X agent, but the agent is stopped after 3 seconds.
    I have looked into the log files I do not detect any problems.
    Can some one help to solve the problems ?
    Thank you very much!
    regards
    Thom

    Hi,
    I could install XE in my (physical) machine with FC4 without any particular issue (just had to add some swap space); I also had to remove reference to ORACLE* environment variables prior to install the rpm (the rpm install warned me about both of the issues)
    I just miss the menu icons that are correctly installed in suse: did you manage to have them?
    Regards,
    Andrea

  • Problems with data transfer to CEN via SAPCCM4X agent

    Hello!
    We are facing with the the following problem with data transfer since we installed SAPCCM4X agent:
    - new alerts can only be seen within alert history
    - old alerts cannot be deleted
    We checked the agents via RZ21 and also the appropriate log files do not get further information.
    When we stop the SACCM4X agents and the monitoring data is representing via RFC connection everything is ok.
    Can some one help to solve this problem?
    Thank you!

    As Woodmeister50 told, direct connect between two iMacs via Ethernet cable is much faster than via adaptor, I suppose.
    OS X: How to migrate data from another Mac using Mountain Lion and earlier
    OS X: How to migrate data from another Mac using Mavericks

  • Re: [iPlanet-JATO] Experiencing problem while executing model.

    Hi Todd,
    Thanks a lot for your input!
    In the case , I found that "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is alaised as a
    column name in the resultset. So I am using this as a column in Jato
    Descriptor for Plan_Dt. Now it is working fine.
    Thanks and Regards,
    Santa.
    ----- Original Message -----
    From: Todd Fast <toddwork@c...>
    Sent: Thursday, July 26, 2001 9:50 AM
    Subject: Re: [iPlanet-JATO] Experiencing problem while executing model.
    Santa--
    I am experiencing a problem while executing a bounded model. I am usingQueryModelBase. Whenever the following query gets executed inonBeforeModel
    execute of TiledView, it throws an exception describing "PLAN_DT not found
    in ResultSet". If you execute this query on the SQL prompt then we getrows
    of data. Please could you tell us how the mapping between model and
    resultset works ? And what changes do we have to make to execute thisquery.
    >>
    SELECT PART_NM,NEWTXTDOLL
    TO_CHAR(PLAN_DT, 'MM/DD/YYYY'),
    FROM cpsselect
    WHERE CHG_DT >= TO_DATE('2001-06-17', 'YYYY-MM-DD')The mapping of result set to model is done via JDBC, using the columnnames
    you provide in your model's column descriptors. It sounds as if you are
    providing the column name "PLAN_DT" in a descriptor, and when the model
    tries to look up that column in the result set, there is no such columnand
    the operation fails.
    In order to debug this, you should try running your query with a JDBC
    connection, not SQL*Plus or your command-line SQL tool. What you need to
    find out is how the expresion "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is aliasedas
    a column name in the resut set. The easiest way to do this is to write a
    simple class that does nothing but use your JDBC driver to connect the
    database and execute this query. After execution, use theResultSetMetaData
    information to find out the column names for the result set. Then, use
    these column names in your JATO column descriptors.
    Another Problem:We are not getting the values for NEWTXTDOLL column whenwe try to display it in a Tiled View.
    I'm sorry, this isn't enough information for me to offer any suggestions.
    Using the technique above, determine which columns are coming back in the
    result set, and make sure your display fields in the TiledView are boundto
    those column names. The problem could be something as simple as a typo in
    the field's bound name, or something more complex like the column in the
    result set being named something you don't expect.
    Another approach might be to alias the columns yourself using the "AS
    <alias>" expression, and assign them names that you choose instead ofusing
    the names assigned by the database or JDBC driver.
    Todd
    [email protected]
    The Information contained and transmitted by this E-MAIL is proprietary to
    Wipro Limited and is intended for use only by the individual or entity to
    which
    it is addressed, and may contain information that is privileged, confidential
    or
    exempt from disclosure under applicable law. If this is a forwarded message,
    the content of this E-MAIL may not have been sent with the authority of the
    Company. If you are not the intended recipient, an agent of the intended
    recipient or a person responsible for delivering the information to the named
    recipient, you are notified that any use, distribution, transmission,
    printing,
    copying or dissemination of this information in any way or in any manner is
    strictly prohibited. If you have received this communication in error, please
    delete this mail & notify us immediately at mailadmin@w...
    [Non-text portions of this message have been removed]

    Hi Todd,
    Thanks a lot for your input!
    In the case , I found that "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is alaised as a
    column name in the resultset. So I am using this as a column in Jato
    Descriptor for Plan_Dt. Now it is working fine.
    Thanks and Regards,
    Santa.
    ----- Original Message -----
    From: Todd Fast <toddwork@c...>
    Sent: Thursday, July 26, 2001 9:50 AM
    Subject: Re: [iPlanet-JATO] Experiencing problem while executing model.
    Santa--
    I am experiencing a problem while executing a bounded model. I am usingQueryModelBase. Whenever the following query gets executed inonBeforeModel
    execute of TiledView, it throws an exception describing "PLAN_DT not found
    in ResultSet". If you execute this query on the SQL prompt then we getrows
    of data. Please could you tell us how the mapping between model and
    resultset works ? And what changes do we have to make to execute thisquery.
    >>
    SELECT PART_NM,NEWTXTDOLL
    TO_CHAR(PLAN_DT, 'MM/DD/YYYY'),
    FROM cpsselect
    WHERE CHG_DT >= TO_DATE('2001-06-17', 'YYYY-MM-DD')The mapping of result set to model is done via JDBC, using the columnnames
    you provide in your model's column descriptors. It sounds as if you are
    providing the column name "PLAN_DT" in a descriptor, and when the model
    tries to look up that column in the result set, there is no such columnand
    the operation fails.
    In order to debug this, you should try running your query with a JDBC
    connection, not SQL*Plus or your command-line SQL tool. What you need to
    find out is how the expresion "TO_CHAR(PLAN_DT, 'MM/DD/YYYY')" is aliasedas
    a column name in the resut set. The easiest way to do this is to write a
    simple class that does nothing but use your JDBC driver to connect the
    database and execute this query. After execution, use theResultSetMetaData
    information to find out the column names for the result set. Then, use
    these column names in your JATO column descriptors.
    Another Problem:We are not getting the values for NEWTXTDOLL column whenwe try to display it in a Tiled View.
    I'm sorry, this isn't enough information for me to offer any suggestions.
    Using the technique above, determine which columns are coming back in the
    result set, and make sure your display fields in the TiledView are boundto
    those column names. The problem could be something as simple as a typo in
    the field's bound name, or something more complex like the column in the
    result set being named something you don't expect.
    Another approach might be to alias the columns yourself using the "AS
    <alias>" expression, and assign them names that you choose instead ofusing
    the names assigned by the database or JDBC driver.
    Todd
    [email protected]
    The Information contained and transmitted by this E-MAIL is proprietary to
    Wipro Limited and is intended for use only by the individual or entity to
    which
    it is addressed, and may contain information that is privileged, confidential
    or
    exempt from disclosure under applicable law. If this is a forwarded message,
    the content of this E-MAIL may not have been sent with the authority of the
    Company. If you are not the intended recipient, an agent of the intended
    recipient or a person responsible for delivering the information to the named
    recipient, you are notified that any use, distribution, transmission,
    printing,
    copying or dissemination of this information in any way or in any manner is
    strictly prohibited. If you have received this communication in error, please
    delete this mail & notify us immediately at mailadmin@w...
    [Non-text portions of this message have been removed]

  • Experiencing the problems while encoding the barcode with Code 128 font

    Hi Tim,
    Hope you are doing good.
    We are experiencing the problems while encoding the barcode with Code 128 font.we have followed the Oracle BI Publisher Blog i.e Barcoding 102 http://blogs.oracle.com/xmlpublisher/discuss/msgReader$281.
    Before applying the encoding Java class we were able to display the barcode but after applying this encoding Java class we are not able to display the barcode.
    We are requesting you to help us for encoding the barcode with Code 128 font and read barcode by scanner.
    We will appreciate and thankful if anybody help us in this regard
    Thanks,
    SubbaRao.

    Hi Tim,
    I am trying to create 128 Barcode, output shows little junk characters. I followed the your "Barcoding 102 instrucitons but no luck. I apprciate your help if you provide some help on this.
    http://blogs.oracle.com/xmlpublisher/2006/06/06
    1. Created Java class under $JAVA_TOP/oracle/apps/oracle/xdo/template/util/barcoder
    2. Registeted and applied the format the barcode to the form field. I will sedn my XML, RTF and Java class, Would you pleae advice me on this
    Thanks
    Venu

  • Registration of SAPCCM4x agent failed

    Hi!
    I would like to install a SAPCCM4x agent on the satellite systems host (Unix).
    If enter the data of CEN system, user and password the connection to CEN cannot be established and I get the following error:
    ERROR: RFC error: 104 RFC_ERROR_SYSTEM_FAILURE
    (see RFC trace file or SAP system log for more details)
    In file dev_rfc I could find:
    Connection to host <hostname>, service 3302 timed out
    Can some one help me to solve the problem?
    Thank you very much!
    regards
    Thom

    Hi Thom,
    sometimes you can ping from hostA to hostB , however you are unable to ping hostB to HostA.
    In this case, you need to check if both CEN and Satellite systems can ping each other.
    this can be done using the 'ping' command at the OS level.
    Check the page :
    http://en.wikipedia.org/wiki/Ping
    Also, I asked if you are able to use your SAP Logon pad to login into CEN using the same userid/password that you are using in the RFC destination.
    Regards,
    Siddhesh

  • Sapccm4x agent terminates

    Hi ,
      I am facing a strange problem.The sapccm4x agent for our quality box terminates after 5 minutes after starting with following error.
    INFO: entering  sReInitSapccmsrLight
    ERROR: Reinitialization called more than 10 times in the last 5 minutes
    ERROR: Agent will stop now..
    HINT: Please check compatibility of versions.
       SAPCCM4X of release 7.00 is to be used only to monitor ABAP or Double Stack instances of kernel release 7.00 (NW04s).
    We are using the latest CCMS agent avialable for our ABAP stack 701 release on HP-UX 11.31 IA64
    The strange thing is the same version is working properly on the dev and prod boxes which have the same configuration.I searched a lot of forums and notes but could not find anything tht cud solve the problem.
    Please let me know if anyone has faced this similar issue.
    Regards,
    Max

    The agent stops, due it can't initialize the needed shared memory
    segment. It can be also seen in the dev_disp trace:
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    ERROR => e=13 semop(10485875,(0,-1,4096),1) (13: Permission denied)
    [semux.c 1186]
    ERROR => CCMS: AlCreateAttachShm_AS : lock semaphore return 1
    [alxxappl.c 665]
    ERROR => CCMS: sAlInit: could not create/attach shared memory key 13 (rtc = 1) [alxx.c 1187]
    ERROR => AlDpAdmInit: sAlInit rtc = 1 [alxx.c 514]
    ERROR => DpLoopInit: AlDpAdmInit [dpxxdisp.c 2016]
    I ran the following command:
    sappfpar check pf=/usr/sap/<SID>/SYS/profile/<profile>
    It showed, that the pool 10 and pool 40 were exhausted. I followed the recommendations and raised the pools.
    However the agents did not start after this changes too so raised to SAP.SAP suggested that this still is a shared memory issue and a server restart should solve this issue.
    Indeed this solved the problem.The agents are now running fine.

  • SAPCCM4X Agent Installation

    Hi!
    I would like to set up the SAPCCM4X agent on the satellite system.
    The installation with the commando >sapccm4x -R pf=... endes without any errors.
    The problem is that the appropriate SAPCCM4X.03 Windows Service stops after 5 sec.
    How can I solve this problem?
    Thank you
    Jürgen

    Hi!
    Many thanks for your answer.
    The output on the CMD console is:
    INFO: trying to register service SAPCCM4X.03 at Windows Service Control Manager
    starttype of service:             manual/[auto] :
    DomainName\UserName  or [<LocalSystem account>] :
    INFO: Agent is running (no actual pid, but actual shared memory!)
    WARNING: Service SAPCCM4X.03 already stopped. But agent is running!
    WARNING: The following service is registered but could not be started
    SAPCCM4X.03  
    (command ["E:\usr\sap\SC3\SYS\exe\run\sapccm4x.exe" -Service
    pf=E:\usr\sap\SC3\SYS\profile\SC3_DVEBMGS03_VMSAP01]   user <LocalSystem account>)
    INFO: Updated config file E:\usr\sap\SC3\DVEBMGS03\log\sapccm4x\csmconf.
    EXITING with code 0

  • No Permanent PID for SAPCCM4X Agent

    Hi,
    I have installed the "SAPCCM4X" agent in one of the satellite system.
    After installing the agent, its not allocating separate process id for the agent.
    It is running in some shared memory. (INFO: Agent is running (no actual pid, but actual shared memory!))
    So i was not able to stop or restart the agent.
    I tried running the command "sapccm4x -initshm pf=/..." to clear the shared memory. That too dint solve my problem. Not able to restart still showing "no actual pid".
    Kindly help on this issue.
    Thanks in Advance
    Arun

    try to execute execute ./sapccmsr pf=/usr/sapSID/SYS/profile/PROFILE  -j2ee -initshm
    filter on
    INFO: Attached to Shared Memory Key 73 (size 60000000), no pool used
    so you see the size of the shared memory is 60000000
    then execute on solaris
    ipcs -ma |grep 60000000
    this will result in keys with size 60000000
    m     108039   0x4761     rw-r---   eppadm   sapsys   eppadm   sapsys      1   60000000  4955 20441 11:40:28 11:40:28  8:30:38
    m       5744   0x3d9d     rw-r---   yppadm   sapsys   yppadm   sapsys      1   60000000 29224 29224 15:22:23 15:22:24 15:22:23
    m      30323   0x3f91     rw-r---   yppadm   sapsys   yppadm   sapsys      1   60000000 29480 29480 15:22:33 15:22:35 15:22:33
    m  150522485   0x46fd     rw-r---   eppadm   sapsys   eppadm   sapsys      4   60000000 21181  5909 12:05:31 12:05:31 17:03:39
    in this case there are 4 with size 60000000 our instance EPP both ccms agents had a problem so we cleaned those 2 entries
    ipcrm -m 108039    -m 150522485  
    afterwards the agents were able to start

  • Problem while dropping a table

    Dear All,
    I am facing a problem while dropping a table in Oracle 10g.
    I am able to find the number of records in the table but unble to delete it.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    30028278
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    I have to drop this table from the database. Please help.
    regards,
    Santhosh

    Hi,
    IS it a table ? Is it your table ?
    Read this example :
    sqlplus scott/*****
    SQL> create table merchant_audit(col1 number);
    Table created.
    SQL> create public synonym merchant_audit for merchant_audit;
    Synonym created.
    SQL> grant select on merchant_audit to merchant;
    Grant succeeded.
    SQL> conn merchant/merchant
    Connected.
    SQL> select count(*) from merchant_audit;
    COUNT(*)
    0
    SQL> drop table merchant_audit;
    drop table merchant_audit
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>
    See owner into the dba_tables, and if synonym into dba_synonyms.
    Nicolas.
    Message was edited by:
    Nicolas Gasparotto

  • Facing problem while going to  catch return result from web-services.

    Hi everybody,
    I am new to BPEL. I am facing problem while going to catch the attributes of resultsets returning from web-services(QAS). As far as my knowledge, two types of results it should return - XML entities and another is attributes which is coming as the part of XML entitites. I am able to catch the XML entities, but can't catch the attributes under it. Even, I am not able to see whether web-services returning something within that field.
    When, I tried to catch the attribute and store to a temporary varilable using the following code:
    *<assign name="AssignQASDoGetAddress1">*
    *<copy>*
    *<from variable="InvokeQAS_DoSearch_OutputVariable"*
    part="body"
    query="/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded"/>
    *<to variable="temp"/>*
    *</copy>*
    *</assign>*
    but, I am facing the following selectionFailure errors after running it:
    *"{http://schemasxmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.*
    -<selectionFailure xmlns="http://schemasxmlsoap.org/ws/2003/03/business-process/">
    -<part name="summary">
    *<summary>*
    empty variable/expression result.
    xpath variable/expression expression "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')" is empty at line 269, when attempting reading/copying it.
    Please make sure the variable/expression result "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')"is not empty.
    *</summary>*
    *</part>*
    *</selectionFailure>*
    Getting this error it seems to me that web-service is returning nothing, but, it returns something as it has been catched using a method called isPostcodeRecoded() Java Code in Oracle ADF. This method has been used as it should return boolean whereas for catching the xml entities using java code we used the method like getPostcode(), getMoniker().
    For your information, we are using Jdeveloper as the development tool for building the BPEL process.
    Am I doing any syntax error. Please consider it as urgent and provide me asolution.
    Thanks in advance.
    Chandrachur.

    Thanks Dave and Marc, for your suggestions. Actually what I found is QAS web-service is returning nothing as attributes when the attributes are set to the default value. For example, following is the part of the wsdl of the result which QAS webservice returns.
    <xs:element name="QASearchResult">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="QAPicklist" type="qas:QAPicklistType" minOccurs="0" />
    <xs:element name="QAAddress" type="qas:QAAddressType" minOccurs="0" />
    </xs:sequence>
    <xs:attribute name="VerifyLevel" type="qas:VerifyLevelType" default="None" />
    </xs:complexType>
    </xs:element>
    <xs:complexType name="QAPicklistType">
    - <xs:sequence>
    <xs:element name="FullPicklistMoniker" type="xs:string" />
    <xs:element name="PicklistEntry" type="qas:PicklistEntryType" minOccurs="0" maxOccurs="unbounded" />
    <xs:element name="Prompt" type="xs:string" />
    <xs:element name="Total" type="xs:nonNegativeInteger" />
    </xs:sequence>
    <xs:attribute name="AutoFormatSafe" type="xs:boolean" default="false" />
    <xs:attribute name="AutoFormatPastClose" type="xs:boolean" default="false" />
    <xs:attribute name="AutoStepinSafe" type="xs:boolean" default="false" />
    <xs:attribute name="AutoStepinPastClose" type="xs:boolean" default="false" />
    <xs:attribute name="LargePotential" type="xs:boolean" default="false" />
    <xs:attribute name="MaxMatches" type="xs:boolean" default="false" />
    <xs:attribute name="MoreOtherMatches" type="xs:boolean" default="false" />
    <xs:attribute name="OverThreshold" type="xs:boolean" default="false" />
    <xs:attribute name="Timeout" type="xs:boolean" default="false" />
    </xs:complexType>
    <xs:complexType name="PicklistEntryType">
    - <xs:sequence>
    <xs:element name="Moniker" type="xs:string" />
    <xs:element name="PartialAddress" type="xs:string" />
    <xs:element name="Picklist" type="xs:string" />
    <xs:element name="Postcode" type="xs:string" />
    <xs:element name="Score" type="xs:nonNegativeInteger" />
    </xs:sequence>
    <xs:attribute name="FullAddress" type="xs:boolean" default="false" />
    <xs:attribute name="Multiples" type="xs:boolean" default="false" />
    <xs:attribute name="CanStep" type="xs:boolean" default="false" />
    <xs:attribute name="AliasMatch" type="xs:boolean" default="false" />
    <xs:attribute name="PostcodeRecoded" type="xs:boolean" default="false" />
    <xs:attribute name="CrossBorderMatch" type="xs:boolean" default="false" />
    <xs:attribute name="DummyPOBox" type="xs:boolean" default="false" />
    <xs:attribute name="Name" type="xs:boolean" default="false" />
    <xs:attribute name="Information" type="xs:boolean" default="false" />
    <xs:attribute name="WarnInformation" type="xs:boolean" default="false" />
    <xs:attribute name="IncompleteAddr" type="xs:boolean" default="false" />
    <xs:attribute name="UnresolvableRange" type="xs:boolean" default="false" />
    <xs:attribute name="PhantomPrimaryPoint" type="xs:boolean" default="false" />
    </xs:complexType>
    here the attributes like FullAddress, PostcodeRecodedare , etc. are not being return by the web-service when it is getting the default value false. But, if it gets true then , it is being displayed at the BPEL console.
    Do you have any idea how can I catch the attributes and its value even when it gets the default value which is already set. Previously, it was returning(it was not being displayed at the console).
    Thanks once again for your valuable suggestions...!!!
    Chandrachur.

  • Problem while inserting into a table which has ManyToOne relation

    Problem while inserting into a table *(Files)* which has ManyToOne relation with another table *(Folder)* involving a attribute both in primary key as well as in foreign key in JPA 1.0.
    Relevent Code
    Entities:
    public class Files implements Serializable {
    @EmbeddedId
    protected FilesPK filesPK;
    private String filename;
    @JoinColumns({
    @JoinColumn(name = "folder_id", referencedColumnName = "folder_id"),
    @JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)})
    @ManyToOne(optional = false)
    private Folders folders;
    public class FilesPK implements Serializable {
    private int fileId;
    private int uid;
    public class Folders implements Serializable {
    @EmbeddedId
    protected FoldersPK foldersPK;
    private String folderName;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "folders")
    private Collection<Files> filesCollection;
    @JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)
    @ManyToOne(optional = false)
    private Users users;
    public class FoldersPK implements Serializable {
    private int folderId;
    private int uid;
    public class Users implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer uid;
    private String username;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
    private Collection<Folders> foldersCollection;
    I left out @Basic & @Column annotations for sake of less code.
    EJB method
    public void insertFile(String fileName, int folderID, int uid){
    FilesPK pk = new FilesPK();
    pk.setUid(uid);
    Files file = new Files();
    file.setFilename(fileName);
    file.setFilesPK(pk);
    FoldersPK folderPk = new FoldersPK(folderID, uid);
         // My understanding that it should automatically handle folderId in files table,
    // but it is not…
    file.setFolders(em.find(Folders.class, folderPk));
    em.persist(file);
    It is giving error:
    Internal Exception: java.sql.SQLException: Field 'folderid' doesn't have a default value_
    Error Code: 1364
    Call: INSERT INTO files (filename, uid, fileid) VALUES (?, ?, ?)_
    _       bind => [hello.txt, 1, 0]_
    It is not even considering folderId while inserting into db.
    However it works fine when I add folderId variable in Files entity and changed insertFile like this:
    public void insertFile(String fileName, int folderID, int uid){
    FilesPK pk = new FilesPK();
    pk.setUid(uid);
    Files file = new Files();
    file.setFilename(fileName);
    file.setFilesPK(pk);
    file.setFolderId(folderId) // added line
    FoldersPK folderPk = new FoldersPK(folderID, uid);
    file.setFolders(em.find(Folders.class, folderPk));
    em.persist(file);
    My question is that is this behavior expected or it is a bug.
    Is it required to add "column_name" variable separately even when an entity has reference to ManyToOne mapping foreign Entity ?
    I used Mysql 5.1 for database, then generate entities using toplink, JPA 1.0, glassfish v2.1.
    I've also tested this using eclipselink and got same error.
    Please provide some pointers.
    Thanks

    Hello,
    What version of EclipseLink did you try? This looks like bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=280436 that was fixed in EclipseLink 2.0, so please try a later version.
    You can also try working around the problem by making both fields writable through the reference mapping.
    Best Regards,
    Chris

  • A web developer problem while running a web application

    Hi all,
    I'm novice to J2EE.
    I've encountered a problem while accessing the deployed module in weblogic 8.1 server.
    I'm sure that the webapplication module is deployed as i saw my module in administration console & also the status said that it is deployed.
    when i access my web application by specifying the proper server and port no and context root it is showing
    either 505 - resource not found error(http://localhost:7001/Suresh-2/Suresh) or 404 - not found error.( http://localhost:7001/Suresh-2/Suresh)
    Now let me elaborate what i've done till now.
    My webapplication folder structure is : C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\classes\Sai\ServExamp.class
    My servlet is ServExamp.java
    I created a folder called "Suresh". In that folder created another folder called "WEB-INF". In WEB-INF created a folder called "Classes".
    Since my servlet is in package "Sai", the .class file reside in \Suresh\WEB-INF\Classes\Sai\ServExamp.class
    The source code is :
    package Sai;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ServExamp extends HttpServlet
    public void doPost(HttpServletRequest req,HttpServletResponse res)throws IOException
    PrintWriter out=res.getWriter();
    java.util.Date today=new java.util.Date();
    out.println("<html>"+"<body>"+
    "<h1 align=center>HF\'s Chapter1 Servlet </h1>"
    +"<br>"+today+"</body>"+"</html>");
    Now i'm almost done creating a web application. Next, I constructed a simple web.xml descriptor that gives a web friendly name for my servlet, and points to the servlet. I constructed web.xml descriptor file in the WEB-INF folder (C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\).
    The web.xml file source is :
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Hello World Web Application</display-name>
    <description>Test Servlet</description>
    <servlet>
    <servlet-name>ServExamp</servlet-name>
    <servlet-class>Sai.ServExamp</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServExamp</servlet-name>
    <url-pattern>/Suresh</url-pattern>
    </servlet-mapping>
    </web-app>
    Now I have told Weblogic that the URI /Suresh corresponds to my servlet "Sai.ServExamp".
    My Web Application is ready to be deployed at this point. I logged onto Weblogic's admin console,
    1) clicked on deployments, then navigated to "Web Application Modules" .
    2) Clicked "Deploy new Web Application Module"
    3) Navigated to the location of your web application folder (Suresh). There was a radio button next to it indicating that I can select that folder as a valid web application.
    4) I Clicked that radio button and clicked "Target Module".
    5) It informed that my web application "Suresh" will be deployed to myServer.It asked a name for my web application deployment. By default it was "Suresh"
    I clicked Deploy.
    6) After deployment, my web application "Suresh" appeared in the "Web Application Modules" tree on the left.
    I Clicked on "Suresh"( my web application) then clicked the testing tab, then clicked the link shown there(http://localhost:7001/Suresh-2).
    It was not showing my servlet (showed a 403 error)
    Error - 403
    This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    I think so it came b'coz I don't have an index.html or index.jsp page.
    7)Instead,I added my servlet on to the URL it provided.
    http://localhost:7001/Suresh-2/Suresh
    It is showing these error code: Http: 505 resource not allowed
    The page cannot be displayed
    The page you are looking for cannot be displayed because the address is incorrect.
    Please try the following:
    If you typed the page address in the Address bar, check that it is entered correctly.
    Open the localhost:7001 home page and then look for links to the information you want.
    Click Search to look for information on the Internet.
    when i just type : http://localhost:7001/ -> Error 404 not found error
    it's showing
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I want to run my web application & any help would be appreciated.
    Thanks in advance.
    with regards,
    S.SayeeNarayanan.
    Note: I even deployed my war file, which i got by execution of (jar cv0f webapp.war . ) command from the root directory of my web application i.e. Suresh
    Then executed my webapplication it is showing
    error-505 resource not allowed.
    --------------------------------------------------------------------------------------------

    try a fully qualified path to the pem file

  • Problem while Fetching BSAD

    Hi to all ,
    I' ve problem while fetching bsad for a report , in t-code se30 i've seen that it takes %89,1 performance of overall.
    SELECT belnr buzei dmbtr  blart budat augdt augbl sgtxt
       into table odemelerg
              FROM bsad
              WHERE bukrs EQ bukrs
                AND kunnr EQ kunnr
                AND ( umsks EQ space OR umsks IS NULL )
                AND ( umskz EQ space OR umskz IS NULL )
                AND augbl EQ i_augbl
                AND augdt GE i_budat
                AND gjahr EQ gjahr
                AND belnr NE i_belnr
                AND bsadbelnr NE bsadaugbl
                AND ( blart EQ blart_bt OR blart EQ blart_hf
                      OR blart EQ blart_mi ).
    here : blart_bt is declared as a constant type and its value is 'BT'. such as blart_hf, blart_mi
    How can I make this Select query working in a better performance
    Kind regards,
    Caglar

    Hi
    If you know the bill number:
    -1) Search FI document:
    Get header data
    select * from bkpf where AWTYP = 'VBRK'
                         and AWKEY = BILL NUMBER.
    EXIT.
    ENDSELECT.
    Get items data
    SELECT * FROM BSEG INTO TABLE T_BSEG
                           WHERE BUKRS = BKPF-BUKRS
                             AND BELNR = BKPF-BELNR
                             AND GJAHR = BKPF-GJAHR
                             AND KOART = 'D'.
    Payment:
    LOOP AT T_BSEG WHERE AUGDT <> '00000000'.
    IF T_BSEG-AUGBL <> _BKPF-BELNR
        T_BSEG-AUGDT <> _BKPF-BUDAT.
    SELECT * FROM BKPF INTO _BKPF
                        WHERE BUKRS = T_BSEG-BUKRS
                          AND BELNR = T_BSEG-AUGBL
                          AND BUDAT = T_BSEG-AUGDT.
       EXIT.
    ENDSELECT.
    SELECT * FROM BSEG APPENDING TABLE T_PAYMENT
                           WHERE BUKRS = _BKPF-BUKRS
                             AND BELNR = _BKPF-BELNR
                             AND GJAHR = _BKPF-GJAHR
                             AND KOART = 'D'.
    ENDIF.
    ENDLOOP.
    Partial payment
    SELECT * FROM BSAD INTO TABLE WHERE BUKRS = BKPF-BUKRS
                                    AND KUNNR = T_BSEG-KUNNR
                                    AND REBZG = BKPF-BELNR
                                    AND REBZJ = BKPF-GJAHR.
    Max

  • Problem while Binding multiple Parameters to View Object[Solved]

    Hello,
    I am facing problem while binding multiple parameters with different data types in View Object query. For example suppose I have following query in my view object.
    SELECT Header.ADDED_BY
    Header.BATCH_ID,
    FROM BATCH_HEADER Header
    WHERE :1='deptAdmin' and Header.BATCH_ID
    in
    select batch_id from batch_header_dept_mapping where dept_id in(SELECT * FROM TABLE(CAST(:0 AS TABLE_OF_VARCHAR)))
    I am able to pass the Bind variables of Array type for : 0 , using Steve's ArrayOfStringDomain example. (ArrayOfStringDomain) .
    But after passing value to second bind parameter ie.. :1 .
    I am getting the error as follows.
    ## Detail 0 ##
    java.sql.SQLSyntaxErrorException: ORA-00932: inconsistent datatypes: expected - got CHAR.
    I tried to set
    setWhereClauseParam(1,11); // 11 is Number
    setWhereClauseParam(0,arr); // arr is arr = new Array(descriptor,conn,deptid); for in parameter.
    But of no use , Please let me know if any thing missing form me or have any another solutions. Also please provide me any example if have.
    Thank you,
    Sandeep
    Edited by: user11187811 on Oct 23, 2009 7:27 AM
    Edited by: user11187811 on Oct 26, 2009 12:52 AM
    Edited by: user11187811 on Oct 26, 2009 6:51 AM

    hi.
    but when using non-Oracle named parameter binding styles as you've done (ie. , :1), regardless of what number you give each bind variable, they are sequenced 0, 1, 2 etc. As such your bind variable :1 is the 0th parameter, and your bind variable  is the 1st parameter.Your statment is correct.
    :1 i used was actually on 0th position and :0 was on 1 position. Like you said in sequence 0,1,2 etc. Now i get the answer and i corrected My mistake by assigning right values to right binding variable. and problem just solve.
    Thanks Chris.

Maybe you are looking for

  • HOW CAN I GET THE PURCHASE ORDER RELEASE DATE

    Dear All, HOW CAN I GET THE PURCHASE ORDER RELEASE DATE - any reprot is there? Thank you Ahmad

  • A confusing piece of code, may be food for thought.

    Looking at the following code it seems very obvious to me that the output should be 1010 but it turns out to be 2020. Could anybody explain the reason behind it? public class TestClass   public static void main(String args[ ] )     TestClass tt = new

  • Hdv with slow motion does flicker

    I´m editing now some clips at 1080 i and I need to use some slow motion clips. I use speed at 60 % and also active frame blendding and all it´s ok and I haven´t any trouble with the video. But when I do render I can see a big flicker at the picture.

  • Ios 6.1.6 can not play two accounts coc

    ios 6.1.6 can not play two coc account? Recently, I try to change the game center account id in ipod touch 4g ios 6.1.6 with an account of my brother, but after entering in coc no notice of apple you should use ios version 7 or more to make the turn

  • Having problems with family sharing invites

    Hi, I send the invite to my son, which appears in his email, but when he views the invite it does not come up with the option to accept or decline and is therefore unable to join?