Database naming problem in CAF Core

Dear Experts,
I am experiencing a serious problem when testing the NW CE 7.1. I have created two projects with different vendor name while the project name and business object name are the same. I found that they will use the same database table. If I don't pay any attention to the database table name. They will overwrite each other when I deploy the application. I think this is a very dangerous and serious problem.
However, as I am still testing without NWDI in place, will NWDI solve this problem? Please advise. Thanks!
Regards,
Alex

Hi,
Try reading near to the end of this page - http://help.sap.com/saphelp_nwce10/helpdata/en/b9/1cec745b7f4f0c925b8b32ddd3004e/frameset.htm - as a starter for 10.
The do some more research on Name Reservation generally.
Gareth.

Similar Messages

  • Problem with CAF Core Exercise

    Hello All,
    I am performing the CAF exercise I doing it as per the guide How-to-Guide CAF Core however when I am trying to create a Web Service from the CAF Applications I am getting the following error:
    Result
    => deployment aborted : file:/C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1/temp3623sap.com~demo~core~register.ear
    Aborted: development component 'demo/core/register'/'sap.com'/'local'/'20070626205559':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/demo~core~register.. Reason: Webservices common deployment exception! The reason is: Error occurred, trying to update web services for application sap.com/demo~core~register. . Additional info: none; nested exception is:      java.lang.Exception: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occurred, trying to update web services for application sap.com/demo~core~register. . Additional info: none
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
         at com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate(WSDeployer.java:274)
         at com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:400)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:319)
         at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:164)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3155)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:667)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:309)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:194)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices deployment exception! The reason is: Error occurred, trying to generate web services deployment files for application sap.com/demo~core~register. . The error refers to application: none, jar: {2}, web service: {3}.
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
         ... 21 more
    Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occurred, parsing com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application sap.com/demo~core~register, web service RegEDWS, location message: type: jar file, location: D:\usr\sap\ERP\DVEBMGS10\j2ee\cluster\server0\.\temp\deploy\work\deploying\reader1182862628593\sap.com~demo~core~register~ejbmodule.jar . . Additional info: {1}
         at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
         at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
         ... 23 more
    Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occurred, trying to parse source type: zip entry, zip file location: D:\usr\sap\ERP\DVEBMGS10\j2ee\cluster\server0\.\temp\deploy\work\deploying\reader1182862628593\sap.com~demo~core~register~ejbmodule.jar, entry: com/sap/demo/core/register/appsrv/reged/RegEDWSVi.videf . Additional info: {1}
         at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseVI(WSDefinitionFactory.java:925)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:817)
         ... 26 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML Node [VirtualInterface.Functions][http://xml.sap.com/2002/10/metamodel/vi] have minOccurs>0 in schema definition but is missing in node [VirtualInterface][http://xml.sap.com/2002/10/metamodel/vi].
         at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType._loadInto(GeneratedComplexType.java:1197)
         at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType.deserialize(GeneratedComplexType.java:945)
         at com.sap.engine.services.webservices.server.deploy.descriptors.vi.VInterfaceParser.getVInterface(VInterfaceParser.java:46)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseVI(WSDefinitionFactory.java:920)
         ... 27 more
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Can someone please suggest to me how to resolve this as I have no idea how to proceed.
    Thanks.

    Hello Raimund,
    Thanks for your reply.
    Yes I am executing these components on the discovery server. It's actually part of the exercises that came with the server which is Composite Tool Box.
    When I am deploying the application without converting the Application Service to a Web Service everything works fine when I am trying to convert it to a Web Service as required by the Visual Composer part of the exercise, I am able to buld it however when I am deploying it I get the Exception.
    Thanks.

  • Error while creating new employee in CAF Core application

    Hi
    I am novice to the CAF, this is my first CAF Core application which I have created and deployed in J2EE engine successfully. It’s ready for Testing, here  I am trying to create a  new employee but while saving it, giving error like:-
    ERROR. Exception thrown in method createEmployee. The transaction is marked for rollback.: Exception thrown in method create. The transaction is marked for rollback.: com/sap/caf/rt/exception/CAFIllegalAccessException
    Anyone can help out me.
    Regards
    Srikanth

    Hi Cindy Herrman,
      FYI , that check box already unchecked, while setup the employee entity only that Permission check box unchecked, still I am getting same problem.
    -Srikanth

  • External WebService call from CAF Core returns Invalid soap message

    I am trying to perform the very simple action of calling a WebService from a CAF Core app service.
      1. I imported the WS (Axis Web service running on NW 2004s SP9 server) with WSDL (option 2 on import external service page).
      2. I then assembled the call in an app service method and invoke it.
      3. I made sure to configure the end point for the service and the method using the External Service configuration.
    When I execute the CAF core method using a simple Callable Object test client, I get the following error:
    com.sap.caf.mp.base.exception.EngineException: Invalid soap message received
         at com.sap.caf.mp.core.data.service.manager.wsdl11.SOAPToMessageValueConverter.processComplexTypeMode(SOAPToMessageValueConverter.java:290)
         at com.sap.caf.mp.core.data.service.manager.wsdl11.SOAPToMessageValueConverter.generateComplexTypeValue(SOAPToMessageValueConverter.java:179)
         at
    truncated.
    I have also captured the XML request/reponse trace using tcpmon :
    REQUEST:
    POST /NWTestExpressWAR/services/TestExpressService HTTP/1.1
    Host: 192.168.99.120:8078
    Content-Type: text/xml; charset=UTF-8
    Content-Length: 348
    SOAPAction: http://www.testsys.com/TestExpressService/getAvailableModels
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><ns1:GetAvailableModels xmlns:ns1="http://www.testsys.com/TestExpressService"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
    RESPONSE:
    HTTP/1.1 200 OK
    Server: SAP J2EE Engine/7.00
    Set-Cookie: saplb_*=(J2EE11743000)11743050; Version=1; Path=/
    Content-Type: text/xml; charset=utf-8
    Date: Mon, 04 Dec 2006 02:19:39 GMT
    Transfer-Encoding: chunked
    Set-Cookie: JSESSIONID=(J2EE11743000)ID1261187150DB11296929644926762709End; Version=1; Domain=192.168.99.120; Path=/
    1f3
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><GetAvailableModelsResponse xmlns="http://www.testsys.com/TestExpressService"><modelNames><name>Great Oak Manufacturing-January03 Test</name><name>PriceCheck-default</name></modelNames><errorMessagesReturn/></GetAvailableModelsResponse></soapenv:Body></soapenv:Envelope>
    0
    The only problem I can think off is that the transfer-encoding is marked as chunked which is causing the characters '1f3' and '0' to appear after and before the response and that this is causing the app to crash.
    192.168.99.120 is the server the hosts the WS. It is also a 2004s SP9 server. The client server that hosts the CAF core service is of the same configuration. 8078 is the port I redirect for tcpmon purposes.
    Could anyone shed some light on my problem?
    Thanks,
    Pratap.

    It looks like NW WS client cannot handle Transfer-encoding of chunked even though this is part of HTTP 1.1. What seems to be happening is that the NW WS client is creating a HTTP 1.1 request. The service (axis ws running on NW) seeing this is creating a HTTP 1.1 response w/ chunked encoding. However, the client cannot handle this encoding and barfs. The solution is to change the service to return a HTTP/1.0 response since NW cant handle HTTP 1.1.
    Pratap.

  • SDM Deployment fails - Dependency caf/core/ear missing

    crosspost from: SDM Deployment fails - Dependency caf/core/ear missing
    deploying a DC from NWDS into SDM the following Exception is thrown:
    07.01.2008 16:20:38 /userOut/daView_category (eclipse.UserOutLocation) [ThreadDeploy Thread,5,main] INFO:
    002Additional log information about the deployment
    <!LOGHEADERSTART/>
    <!HELPManual modification of the header may cause parsing problem!/>
    <!LOGGINGVERSIONhttp://1.5.3.7185 - 630/>
    <!NAME[/usr/sap/IT1/DVEBMGS00/SDM/program/log/sdmcl20080107151422.log]/>
    <!PATTERNhttp://sdmcl20080107151422.log/>
    <!FORMATTERcom.sap.tc.logging.TraceFormatter(%24d %s: %m)/>
    <!ENCODINGUTF8/>
    <!LOGHEADEREND/>
    Jan 7, 2008 4:14:22 PM Info:
    Starting deployment
    Jan 7, 2008 4:14:22 PM Info: Error handling strategy: OnErrorStop
    Jan 7, 2008 4:14:22 PM Info: Prerequisite error handling strategy: OnPrerequisiteErrorStop
    Jan 7, 2008 4:14:22 PM Info: Update strategy: UpdateAllVersions
    Jan 7, 2008 4:14:22 PM Info: Starting deployment prerequisites:
    Jan 7, 2008 4:14:23 PM Info: Loading selected archives...
    Jan 7, 2008 4:14:23 PM Info: Loading archive '/usr/sap/IT1/DVEBMGS00/SDM/program/temp/temp23425innobis.dewkbtmetadata.ear'
    Jan 7, 2008 4:14:24 PM Info: Loading archive '/usr/sap/IT1/DVEBMGS00/SDM/program/temp/temp23426innobis.dewkbtear.ear'
    Jan 7, 2008 4:14:24 PM Info: Loading archive '/usr/sap/IT1/DVEBMGS00/SDM/program/temp/temp23427innobis.dewkbtdictionary.sda'
    Jan 7, 2008 4:14:25 PM Info: Loading archive '/usr/sap/IT1/DVEBMGS00/SDM/program/temp/temp23428innobis.dewkbtpermissions.ear'
    Jan 7, 2008 4:14:26 PM Info: Selected archives successfully loaded.
    Jan 7, 2008 4:14:26 PM Error: Unresolved dependencies found for the following SDAs:
    1.: development component 'wkbt/ear'/'innobis.de'/'NetWeaver Developer Studio'/'20080107144202'/'0'
    dependency:
    name: 'caf/core/ear'
    vendor: 'sap.com'
    There is no component either in SDM repository or in Deployment batch that resolves the dependency.
    Deployment will be aborted.
    Jan 7, 2008 4:14:26 PM Error: Prerequisites were aborted.
    Jan 7, 2008 4:14:27 PM Error: Error while creating deployment actions.
    system:
    sap.com/SAP-JEECOR 7.00 SP10 (1000.7.00.10.0.20061026144500)
    sap.com/SAP-JEE 7.00 SP10 (1000.7.00.10.0.20061026144500)
    I checked http://<srv>/sap/monitoring/ComponentInfo
    the missing 'caf/core/ear' is not listed, however several other CAFs are:
    sap.com caf/core null (964250) SAP AG MAIN_APL70VAL_C 20061212133926 sap.com/CAF
    sap.com caf/core/dict null (964586) SAP AG MAIN_APL70VAL_C 20061212131613 sap.com/CAF
    sap.com caf/core/gp/facade/backgroundco/ear null (964227) SAP AG MAIN_APL70VAL_C 20061212134201 sap.com/CAF
    sap.com caf/core/metadata null (963689) SAP AG MAIN_APL70VAL_C 20061212133653 sap.com/CAF
    etc....
    Is it possible to deploy this missing caf-ear component supplementary?
    I have the strange feelings caf/core/ear is something 7.1 CE only related....
    thanks for any hint!
    kai

    Kai, I didn't mean to offend you. But good forum practice is to avoid duplicate posts.
    Regards,
    \-- Vladimir

  • Using XI created Web Service in CAF Core

    Hello,
    i'm despairing!!!!
    For 2 days I'm trying now to get my XI created Web service working in my CAF Core application...the result is depressing.
    First of all: the Web service works without any problems when I import the WSDL into "oXygen" tool. I'm generating a request and get the correct result. The message is processed without errors in XI.
    I followed the steps described in <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370">Using a Web Service as External Service</a>. I have 2 search values (with option, minValue, maxValue) where I map each minValue to the corresponding external service attribute.  But when I test the everything in the ServiceBrowser (with parameters ""), the message is processed in XI but with empty search parameters. This means that my "" values are not transferred via XML to XI.
    Maybe I put in incorrect URLs (tutorial part: "Configure external services") for WSDL Description URL and End point URL. Which URLs are the corresponding ones in a WSDL file?
    Can anyone help me?
    Thanks and regards
    Joschi

    Hi Andre,
    Thanks for your answer, but now I'm a bit confused...why is this tutorial for GP? A Web Service is imported as External Service into a Composite Application Service DC in NWDS and then wrapped by an Entity Service. After deployment the Entity Service is tested with the Service Browser. So I don't see the connection to GP.
    The passage with 2 search values is maybe a bit confusing, yes. I will search for materialNumber and salesName (2 search values). And for each my Entity Service operation presents me in the mapping mask three "sub"-parameters: option, minValue, maxValue.
    So my question on your question: Why do I have to set the "option" to "=="? I don't need the option for my Web Service. In the tutorial there's also no "option" set. In addition I'm not able to set the "option" in my Entity Service because no coding is allowed. So is the tutorial  wrong?
    By the way, I already set the "option" to "==" in an extra Application Service (which cals my Entity Servie) and tested it. I created 2 QueryFilters and set "option", "minValue" and "maxValue". But this also doesn't work.
    Regards
    Joschi

  • Un-Named Problem

    This is my Server Program
    import javax.swing.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    class Validation
         Object object;
         public static Vector v1=new Vector(1,1);
         Vector vctUsername = new Vector(1,1);
         public Validation(String ipAddress1, String message1)
              message1.trim();
              if(checkIP(ipAddress1))
              else
                   v1.add(ipAddress1);
                   System.out.println("IP Added");
              String check = new String(String.valueOf(message1.charAt(0)));
              if(message1.length()==0)
              else if(message1.equals("A"))
                   System.out.println("Join in Message .. not to be sent");
              else if(check.equals("�"))
                   StringTokenizer str = new StringTokenizer(message1,"�");
                   String username13 = (str.nextToken());
                   String dust13 = (str.nextToken());
                   System.out.println(dust13);
                   if(dust13.equals(new String(" has joined the conversation")));
                   System.out.println(username13);
                   vctUsername.add(username13);
                   NewServer.listNames.setListData(vctUsername);
              else
                   for(int i=0; i<v1.size(); i++)
                        try
                             object = v1.elementAt(i);
                             Socket socket = new Socket(object.toString(),4001);
                             System.out.println("Connection formed with Client "+object.toString());
                             ObjectOutputStream toClient = null;
                             toClient = new ObjectOutputStream(socket.getOutputStream());
                             toClient.writeObject(message1);
                             toClient.flush();
                             System.out.println("Message "+message1+"to IP -- "+object.toString());
                             toClient.close();
                             socket.close();
                        catch(ConnectException e1)
                             for(int ii=0; ii<v1.size(); ii++)
                                  Object object1 = v1.elementAt(ii);
                                  if(object1.toString().equals(object.toString()))
                                       v1.removeElementAt(ii);
                                       vctUsername.removeElementAt(ii);
                                       NewServer.listNames.setListData(vctUsername);
                                  else
                        catch(Exception e)
                             System.out.println("Error : "+e);
         public boolean checkIP(String ipAddress2)
              for(int i=0; i < v1.size(); i++)
                   Object object = v1.elementAt(i);
                   if(object.toString().equals(ipAddress2))
                        return true;
              return false;
    public class NewServer
         public static JList listNames;
         private     ServerSocket chatSocket;
         public NewServer()
              Object object;
              JFrame frameMain = new JFrame("Server");
              JPanel panelMain = new JPanel();
              JTextArea textAreaDisplay = new JTextArea(25,50);
              JScrollPane scrollPaneBoard = new JScrollPane(textAreaDisplay);
              listNames = new JList();
              frameMain.getContentPane().add(panelMain);
              frameMain.setVisible(true);
              frameMain.setSize(200,200);
              panelMain.add(scrollPaneBoard);
              panelMain.add(listNames);
              textAreaDisplay.setLineWrap(true);
              try
                   chatSocket = new ServerSocket(4000);
              catch(BindException e)
                   JOptionPane.showMessageDialog(frameMain, new String("Port Address in use"));
                   System.exit(0);
              catch(Exception e)
                   System.out.println("Error 1 "+e);
              while(true)
                   try
                        System.out.println("Waiting for connections .. ");
                        Socket client = chatSocket.accept();
                        String inetAddress = String.valueOf(client.getInetAddress());
                        StringTokenizer str = new StringTokenizer(inetAddress,"/");
                        String hostName = (str.nextToken());
                        String ipAddress = (str.nextToken());
                        System.out.println("Accepted connection from : "+hostName+" : "+ipAddress);
                        new Validation(ipAddress, "A");
                        try
                             ObjectInputStream fromClient = null;
                             client.setSoTimeout(1000);
                             fromClient = new ObjectInputStream(client.getInputStream());
                             String x;
                             x = (String) fromClient.readObject();
                             textAreaDisplay.append(x);
                             textAreaDisplay.append("\n");
                             new Validation(ipAddress, x);
                        catch(Exception e)
                             System.out.println("Error 3 "+e);
                   catch(NullPointerException e)
                        JOptionPane.showMessageDialog(frameMain, new String("An unexpected error occured while starting the Server -- Error - "+e));
                        System.exit(0);
                   catch(Exception e)
                        System.out.println("Error 2 "+e);
         public static void main(String args[])
              new NewServer();
    this is my Client Program
    import java.io.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class NewClient
         JFrame frameMain1;
         JPanel panelMain1;
         JTextArea textAreaDisplay;
         JScrollPane scrollPaneDisplay;
         JTextField textFieldMessage;
         Socket socket;     
         ObjectInputStream fromServer;
         ServerSocket inputServerSocket;
         String username123;
         public NewClient(String username12)
              frameMain1 = new JFrame("Client");
              panelMain1 = new JPanel();
              textAreaDisplay = new JTextArea(25,50);
              scrollPaneDisplay = new JScrollPane(textAreaDisplay);
              textAreaDisplay.setLineWrap(true);
              panelMain1.add(scrollPaneDisplay);
              System.out.println("coming 1");
              textFieldMessage = new JTextField(50);
              panelMain1.add(textFieldMessage);
              textFieldMessage.addKeyListener(new listener());
              frameMain1.getContentPane().add(panelMain1);
              frameMain1.setSize(200,200);
              frameMain1.setVisible(true);
              System.out.println("coming 3");
              try
                   socket = new Socket("192.168.16.1",4000);
                   inputServerSocket = new ServerSocket(4001);
                   ObjectOutputStream toServer = new ObjectOutputStream(socket.getOutputStream());
                   toServer.writeObject("� "+username12+" � has joined the conversation");
                   toServer.flush();
                   toServer.close();
              catch(UnknownHostException e)
                   JOptionPane.showMessageDialog(frameMain1, new String("Host Not Found "+e));
                   System.exit(0);
              catch(ConnectException e)
                   JOptionPane.showMessageDialog(frameMain1, new String("Connection Failed Because "+e));
                   System.exit(0);
              catch(BindException e)
                   JOptionPane.showMessageDialog(frameMain1, new String("Client Application already running or Port in use"));
                   System.exit(0);
              catch(Exception e)
                   JOptionPane.showMessageDialog(frameMain1, new String("An unexpected Error occured "+e));
                   System.exit(0);
              try
                   while(true)
                        Socket listener = inputServerSocket.accept();
                        ObjectInputStream fromClient = null;
                        listener.setSoTimeout(1000);
                        fromServer = new ObjectInputStream(listener.getInputStream());
                        String input = (String) fromServer.readObject();
                        textAreaDisplay.append("\n");
                        textAreaDisplay.append(input);
                        fromServer.close();
                        listener.close();
              catch(Exception e)
                   JOptionPane.showMessageDialog(frameMain1, new String("An unexpected Error occured "+e));
         class listener implements KeyListener
              public void keyTyped(KeyEvent e)
              public void keyReleased(KeyEvent e)
              public void keyPressed(KeyEvent e)
                   int code = e.getKeyCode();
                   if(code == KeyEvent.VK_ENTER)
                        String message12 = textFieldMessage.getText();
                        message12.trim();
                        if(message12.length()==0)
                        else
                             try
                                  Socket socket1;
                                  socket1 = new Socket("192.168.16.1",4000);
                                  ObjectOutputStream toServer = new ObjectOutputStream(socket1.getOutputStream());
                                  String messageTyped;
                                  messageTyped = (username123+" says::"+message12);
                                  toServer.writeObject(messageTyped);
                                  toServer.flush();
                                  textFieldMessage.setText("");
                                  toServer.close();
                                  socket1.close();
                             catch(ConnectException e1)
                                  JOptionPane.showMessageDialog(frameMain1, new String("Server Down"));
                                  System.exit(0);
                             catch(Exception e2)
                                  JOptionPane.showMessageDialog(frameMain1, new String("Error : "+e2));
                                  System.exit(0);
         public static void main(String args[])
              new NewClient("Guest_Null");
    and this is the program ...thru which i am calling ... Newclient
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.sql.*;
    public class Prashant extends JFrame
         //----frameMain objects
         JFrame frameMain = new JFrame("");     
         //----panelMain objects
         JPanel panelMain = new JPanel();
         CardLayout c1 = new CardLayout();
         //----panelAdministrator
         JPanel panelAdministrator = new JPanel();
         JTable table = new JTable();
         //----panelWelcome objects
         JPanel panelWelcome = new JPanel();
         String stringFirstName2 = new String("User");
         JLabel labelFirstName1=new JLabel("");
         //----panelLogin objects
         JPanel panelLogin = new JPanel();
         JLabel labelUsername2 = new JLabel("Username");
         JTextField textFieldUsername2 = new JTextField(10);
         JLabel labelPassword1 = new JLabel("Password");
         JPasswordField passwordFieldPassword1 = new JPasswordField(10);
         JButton buttonLogin = new JButton("Login");
         JButton buttonNewUser = new JButton("New User, Sign Up");
         //----panelInsertData objects
         JPanel panelInsertData = new JPanel();
         JLabel labelUsername1 = new JLabel("Username");
         JTextField textFieldUsername1 = new JTextField(10);
         JLabel labelPassword = new JLabel("Password");
         JPasswordField passwordFieldPassword = new JPasswordField(10);
         JLabel labelReTypePassword = new JLabel("Re-Type Password");
         JPasswordField passwordFieldReTypePassword = new JPasswordField(10);
         JLabel labelFirstName = new JLabel("First Name");
         JTextField textFieldFirstName = new JTextField(10);
         JLabel labelLastName = new JLabel("Last Name");
         JTextField textFieldLastName = new JTextField(10);
         JLabel labelPhoneNumber = new JLabel("Phone Number");
         JTextField textFieldPhoneNumber = new JTextField(10);
         JLabel labelAddress = new JLabel("Address");
         JTextArea textAreaAddress = new JTextArea("",10,10);
         JScrollPane scrollPaneAddress = new JScrollPane(textAreaAddress);
         ClickListen ClickListener = new ClickListen();
         JButton buttonSubmit = new JButton("Submit");
         //----panelRetieveData objects
         JPanel panelRetieveData = new JPanel();
         JButton testButton = new JButton("Retieve Data");
         //----panelUsernameSearch
         JPanel panelUsernameSearch = new JPanel();
         JLabel labelUsername = new JLabel("Username");
         JTextField textFieldUsername = new JTextField(10);
         JButton buttonCheckForAvailability = new JButton("Check");
         public void frameMain()
              frameMain.setResizable(true);
         public void panelMainClass()
              frameMain.getContentPane().add(panelMain);
              panelMain.setLayout(c1);
         public void panelWelcome()
              panelMain.add(panelWelcome, "panelWelcome");
              panelWelcome.setLayout(null);
              panelWelcome.add(labelFirstName1);
              labelFirstName1.setBounds(10,10,200,25);
         public void panelAdministrator()
              panelMain.add(panelAdministrator,"panelAdministrator");
              panelAdministrator.add(table);
         public void panelLogin()
              frameMain.setSize(195,160);
              frameMain.setVisible(true);
              panelLogin.setLayout(null);
              panelMain.add(panelLogin, "panelLogin");
              c1.show(panelMain, "panelLogin");
              panelLogin.add(labelUsername2);
              labelUsername2.setBounds(10,10,100,25);
              panelLogin.add(textFieldUsername2);
              textFieldUsername2.setBounds(75,10,100,25);
              panelLogin.add(labelPassword1);
              labelPassword1.setBounds(10,40,100,25);
              panelLogin.add(passwordFieldPassword1);
              passwordFieldPassword1.setBounds(75,40,100,25);
              panelLogin.add(buttonLogin);
              buttonLogin.setBounds(10,70,165,25);
              buttonLogin.addActionListener(ClickListener);
              panelLogin.add(buttonNewUser);
              buttonNewUser.setBounds(10,100,165,25);
              buttonNewUser.addActionListener(ClickListener);
         public void panelUsernameSearch()
              panelMain.add(panelUsernameSearch,"panelUsernameSearch");
              panelUsernameSearch.setLayout(null);
              panelUsernameSearch.add(labelUsername);
              labelUsername.setBounds(10,10,60,25);
              panelUsernameSearch.add(textFieldUsername);
              textFieldUsername.setBounds(75,10,100,25);
              panelUsernameSearch.add(buttonCheckForAvailability);
              buttonCheckForAvailability.setBounds(10,40,165,25);
              buttonCheckForAvailability.addActionListener(ClickListener);
         public void panelInsertDataClass()
              panelInsertData.setLayout(null);
              panelMain.add(panelInsertData, "panelInsertData");
              labelUsername1.setBounds(10,10,100,25);
              panelInsertData.add(labelUsername1);
              textFieldUsername1.setBounds(115,10,100,25);
              textFieldUsername1.setEnabled(false);
              textFieldUsername1.setText("Prashant");
              panelInsertData.add(textFieldUsername1);
              labelPassword.setBounds(10,40,100,25);
              panelInsertData.add(labelPassword);
              passwordFieldPassword.setBounds(115,40,100,25);
              panelInsertData.add(passwordFieldPassword);
              labelReTypePassword.setBounds(10,70,100,25);
              panelInsertData.add(labelReTypePassword);
              passwordFieldReTypePassword.setBounds(115,70,100,25);
              panelInsertData.add(passwordFieldReTypePassword);
              labelFirstName.setBounds(10,100,100,25);
              panelInsertData.add(labelFirstName);
              textFieldFirstName.setBounds(115,100,100,25);
              panelInsertData.add(textFieldFirstName);
              labelLastName.setBounds(10,130,100,25);     
              panelInsertData.add(labelLastName);
              textFieldLastName.setBounds(115,130,100,25);
              panelInsertData.add(textFieldLastName);
              labelPhoneNumber.setBounds(10,160,100,25);
              panelInsertData.add(labelPhoneNumber);
              textFieldPhoneNumber.setBounds(115,160,100,25);
              panelInsertData.add(textFieldPhoneNumber);
              labelAddress.setBounds(10,190,100,25);
              panelInsertData.add(labelAddress);
              textAreaAddress.setLineWrap(true);
              scrollPaneAddress.setBounds(115,190,100,75);
              panelInsertData.add(scrollPaneAddress);
              panelInsertData.add(buttonSubmit);          
              buttonSubmit.addActionListener(ClickListener);
              buttonSubmit.setBounds(10,270,205,25);
         public void panelRetieveDataClass()
              panelMain.add(panelRetieveData, "panelRetieveData");               
              panelRetieveData.add(testButton);
         class ClickListen implements ActionListener
              public void actionPerformed(ActionEvent evt)
                   Object obj = evt.getSource();
                   if(obj==buttonLogin)
                        String stringUsername2 = new String(textFieldUsername2.getText());
                        if(stringUsername2.length()==0)
                             JOptionPane.showMessageDialog(frameMain, new String("Username field cannot be left empty"));
                        else
                             String stringPassword1 = new String(passwordFieldPassword1.getPassword());
                             if(stringPassword1.length()==0)
                                  JOptionPane.showMessageDialog(frameMain,new String("Password field cannot be left empty"));
                             else
                                  if(stringUsername2.equals("Administrator"))
                                       if(stringPassword1.equals("Prashant"))
                                            JOptionPane.showMessageDialog(frameMain,new String("Welcome Mr.Prashant"));
                                            c1.show(panelMain, "panelAdministrator");
                                       else
                                            JOptionPane.showMessageDialog(frameMain,new String("Invalid Password"));
                                  else
                                       try
                                            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                            Connection con2;
                                            con2 = DriverManager.getConnection("jdbc:odbc:prashant","user1","");
                                            PreparedStatement stat2 = con2.prepareStatement("select * from prashant_registration where username = ? AND cpassword = ?");
                                            stat2.setString(1, stringUsername2);
                                            stat2.setString(2, stringPassword1);
                                            ResultSet result;
                                            result = stat2.executeQuery();
                                            if(result.next())
                                                 JOptionPane.showMessageDialog(frameMain,new String("Login successful"));
                                                 stringFirstName2 = result.getString(3);
                                                 labelFirstName1.setText("Welcome "+stringFirstName2);
                                                 new NewClient(stringUsername2);
                                                 c1.show(panelMain, "panelWelcome");
                                            else
                                                 JOptionPane.showMessageDialog(frameMain,new String("Login Failed"));
                                                 textFieldUsername2.setText("");
                                                 passwordFieldPassword1.setText("");
                                       catch(Exception e)
                                            System.out.println("error" +e);
                   if(obj==buttonNewUser)
                        c1.show(panelMain, "panelUsernameSearch");
                        frameMain.setSize(190,100);
                        frameMain.setVisible(true);
                   if(obj==buttonCheckForAvailability)
                        String stringUsername = textFieldUsername.getText();
                        if(stringUsername.length()==0)
                             JOptionPane.showMessageDialog(frameMain,new String("Username cannot be left blank"));
                        else
                             try
                                  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                  Connection con1;
                                  con1 = DriverManager.getConnection("jdbc:odbc:prashant","user1","");
                                  PreparedStatement stat1 = con1.prepareStatement("select * from prashant_registration where username = ?");
                                  stat1.setString(1, textFieldUsername.getText());
                                  ResultSet result;
                                  result = stat1.executeQuery();
                                  if(result.next())
                                       JOptionPane.showMessageDialog(frameMain,new String("Username is not Avaiable, Click Ok, to choose someother username"));
                                       textFieldUsername.setText("");
                                  else
                                       JOptionPane.showMessageDialog(frameMain, new String("Username is available, Click Ok, to move to the next step"));
                                       textFieldUsername1.setText(textFieldUsername.getText());
                                       frameMain.setSize(230,330);
                                       frameMain.setVisible(true);
                                       c1.show(panelMain, "panelInsertData");
                             catch(SQLException sqlex)
                                  System.out.println ("SQLState: " + sqlex.getSQLState () + "");
                                  System.out.println ("Message: " + sqlex.getMessage() + "");
                                  System.out.println ("Vendor ErrorCode: " + sqlex.getErrorCode() + "");
                             catch(Exception ex1)
                                  System.out.println("Error ex1" +ex1);
                   if(obj==buttonSubmit)
                        String stringPassword = new String(passwordFieldPassword.getPassword());
                        if(stringPassword.length()==0)
                             JOptionPane.showMessageDialog(frameMain, new String("Password field cannot be left empty"));
                        else
                             String stringReTypePassword = new String(passwordFieldReTypePassword.getPassword());
                             if(stringReTypePassword.length()==0)
                                  JOptionPane.showMessageDialog(frameMain, new String("Please ReType the password"));
                             else
                                  if(stringPassword.equals(stringReTypePassword))
                                       if((new String(textFieldFirstName.getText())).length()==0)
                                            JOptionPane.showMessageDialog(frameMain,new String("FirstName cannot be left blank"));
                                       else
                                            if((new String(textFieldLastName.getText())).length()==0)
                                                 JOptionPane.showMessageDialog(frameMain,new String("LastName cannot be left blank"));
                                            else
                                                 if((new String(textFieldPhoneNumber.getText())).length()==0)
                                                      JOptionPane.showMessageDialog(frameMain,new String("Phone Number cannot be left blank"));
                                                 else
                                                      if((new String(textAreaAddress.getText())).length()==0)
                                                           JOptionPane.showMessageDialog(frameMain,new String("Address Cannot Be Left Blank"));
                                                      else
                                                           try
                                                                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                                                Connection con;
                                                                con = DriverManager.getConnection("jdbc:odbc:prashant","user1","");
                                                                PreparedStatement stat2 = con.prepareStatement("insert prashant_registration values(?,?,?,?,?,?, getDate(), getDate())");
                                                                stat2.setString(1,textFieldUsername1.getText());
                                                                stat2.setString(2,stringPassword);
                                                                stat2.setString(3,textFieldFirstName.getText());
                                                                stat2.setString(4,textFieldLastName.getText());
                                                                stat2.setString(5,textFieldPhoneNumber.getText());
                                                                stat2.setString(6,textAreaAddress.getText());
                                                                stat2.executeUpdate();
                                                                JOptionPane.showMessageDialog(frameMain,new String("Your Details have been registered"));
                                                                c1.show(panelMain, "panelRetieveData");
                                                           catch(SQLException ex)
                                                                System.out.println ("SQLState: " + ex.getSQLState () + "");
                                                                System.out.println ("Message: " + ex.getMessage() + "");
                                                                System.out.println ("Vendor ErrorCode: " + ex.getErrorCode() + "");
                                                           catch(Exception e)
                                                                JOptionPane.showMessageDialog(frameMain,new String("Error encountered while entering data in the database: "+e));
                                  else
                                       JOptionPane.showMessageDialog(frameMain,new String("Passwords doesnt match"));
         public static void main(String args[])
              Prashant prashant = new Prashant();
              prashant.frameMain();
              prashant.panelMainClass();
              prashant.panelLogin();
              prashant.panelWelcome();
              prashant.panelAdministrator();
              prashant.panelUsernameSearch();
              prashant.panelInsertDataClass();
              prashant.panelRetieveDataClass();
    I dont know what the problem is .... the Client program's frame is EMPTY
    my faculty and my fellow programmers said ...the program is getting hanged or something is getting overlapped
    please try and let me know what could be the possible problem could be .... people in here and myself ..couldnt solve it ... because i am not getting any error message or exception ... so it is a
    **Un-Named Problem**
    I will be really thankful to you ...if u could help me out

    When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.

  • Encapsulating web services in CAF core

    Hi,
    I am trying to call external services namely web services in caf core. I read the earlier posts and i guess I am missing out on something.
    1. what is the difference between encapsulating external service as entity service VS application service. For example, I am trying to call the PurchaseOrderVendorAddress_WSD webservice. It takes vendorID and purchaseorderID as input and returns vendor address. What should I use and why?
    2. I checked out CAF core tutorial. It talks about encapsulating RFC as application service. Is it same for web service? I mean can I assume the same approach is valid for web service
    Many thnx,
    Mayukh

    did you follow the tutorial "81 Using a Web Service as External Service (Service)"?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370
    you can't be lost after that. otherwise you're in big trouble my friend...

  • CAF core archiving

    Hi,
    I am looking at options to archive my CAF code database. We are still in a early phase of development. However wanted to check on the options that we have to archive the data in the CAF core as the database size grows over years. Any help/ links are highly appreciated.
    Thanks & Regards,
    Keerti

    CAF Core is always there in the IDE by default. You can use any of its Entity/BO/App service in your project.
    Thanks,
    Dipankar

  • CAF Core

    <b>In NW2004s SR2 installation documen, page 128</b> <i>"Performing Post-Installation Steps for Composite Application Framework Core (CAF Core)"</i>
    <b>In SLD</b>
    1. In the System Landscape Directory (SLD), <b>create a new project</b>.
    2. Create a new software component (SC) to be developed.
    3. Create software components of the build plug-ins for the dependent development component(DC). They are:
    Archive Names
    BI-MMR, CAF-KM, EPBC2, SAP_JTECHS,
    BI_UDI, CAF-UM, EP-PSERV, SAP_PRT,
    BI-REPPLAN, EC-JSTARTUP, KMC-CM, SAP-EU,
    BI-WDALV, EP_BUILDT, LM-TOOLS, SAP-JEE,
    CAF, EPBC, SAP_BUILDT, UWLJWF
    <b>Problem:</b>
    1-How can I create project in PI/XI SLD?
    2-Some dependent components are not available in SLD.
    3-is CAF setting necessary for PI/XI?
    Thanks.

    Got the same question...
    Additional /Background Information on this chapter is helpfull

  • CAF CORE COLLECTION_ASPECT_KEY error

    I have a simple entity "Approver" with attribute functions (string) and contacts (String), cardinality 0:n for both.
    I build UI object based on Object Editor pattern for this Approver Entity service. Also build the UI object based on Relationship Tab patteren for the Approver Functions and Contacts (attributes).
    When I test the UI (Object editor pattern based) for entity service. It let me add the record to functions and contacts tab, but when clicked on save returns following error.
    Key (or KeyList) [localKey@11e75a9]  is no Key (KeyList) of type COLLECTION_ASPECT_KEY_Approver
    At one point this was working fine. I tried to recreate the Entity Service, UI pattern objects and now both the functions and contact tabs not working. Can not save the records added in those tabs.
    Do I need to do any coding in Entity Service? Is there a documentation that I refer to resolve this error?
    SAP has developed CAF-CORE technology, I guess it will be nice if they can really put out good documentation and tutorials with complex examples.
    Thanks

    Hi ANdre,
    I have one entity "Approver"
    with following attributes
    Attribute Name            Type      Cardinality
    id                     String      0..1
    name                   String      0..1
    functions              String      1..n
    hrContacts             String      1..n
    I would have idealy like to have recusrive relationship, because User or employee plays different roles, like, assistant, hrContact, approver, supervisor. Employee could be associated with multiple functions. To keep the things simple I am having the functions and hrContacts as field on the entity, idealy would have like to have, reference to another entity.
    I guess the problem is with automatic code generated for Entity service and UI patteren. It is expecting something at some place and that's not well documented.
    I have another Entity service with similar structure for Vendor entity and all the UI pattern work fine, that including Object Editor and Relationship tab.
    Thanks

  • Database termination Problem

    Hi every body ..plz help me on this..
    We are facing database termination problem in ECC6 production syste.
    Database: Oracle 10.2, O/S: Windows 2003. Spam  :27, SP level 13.
    Error is:
    Errors in file f:\oracle\p02\saptrace\background\p02_ckpt_6520.trc:
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF'
    ORA-27072: File I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    When we are performing backup then data base termination occuring freequently.
    Give right solution as early as possible.
    Thanks,
    Nani.

    Hi,
    Have a look at below snote which actually speaks about the oracle error codes
    Snote :  546006
    within the Snote it says :-
    " If you cannot access a database file (for instance a data file, control file or RedoLog) for whatever reason, an ORA-270xx appears. The actual cause comes from additional error messages (usually in the operating system) that occur on ORA-270xx. "
    And as per your last update
    " ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF' "
    i think there is problem accessing the database control file. Hence you  are facing the above problem.
    I think if you recreate your control file i think, it should resolve the problem.
    Hope it will be helpful to resolve your problem.
    Rgds
    Radhakrishna D S

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • Database configuring problem in setup of managed systems in SMD

    Hello,
    i'm doing the setup of a CRM 5.0 in SMD Abap+Java and the setup results returns following:
    "Database configuration problem"  with the exception:
    java.lang.NullPointerException
         at com.sap.smd.server.manager.SMDPluginProperties.setProperty(SMDPluginProperties.java:114)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.configureCustomProperties(ConfigurationTask.java:242)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.configureProperties(ConfigurationTask.java:370)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.execute(ConfigurationTask.java:124)
         at com.sap.sup.admin.setup.AppCfgTasks.configureDbApp(AppCfgTasks.java:115)
         at com.sap.sup.admin.setup.SetupStep.execute(SetupStep.java:202)
         at com.sap.smd.agent.plugins.remotesetup.SapInstance.setup(SapInstance.java:217)
         at com.sap.sup.admin.setup.SapCluster.setup(SapCluster.java:461)
         at com.sap.sup.admin.setup.SapCluster.access$000(SapCluster.java:26)
         at com.sap.sup.admin.setup.SapCluster$SetupRunner.run(SapCluster.java:669)
         at java.lang.Thread.run(Thread.java:534)
    Anybody knows which can be the problem?
    Thanks a lot
    Carlos

    Hi Shriraj,
    ensure that the installation path is correct. I only put /urs/sap/<SID> and you must put /usr/sap/<SID>/DV***/.
    In my case with that the setup returns all in green.
    I hope it helps you
    Regards
    Carlos

  • SIMPLE Database Design Problem !

    Mapping is a big problem for many complex applications.
    So what happens if we put all the tables into one table called ENTITY?
    I have more than 300 attributeTypes.And there will be lots of null values in the records of that single table as every entityType uses the same table.
    Other than wasting space if I put a clustered index on my entityType coloumn in that table.What kind of performance penalties to I get?
    Definition of the table
    ENTITY
    EntityID > uniqueidentifier
    EntityType > Tells the entityTypeName
    Name >
    LastName >
    CompanyName > 300 attributeTypes
    OppurtunityPeriod >
    PS:There is also another table called RELATION that points the relations between entities.

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    check the coloumn with WHERE _entityType='PERSON'
    as there is is clustered index on entityType...there
    is NO performance decrease.
    there is also a clustered index on RELATION table on
    relationType
    when we say WHERE _entityType ='PERSON' or
    WHERE relationType='CONTACTMECHANISM'.
    it scans the clustered index first.it acts like a
    table as it is physically ordered.I was thinking in terms of using several conditions in the same select, such as
    WHERE _entityType ='PERSON'
      AND LastName LIKE 'A%' In your case you have to use at least two indices, and since your clustered index comes first ...
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Have you ever thought of using constraints in your
    modell? How would you realize those?
    ...in fact we did.We have arranged the generic object
    model in an object database.The knowledge information
    is held in the object database.So your relational database is used only as a "simple" storage, everything has go through your object database.
    But the data schema is held in the RDBMS with code
    generation that creates a schema to hold data.If you think that this approach makes sense, why not.
    But in able to have a efficent mapping and a good
    performance we have thought about building only one
    table.The problem is we know we are losing some space
    but the thing is harddisk is much cheaper than RAM
    and CPU.So our trade off concerated on the storage
    cost.But I still wonder if there is a point that I
    have missed in terms performance?Just test your approach by using sufficiently data - only you know how many records you have to store in your modell.
    PS: it is not wise effective using generic object
    models also in object databases as CPU cost is a lot
    when u are holding the data.I don't know if I'd have taken your approach - using two database systems to hold data and business logic.
    PS2: RDBMS is a value based system where object
    databases are identity based.we are trying to be in
    the gray area of both worlds.Like I wrote: if your approach works and scales to the required size, why not? I would assume that you did a load test with your approach.
    What I would question though is that your discussing a "SIMPLE Database Design" problem. I don't see anything simple in your approach when it comes to implementation.
    C.

Maybe you are looking for