JCA adapter outbound connection properties values are not populating ..

Hi ,
I am struggling to find a solution for this problem.
My managed connection factory impl has all the properties as per the java bean spec. I have also implemented hashcode and equals but i still don't see the custom outbound custom properties information populated into my ManagedConnectionFactoryImpl properties. I checked property names in both weblogic-ra.xml and ra.xml. The names are consistent.
As per this discussion (BINDING.JCA-12510 JCA Resource Adapter location error in SOA 11g Suite i saved the properties using Keyboard entered. I restarted my server and also i can see the saved values
I also verified the Plan.xml that gets created when the values are updated. Please find the provided the code snippets. Any help appreciated.
Please let me know if i need to post this in a different forum. We use weblogic 10.3.5 application server. Let me know for any more details.
Thanks,
Sri
For more information:
Following is the managed connection factory Impl
package com.cgi.cml.common.sample.connector.ra.outbound;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.PrintWriter;
import java.io.Serializable;
import java.util.Iterator;
import java.util.Set;
import javax.resource.ResourceException;
import javax.resource.spi.ConnectionManager;
import javax.resource.spi.ConnectionRequestInfo;
import javax.resource.spi.ManagedConnection;
import javax.resource.spi.ManagedConnectionFactory;
import javax.security.auth.Subject;
public class SampleManagedConnectionFactoryImpl
     implements ManagedConnectionFactory, Serializable {
private transient PropertyChangeSupport changes =new PropertyChangeSupport(this);
     private String databaseFileName = "";
private String database = "";
private String user = "";
private String password = "";
private String dtdPath = "";
private String protocol = "";
private String serverAddress = "";
private Boolean debugMode = false;
     private PrintWriter writer;
     * Constructor for SampleManagedConnectionFactoryImpl
     public SampleManagedConnectionFactoryImpl() {
     * @see ManagedConnectionFactory#createConnectionFactory(ConnectionManager)
     @Override
     public Object createConnectionFactory(ConnectionManager cm)
          throws ResourceException {
          return new MomapiConnectionFactoryImpl(this, cm);
     * @see ManagedConnectionFactory#createConnectionFactory()
     @Override
     public Object createConnectionFactory() throws ResourceException {
          return new MomapiConnectionFactoryImpl(this, null);
     * @see ManagedConnectionFactory#createManagedConnection(Subject, ConnectionRequestInfo)
     @Override
     public ManagedConnection createManagedConnection(
          Subject subject,
          ConnectionRequestInfo cxRequestInfo)
          throws ResourceException {
          System.out.println("createdManaged Connection called");
          return new SampleManagedConnectionImpl(subject,cxRequestInfo);
     * @see ManagedConnectionFactory#matchManagedConnections(Set, Subject, ConnectionRequestInfo)
     @Override
     public ManagedConnection matchManagedConnections(
          Set connectionSet,
          Subject subject,
          ConnectionRequestInfo cxRequestInfo)
          throws ResourceException {
          System.out.println("match managed Connections called---->"+getDatabaseFileName());
          ManagedConnection match = null;
          Iterator iterator = connectionSet.iterator();
          if (iterator.hasNext()) {
               match = (ManagedConnection) iterator.next();
          return match;
     * @see ManagedConnectionFactory#setLogWriter(PrintWriter)
     @Override
     public void setLogWriter(PrintWriter writer) throws ResourceException {
          this.writer = writer;
     * @see ManagedConnectionFactory#getLogWriter()
     @Override
     public PrintWriter getLogWriter() throws ResourceException {
          return writer;
* Checks whether this instance is equal to another.
* @param obj other object
* @return true if the two instances are equal, false otherwise
     @Override
public boolean equals(Object obj)
          System.out.println("equals method called");          
boolean equal = false;
if (obj != null)
if (obj instanceof MomapiManagedConnectionFactoryImpl)
     SampleManagedConnectionFactoryImpl other = (SampleManagedConnectionFactoryImpl) obj;
equal = (this.databaseFileName).equals(other.databaseFileName) &&
(this.database).equals(other.database) &&
(this.user).equals(other.user) &&
(this.password).equals(other.password) &&
(this.dtdPath).equals(other.dtdPath) &&
(this.protocol).equals(other.protocol) &&
          (this.serverAddress).equals(other.serverAddress) &&
          (this.debugMode==other.debugMode);
          System.out.println("equals method returning -->"+ equal);
return equal;
* Returns the hashCode of the ConnectionRequestInfoImpl.
* @return the hash code of this instance
public int hashCode()
//The rule here is that if two objects have the same Id
//i.e. they are equal and the .equals method returns true
// then the .hashCode method must return the same
// hash code for those two objects      
int hashcode = new String("").hashCode();
if (databaseFileName != null)
hashcode += databaseFileName.hashCode();
if (database != null)
hashcode += database.hashCode();
if (user != null)
hashcode += user.hashCode();
if (password != null)
hashcode += password.hashCode();
if (dtdPath != null)
hashcode += dtdPath.hashCode();
if (protocol != null)
hashcode += protocol.hashCode();
if (serverAddress != null)
hashcode += serverAddress.hashCode();
          System.out.println("hascode method called and the value is -->"+hashcode);
return hashcode;
* Associate PropertyChangeListener with the ManagedConnectionFactory,
* in order to notify about properties changes.
* @param lis the PropertyChangeListener to be associated with the
* ManagedConnectionFactory
public void addPropertyChangeListener(PropertyChangeListener lis)
     System.out.println("addPropertyChangeListener called");
changes.addPropertyChangeListener(lis);
* Delete association of PropertyChangeListener with the
* ManagedConnectionFactory.
* @param lis the PropertyChangeListener to be removed
public void removePropertyChangeListener(PropertyChangeListener lis)
     System.out.println("removePropertyChangeListener called");      
changes.removePropertyChangeListener(lis);
public String getDatabaseFileName() {
          return databaseFileName;
     public void setDatabaseFileName(String databaseFileName) {
          this.databaseFileName = databaseFileName;
     public String getDatabase() {
          return database;
     public void setDatabase(String database) {
          System.out.println("hellloooooooooooo---->"+database);
          this.database = database;
     public String getUser() {
          return user;
     public void setUser(String user) {
          this.user = user;
     public String getPassword() {
          return password;
     public void setPassword(String password) {
          this.password = password;
     public String getDtdPath() {
          return dtdPath;
     public void setDtdPath(String dtdPath) {
          this.dtdPath = dtdPath;
     public String getProtocol() {
          return protocol;
     public void setProtocol(String protocol) {
          this.protocol = protocol;
     public String getServerAddress() {
          return serverAddress;
     public void setServerAddress(String serverAddress) {
          this.serverAddress = serverAddress;
     public Boolean isDebugMode() {
          return debugMode;
     public void setDebugMode(Boolean debugMode) {
          this.debugMode = debugMode;
     public PrintWriter getWriter() {
          return writer;
     public void setWriter(PrintWriter writer) {
          this.writer = writer;
weblogic-ra.xml
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-connector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
     xmlns:javaee="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-connector/1.0/weblogic-connector.xsd"
     xmlns="http://xmlns.oracle.com/weblogic/weblogic-connector">
     <jndi-name>jca/sampleRA</jndi-name>
     <enable-access-outside-app>true</enable-access-outside-app>
     <outbound-resource-adapter>
          <connection-definition-group>
               <connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
               <connection-instance>
                    <jndi-name>jca/sampleCon</jndi-name>
<connection-properties>
<properties>
<property>
<name>databaseFileName</name>
</property>
<property>
<name>database</name>
</property>
<property>
<name>user</name>
</property>
<property>
<name>password</name>
</property>
<property>
<name>dtdPath</name>
</property>
<property>
<name>protocol</name>
</property>
<property>
<name>serverAddress</name>
</property>
<property>
<name>debugMode</name>
</property>
</properties>
</connection-properties>                
               </connection-instance>
          </connection-definition-group>
     </outbound-resource-adapter>
</weblogic-connector>
ra.xml
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java/sun.com/xml/ns/j2ee/connector_1_5.xsd" version="1.5">
<display-name>MomapiConnector</display-name>
<vendor-name>CGI</vendor-name>
<eis-type>SAMPLE</eis-type>
<resourceadapter-version>1.0</resourceadapter-version>
<license>
<license-required>false</license-required>
</license>
<resourceadapter>
<resourceadapter-class>com.cgi.cml.common.sample.connector.ra.SampleResourceAdapterImpl</resourceadapter-class>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>com.cgi.cml.common.sample.connector.ra.outbound.SampleManagedConnectionFactoryImpl</managedconnectionfactory-class>
          <config-property>
     <config-property-name>databaseFileName</config-property-name>
     <config-property-type>java.lang.String</config-property-type>
     </config-property>
<config-property>
     <config-property-name>database</config-property-name>
     <config-property-type>java.lang.String</config-property-type>
     </config-property>
          <config-property>
     <config-property-name>user</config-property-name>
     <config-property-type>java.lang.String</config-property-type>
     </config-property>
          <config-property>
     <config-property-name>password</config-property-name>
     <config-property-type>java.lang.String</config-property-type>
     </config-property>
          <config-property>
     <config-property-name>dtdPath</config-property-name>
     <config-property-type>java.lang.String</config-property-type>
     </config-property>
          <config-property>
     <config-property-name>protocol</config-property-name>
     <config-property-type>java.lang.String</config-property-type>
     </config-property>
          <config-property>
     <config-property-name>serverAddress</config-property-name>
     <config-property-type>java.lang.String</config-property-type>
     </config-property>
          <config-property>
     <config-property-name>debugMode</config-property-name>
     <config-property-type>java.lang.Boolean</config-property-type>
     </config-property>
          <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.cgi.cml.common.my.connector.ra.outbound.SampleConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>com.cgi.cml.common.sample.connector.ra.outbound.SampleConnectionImpl</connection-impl-class>
</connection-definition>
<transaction-support>NoTransaction</transaction-support>
     <reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter>
</resourceadapter>
</connector>
Edited by: 931395 on May 2, 2012 7:43 AM
Edited by: 931395 on May 2, 2012 8:15 AM

Arun,
I tried, no luck and it is giving me the following error. Once the Plan.xml is created I am usinng "update" button on the console to redeploy the application using Plan.xml. When I take this route it gives me 2 options (1. update this application in place with new deployment plan 2. redploy this application using the following deployment files).
When I use the second option eventhough there is a change in the Plan.xml nothing happens. If I use the first option then I am getting the following exception. If I put the module-override for application then only the ear is getting deployed.
Thanks,
Sridhar
[BaseFlow] : No UpdateListener found or none of the found UpdateListeners accepts URI
<May 9, 2012 9:37:47 AM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1336570667598' for task '10'. Error is: 'weblogic.management.DeploymentException:
The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
1.) The resource does not exist.
or
2) The resource cannot be changed dynamically.
Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.'
weblogic.management.DeploymentException:
The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
1.) The resource does not exist.
or
2) The resource cannot be changed dynamically.
Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
     at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
     at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
     at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
     at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     Truncated. see log file for complete stacktrace
>
<May 9, 2012 9:37:47 AM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating update task for application 'SampleApp'.>
<May 9, 2012 9:37:47 AM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException:
The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
1.) The resource does not exist.
or
2) The resource cannot be changed dynamically.
Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
     at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
     at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
     at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
     at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     Truncated. see log file for complete stacktrace
>
<May 9, 2012 9:37:47 AM EDT> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException:
The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
1.) The resource does not exist.
or
2) The resource cannot be changed dynamically.
Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
     at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
     at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
     at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
     at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
     at weblogic.application.internal.BaseDeployment.prepareUpdate(BaseDeployment.java:439)
     at weblogic.application.internal.EarDeployment.prepareUpdate(EarDeployment.java:58)
     at weblogic.application.internal.DeploymentStateChecker.prepareUpdate(DeploymentStateChecker.java:220)
     at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepareUpdate(AppContainerInvoker.java:149)
     at weblogic.deploy.internal.targetserver.operations.DynamicUpdateOperation.doPrepare(DynamicUpdateOperation.java:130)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
     at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
     at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
>

Similar Messages

  • Report Painter values are not populating for a particular cost center

    Report Painter(GR55) values are not populating for a particular cost center for the months of April 1 2011 where as for May onwards values are displaying correctly..We have check the transaction code KSB1 for this cost center there are some values posted for the period of April..
    Can any one help me to find out where exactly the issue is and how to resolve the same..

    Please check your variables in your report.

  • Values are not populating...

    After selecting the data from LOV the values are not populating in the respective fields.
    i've checked the 'LOV' no problem in that,but im think below coding have a problem.
    declare
         b boolean;
    begin
         :global.job:=null;
         clear_form(no_validate);     
         b:=show_lov('view');
         :GLOBAL.ADDNEW1:=0;
    --     go_block('JOB_CARD_MAIN');
         GO_ITEM('JOB_CARD_MAIN.BRANCH_CODE');
         set_block_property('job_card_main',default_where,'job_no='||chr(39)||:job_card_main.job_no||chr(39));
         execute_query(no_validate);------after this line get execute the values get disappear from the field
         insert into da.mylog(username,tname,mdate,oper) values(user(),'Job Creation',sysdate,'S');
         commit;
    end;
    Pls help..

    Which trigger do you have this code in? I'm guessing it is a Key-ListVal trigger.
    Have you tested the WHE RE clause in SQL*Plus to ensure it returns a record set? Most likely, the query returns no rows which could explain why the block is empty. Also, why are you clearing the entire Form instead of just the JOB_CARD_MAIN data block? Perhaps you should try:
    Go_Block('JOB_CARD_MAIN');
    Clear_Block(NO_VALIDATE);Also, the EXECUTE_QUERY built-in does not have a NO_VALIDATE parameter. It only supports the following parameters:
    ALL_RECORDS
    FOR_UPDATE
    or the combination of the two (ALL_RECORDS,FOR_UPDATE). It also allows you to set the Locking mechinism by passing the parameter NO_WAIT.
    Just a suggestion, try your query in SQL*Plus to make sure it produces a record set and Comment out all the extra stuff in your code and only keep the SHOW_LOV, CLEAR_BLOCK, SET_BLOCK_PROPERTY and EXECUTE_QUERY to see if a row is returned. If yes, then add the rest of your code back one line at a time.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Possible Bug with SqlDataAdapter.Fillschema DataColumn.Unique values are not populated.

    Hi all,
    I have done a lot of searching for answer to this problem this evening and so far have not found a solution but have found multiple people with the same issue.
    When using SqlDataAdapter.FillSchema() from a table that contains a Primary Key and columns with Unique constraints the only DataColumn.Unique value to be populated is the Primary Key.
    From reading the MSDN entry for dbDataAdapter this is not the intended functionality
    Can anyone suggest avenues to try or where to raise this issue if the method truly is not functioning as intended?

    Hello HarborneD,
    >>When using SqlDataAdapter.FillSchema() from a table that contains a Primary Key and columns with Unique constraints the only DataColumn.Unique value to be populated is the Primary Key.
    From your description, it is not very clear how your table is defined, I tried to reproduce this issue with below table(not sure if it is similar with yours, if not, please share it with us):
    CREATE TABLE [dbo].[T20141230] (
    [ID] INT NOT NULL,
    [Name] NCHAR (10) NULL,
    [Birthday] DATETIME NULL,
    PRIMARY KEY CLUSTERED ([ID] ASC),
    CONSTRAINT uc_PersonID UNIQUE ([Name])
    And the code used to full the schema:
    SqlConnection con = new SqlConnection(@"Server=(localdb)\Projects;Database=ADO.NET;Trusted_Connection=True;");
    try
    con.Open();
    SqlCommand cmd = new SqlCommand("select * from [T20141230]", con);
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    DataTable dt = new DataTable();
    da.FillSchema(dt, SchemaType.Mapped);
    da.Fill(dt);
    catch (Exception)
    finally
    con.Close();
    However, I could all columns populated with values from database. I used VS2013, .NET 4.5 and windows 8.1, you could have a try with my demo.
    >>Can anyone suggest avenues to try or where to raise this issue if the method truly is not functioning as intended
    If it is an exact issue which is not reported yet, you could post it to this site below:
    https://connect.microsoft.com/VisualStudio
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Values are not populated to backing session bean from editable table!

    I have a table which has drop down list and checkbox columns. I binded table row group to an object list and binded selected properties of these columns to corresponding fields of object (#{currentRow.value['selected']}). However selected properties are not passed thru the backing bean. In action method i call the object.getSelected method and it always returns null. I am googling for 2 days but i could not find an obvious solution for this problem. please help! thanks in advance.

    put your bean code here, for resoving your problem with implicit object,

  • PDF file opening with blank fields - the field values are not populated.

    Recently, our users have been facing this issue, "data not populating in the PDF fields".
    We are using FDF in PHP to load the PDF templates and apply the data to the PDF fields. This works fine on many adobe versions but showing empty fields in few adobe versions. For e.g It worked fine with Adobe Reader 10.1.3 but did not work in 11.0.
    This has been critical now as it is showing empty fields in IE11. Can you please help me overcome this issue.
    Thanks!

    All I can suggest is to try the latest Reader versions, i.e. 10.1.11 or 11.0.8.

  • Values are not populating into Custom Context..

    Hi,
    Currently we are in CRM 2007(6.0), recently upgraded from SP 5 to SP 7. After upgrade one of the custom control is NOT getting populated with the values. When I click on the button, it's idsplaying CRM_UI_FRAME/WorkAreaViewSet on top of the window i.e. TITLE area. Iit's dispalying empty vlaues in 'display' mode. It supposed to display actual values. Before upgrade version it's working fine.
    I am new to CRM BOL, and not sure where to start and how to validate the functionality and where exactly the issue is? IT would be great if some one can help..and provide steps to analyse the issue. Thanks in Advance..

    Hi Mady_kris,
    If you turn on the following flag does it help?
    'Display Duplicate Variables Only Once' box in the
    workboox settings.
    thanks
    Orla.

  • Values are not populated properly - if then else conditon

    Hi,
    I 've a requirement like...
    If meinh = ZTU then lfimg/umrez else display the values of lfimg
    I 've used if then else condition afterthat i mapped to target field lfimg. But, when i check the queue the result displays correctly, but when i execute the mapping from Test tab it displays all the values for LFIMG
    My question here is ...Why the output is not display properly after i use if then else condition
    Help me how can i get proper values to display at target
    Kind regards,
    Y.Raj

    hi
    As my understanding you are giving both cases true and false the same input.
    If meinh = ZTU then lfimg/umrez else display the values of lfimg
    if meinh = ZTU
    then  umrez
    else  lfimg
    try this
    if still its not working write a simple UDF for the same.
    Regards
    Vijay

  • Custom Table Editor: values are not populated to the model

    H,
    I wrote a custom table renderer which uses JComboBox + editor, which seem to work (after editing, the displayed cell reflects the change) but after editing the table manually, the model is not altered when i call table.getModel();
    The editor part is as simple as
      class MPComboBoxEditor extends DefaultCellEditor {
            private final JComboBox box;
            public MPComboBoxEditor(JComboBox b) {
                super(b);
                this.box = b;
        }The renderer:
    public class CellRendererWithMPComboBox extends JLabel implements TableCellRenderer {
        private final Context c;
        private final JTable table;
        private DefaultTableCellRenderer rend = new DefaultTableCellRenderer();
        private JLabel label = new JLabel();
        public CellRendererWithMPComboBox(Context c, JTable table) {
            super();
            this.c = c;
            this.table = table;
         * Set this renderer to the given column
         * @param column
        public void setRendererTo(int column) {
            TableColumn col = table.getColumnModel().getColumn(column);
            col.setCellEditor(new JComboBoxEditor(JComboBox(<some values>)));
            col.setCellRenderer(this);
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value,
                boolean isSelected, boolean hasFocus, int row, int column) {
            if (hasFocus && isSelected) {
                if (isSelected) {
                    setForeground(table.getSelectionForeground());
                    super.setBackground(table.getSelectionBackground());
                } else {
                    setForeground(table.getForeground());
                    setBackground(table.getBackground());
                 label.setText((value == null) ? "" : value.toString());
                return label;
            } else {
                label.setText((value == null) ? "" : value.toString());
                return label;
        }the model simply extends DeafultTableModel to get formatted numbers.
        @Override
        @SuppressWarnings("unchecked")
        public Object getValueAt(int row, int column) {
            Object o = super.getValueAt(row, column);
            Class t = getColumnClass(column);
            if (!t.getName().equals("java.lang.Object")) {
                if (o != null && (t.isAssignableFrom(Double.class) ||
                        t.isAssignableFrom(double.class) ||
                        t.isAssignableFrom(float.class) ||
                        t.isAssignableFrom(Float.class))) {
                    return FormatNumber.formatDezimal(Double.valueOf(o.toString()));
                } else {
                    return o;
            } else {
                return o;
        }Do i need to override some setValueAt method in the editor/renderer or something?
    Thanks one more time!
    Regards,
    Andreas

    I don't see any getModel() in your code extract. If the renderer renders it right after edition, then the value is probably correct in the model.
    Also, remember [this thread|http://forums.sun.com/thread.jspa?threadID=5396048], where it appeared you were not clear about which model you were looking at.
    Do i need to override some setValueAt method in the editor/renderer or something?No. But have you overridden the model's setValueAt?
    Edited by: jduprez on Jul 15, 2009 4:56 PM

  • Excise value are not pick

    hi experts
    hi i have a problem  while doing billing document against sales order and outbound delievery excise values are not pick by the system.but in the sales order it is showing . please help to resolve this issue ..

    Dear Farhan,
        Just take a help of an SD consultant it is a matter of 2 min for him to solve this issue.
    still Go to tcode VTFL
    and search for your delivery type and your billing type and double click on the same,
    2.Then you will have an item folder on the left side click on that and you will get the list of all item category.
    3. Double click your item category YP05 and on the right side lower end you will get the Price type - in that enter "D" instead of "G"
    and Save it. then transport it to your quality and do the sales order process again.
    REgards,
    Sudhir

  • Master data(0vtype) values are not showing in reports.

    Hi Gurus,
                 I have an info object '0VALTYPE' with 'TEXT'. I already loaded the data in
    for this object. but in reporting level i am getting the values # and 20(actual)
    even though it has so many vales(ex: 10(plan)etc). but all the values are not populating in the query.how to get all the values in reporting level.
    Thanks in advance.
    Thanks
    Raju.k

    Hi Raju,
    You have already confirmed, but still please go to infoobject 0VTYPE again and check the master data to see all values exits there.
    If yes and still in reporting you can not see those, try doing the following:
    1) Right click on 0VTYPE and click on "Activate Master Data", and/or
    2) Go to Menu --> select Attribute change run --> select 0VTYE and execute the changes.
    Regards
    Pankaj

  • Graphical mapping issue, repeated lines are not populating

    Hello All,
    i have mapping where i need to map source node and its coresponding subelements to target node and its subelemtns based on certains condition, which i did using If condition.
    Now my issue is, when mapped source node with condition , conditional field is not in the same node which i am mapping. It is in the parent node of the node which i am mapping. SO when i mapped to target node, only one occurence only its populating in target side even When lines repeated more than once its not populating all lines corespondingly. Please let me know how to populate all line items when i have validation field in parent node and child node and its subelemnts to be mapped to the target node. ( Both parent node and sub node in source and target node are unbounded) .
    Thanks in advance.
    Regards,
    Kalpana

    Thanks for your reply, My source structre looks like below.
    I have to map rows node and its coresponding fields to target node Lines which is unbounded and to its subelements when collection name = 'MATGRP_COLLN'.  I did it using if condition but , only one row tis getting populated in target LIne node. next repeated row values are not populating in target side.
    - <extensions>
    + <collection name="REGION_COLLN" />
    +  <collection name="DIVISION_COLLN" />
    + <collection name="DTL_PRCNG_COLLN" />
    + <collection name="COUNTRY_COLLN">
    - <collection name="MATGRP_COLLN">
    - <row>
    - <fields>
      <OBJECTID>-2147483540</OBJECTID>
      <UNIQUE_DOC_NAME>-21474835401248121690973</UNIQUE_DOC_NAME>
      <DISPLAY_NAME />
      <MATGRP_ITEM_NO>1</MATGRP_ITEM_NO>
      <MATGRP_NAME>10100000</MATGRP_NAME>
      </fields>
      </row>
    - <row>
    - <fields>
      <OBJECTID>-2147483539</OBJECTID>
      <UNIQUE_DOC_NAME>-21474835391248121706160</UNIQUE_DOC_NAME>
      <DISPLAY_NAME />
      <MATGRP_ITEM_NO>2</MATGRP_ITEM_NO>
      <MATGRP_NAME>10101500</MATGRP_NAME>
      </fields>
      </row>
      </collection>
      </extensions>
      </object>
      </objects>
      </fcidataexport>

  • Custom propertie's values are not updated for workflow metadata

    Hi,
    I've a requirement where I need to add and update some properties. to /etc/workflow/instance/<Instancename>/data/metadata node.
    I've two workflow Process steps,
    Process step 1:
        Adds some properties to metadata.
    Process step 2:
        Updates the propertie's values which are added in Process step 1.
    But the issue is update is not working when the node is /etc/workflow/instance/<Instancename>/data/metadata.
    i.e. In the step 1, Properties are added to metadata node but In the step 2 propertie's values are not updated to the same node.
    Here is my process code:
    =================================================
    import java.util.Locale;
    import java.util.StringTokenizer;
    import javax.jcr.Node;
    import javax.jcr.Session;
    import org.apache.felix.scr.annotations.Component;
    import org.apache.felix.scr.annotations.Properties;
    import org.apache.felix.scr.annotations.Property;
    import org.apache.felix.scr.annotations.Reference;
    import org.apache.felix.scr.annotations.Service;
    import org.osgi.framework.Constants;
    import javax.jcr.Value;
    import com.adobe.granite.workflow.WorkflowException;
    import com.adobe.granite.workflow.WorkflowSession;
    import com.adobe.granite.workflow.exec.WorkItem;
    import com.adobe.granite.workflow.metadata.MetaDataMap;
    import com.adobe.granite.workflow.exec.WorkflowProcess;
    import com.adobe.granite.workflow.model.WorkflowModel;
    import org.apache.sling.api.resource.ResourceResolver;
    import org.apache.sling.api.resource.ResourceResolverFactory;
    import org.apache.sling.jcr.resource.JcrResourceUtil;
    import org.apache.sling.api.resource.PersistableValueMap;
    import org.apache.sling.api.resource.PersistenceException;
    import org.apache.sling.api.resource.Resource;
    @Component
    @Service
    @Properties({
           @Property(name = Constants.SERVICE_DESCRIPTION, value = "Test"),
           @Property(name = Constants.SERVICE_VENDOR, value = "Adobe"),
           @Property(name = "process.label", value = "Test 1")})
    public class Test1 implements WorkflowProcess
        @Reference
        private ResourceResolverFactory resourceResolverFactory;
              public void execute(WorkItem workItem, WorkflowSession wfsession, MetaDataMap metadata)
                                  throws WorkflowException {
                        System.out.println("Testing");
            try{
                ResourceResolver resolver;
                resolver = resourceResolverFactory.getAdministrativeResourceResolver(null);
                String instancePath = workItem.getWorkflow().getId();
                Node instanceNode=null;
                Session jcrSession = wfsession.adaptTo(Session.class);
               String payload = (String) workItem.getWorkflowData().getPayload();
               //instanceNode=JcrResourceUtil.createPath(payload+"/jcr:content", "nt:resource","nt:resource", jcrSession, true);
                                  instanceNode=JcrResourceUtil.createPath(instancePath+"/data/metaData", "nt:resource","nt:resource", jcrSession, true);
                                  System.out.println("Test: instance PAth:"+instanceNode.getPath());
                Resource resource = resolver.getResource(instanceNode.getPath());
                    if(resource != null)
                        PersistableValueMap valueMap= resource.adaptTo(PersistableValueMap.class);
                        valueMap.put("name", "Rajesh");
                        valueMap.put("id", "A002");
                        valueMap.put("designation","SE");
                        valueMap.save();
                        System.out.println("Name:"+valueMap.get("name"));
                        System.out.println("Id:"+valueMap.get("id"));
                jcrSession.save();
                resolver.close();
            }catch(Exception e)
                System.out.println("Exception:"+e.getMessage());
    ===================
    The code works fine when the node is payload/jcr:content.
    Note : Process 1 and Process 2 code is same expect the values I'm passing to the PersistableValueMap.
    Any pointers would be more helpful..
    Thanks
    Siva

    Is there anything wrong in my code/ it's a bug..  
    Thanks
    Siva

  • Excise values are not flowing  in MIGO

    Dear All,
    I am facing a problem during MIGO.
    THERE IS STOCK TRANSFER BETWEEN 2 PLANTS AND 2 PLANTS ARE UNDER DIFFERENT COMPANY CODES.
    1 I have created a PO.
    2.Delivery through VL10D
    3.Picking-vl02n
    4.Created Bill-VF01
    5.Created Invoice and saved it
    When I am doing MIGO the excise values are not following.in migo SCREEN.I I want to know do i need to post EXCISE INVOICE and how to do the same.
    Pl let me know anything is missed out so that excise invoice is not flowing in MIGO screen.
    Regards
    Manash

    Hi,
    Have you miantained Tax code in STO ? if yes, then have you mainatained Settoff as 100% for that Tax Code in FV11 for which combination you are using
    SETOFF Must Be Maintained:-
    JMX1 --     IN: A/P BED setoff
    JEX1 ---      Ecess Setoff Sta
    HX1     IN: A/P SECess SOTot       
    If it is there please follow the Following steps for STO
    1.     Create Purchase Order(STO)  using ME21N
    2.     Create Outbound Delivery using VL10B
    3.     Create Billing Document using VF01
    4.     Create Excise Invoice using J1IIN
    5.                   GR with respect to Inbound delivery and in Excise Invoice give number of VF01.
    Hope Help U !
    Regards,
    Pardeep Malik

  • Excise values are not copied to Commercial invoice in trading process

    Hi All,
    I have an issue while creating VF01 the Excise condtion values (BED, AED) not copied to commercial Invoice.
    Other inputs about the scenaio:
    The process is 1Customer schduleing agreement->outbound delivery->J1IJ->commerical invoice(VF01)
    We had vendor agreement in which 3 line items were crated with qty of 500, 1000 and 1500 qty
    for the first line item when we created total cycle upto VF01 the Excise values are copied where as for the 2nd and 3rd line items the excise values are not being copied to VF01. Here note the only difference beween these 3 line items is mateial code is different.
    J_1irg23d table is showing the BED and AED condtion values for the 2nd 3rd line item aswell.
    Checked PO also for the 2nd and 3rd line item showing the Excise tab in which Excise values are showing.
    MIGO and MIRO were created with correct PO only
    We maintan the condtion reocrds for BED and AED as 100%, what ever the Excise values maintained in MIRO the same will be copied to VF01.
    Once again just would like to reconfrim the issue is out of 3 line items of the sheduling agreement for the first line item BED and AED are copying to VF01 where as for the 2nd and 3rd line item BED and AED values not copying to VF01.the only difference is material code between the line items.
    Please let me know if you need any further details.
    Thanks in advance.

    Thanks sir for your reply.
    have you declared the receiving plant from overseas as a Depot?
    Yes  it was defined as depo plant in configuration of plant settings.
    Actually i should have mentioend total cycle before. However, i have mentioend in my OP as
    MIGO and MIRO were created with correct PO only
    But anyway please check my total cycle as below.
    ME31L (vendor agreement)
    MIRO(customer custom vendor payment)
    MIGO(with ref Vendor agreement/PO) here the excise duties are captured as well, we will not do seperately JIIG.
    MIRO( actual vendor payment)
    VA31(customer agreement )
    VL01N(outbound delivery)
    J1IJ(with ref delivery) here we sellect the MIRO invoice
    Vf01( commerecial invoice)
    Upto J1IJ all the values calculated and copied ok. Only during VF01 the BED and AED values anot being copied. Even i tried the update button but not updated.
    For time being we are entering the BED and AED condition values into VF01.
    thanks,
    Message was edited by: surya prakash

Maybe you are looking for

  • Manual Exporting of BLOB specific table to text file

    Hi, Our application is having 60000 record in a BLOB specific table. My requirement is to export the entire table data to text files . When I tried converting BLOB to sting and writing to file, it took almost 3 mins for 100 records, if so, will take

  • MBP Retina not recognizing external drive

    I have a strange problem with an external SSD.  When I put the drive into an external USB3 case, the computer will not see it.  If I plug it into a GoFlex expansion, it sees it fine.  If I take this drive and plug it into another MBP (Via USB3) it fi

  • Win7 PC won't run upgraded photoshop CC (2014) as standard user

    Since upgrade from photoshop CC the PC won't run using the standard user account (which is on the office network) but only run as local Admin (which doesn't have access to the office network). when opening photoshop CC 2014 the PC prompts for local a

  • Mini (Late 2009 - server) won't sleep!

    All - I have recently set up a Mini (Late 2009 - server version) as a small home server. Much of the time I'd like it to be asleep (in the middle of the night, during the day when no-one's at home). The problem is, it won't sleep. It doesn't seem to

  • Count of size range

    Hi could some one assist. Our requirement is Number of tickets by Size per each month, the data in Trade table like this Trade_id-->Size-->trade_Date-->Market 1-------->110----->01/02/11-->AA 2-------->80------>25/01/11-->AB 3-------->210----->17/01/