Problem with the examples of Transmitting and Receiving Custom RTP Payloads

I have tried the examples of this web:
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/CustomPayload.html
Transmitting and Receiving Custom RTP Payloads
I run the examples all right.
But I want to transmit the sound using my own format, so i want to change the file PcmPacketizer.java
and PcmDepacketizer.java
I think the sound data is in the byte[] inData ---- {byte[] inData = (byte[])inBuf.getData();}
so i change the data with my own function, so the inData have the diffrent length:
then i transmit the data with the packet header
public synchronized int process(Buffer inBuf, Buffer outBuf) {
int inLength = inBuf.getLength();
byte[] inData = (enbase((byte[])inBuf.getData()));
byte[] outData = (byte[])outBuf.getData();
     if (outData == null || outData.length < PACKET_SIZE) {
     outData = new byte[PACKET_SIZE];
     outBuf.setData(outData);
     // Generate the packet header.
     int rate = (int)inFormat.getSampleRate();
     int size = (int)inFormat.getSampleSizeInBits();
     int channels = (int)inFormat.getChannels();
     outData[0] = 0;     // filler
     outData[1] = (byte)((rate >> 16) & 0xff);
     outData[2] = (byte)((rate >> 8) & 0xff);
     outData[3] = (byte)(rate & 0xff);
     outData[4] = (byte)inFormat.getSampleSizeInBits();
     outData[5] = (byte)inFormat.getChannels();
     outData[6] = (byte)inFormat.getEndian();
     outData[7] = (byte)inFormat.getSigned();
     int frameSize = inFormat.getSampleSizeInBits() * inFormat.getChannels();
     // Recompute the output format if the input format has changed.
     // The crucial info is the frame rate and size. These are used
     // to compute the actual rate the data being sent.
     if (rate != (int)outFormat.getFrameRate() ||
     frameSize != outFormat.getFrameSizeInBits()) {
          outFormat = new AudioFormat(CUSTOM_PCM,
                    AudioFormat.NOT_SPECIFIED, // rate
                    AudioFormat.NOT_SPECIFIED, // size
                    AudioFormat.NOT_SPECIFIED, // channel
                    AudioFormat.NOT_SPECIFIED, // endian
                    AudioFormat.NOT_SPECIFIED, // signed
                    size * channels,     // frame size
                    rate,               // frame rate
                    null);
if (inLength + historyLength >= DATA_SIZE) {
     // Enough data for one packet.
               int copyFromHistory = Math.min(historyLength, DATA_SIZE);
               System.arraycopy(history, 0, outData, HDR_SIZE , copyFromHistory);
int remainingBytes = DATA_SIZE - copyFromHistory;
System.arraycopy(inData, inBuf.getOffset(),
               outData, copyFromHistory + HDR_SIZE, remainingBytes);
historyLength -= copyFromHistory;
inBuf.setOffset( inBuf.getOffset() + remainingBytes);
inBuf.setLength( inLength - remainingBytes);
     outBuf.setFormat(outFormat);
     outBuf.setLength(PACKET_SIZE);
     outBuf.setOffset(0);
return INPUT_BUFFER_NOT_CONSUMED ;
if (inBuf.isEOM()) { // last packet
System.arraycopy(history, 0, outData, HDR_SIZE, historyLength);
System.arraycopy(inData, inBuf.getOffset(),
               outData, historyLength + HDR_SIZE, inLength);
     outBuf.setFormat(outFormat);
     outBuf.setLength(inLength + historyLength + HDR_SIZE);
     outBuf.setOffset(0);
historyLength = 0;
return BUFFER_PROCESSED_OK;
// Not enough data for one packet. Save the remainder
     // for next time.
System.arraycopy(inData, inBuf.getOffset(),
               history, historyLength,inLength) ;
historyLength += inLength;
return OUTPUT_BUFFER_NOT_FILLED ;
I think I change the data use my own function debase(), so i should decode the data in the file:PcmDepacketizer.java
but int PcmDepacketizer.java the example is so simple that i don't know how to find and change the data.
there is only a few lines here:
Object outData = outBuf.getData();
     outBuf.setData(inBuf.getData());
     inBuf.setData(outData);
     outBuf.setLength(inBuf.getLength() - HDR_SIZE);
     outBuf.setOffset(inBuf.getOffset() + HDR_SIZE);
     System.out.println("the outBuf length is "+inBuf.getLength());
I write a function : public static byte [] debase(byte[] str)
but i don't know where can i use it.
please tell me what should i do or where is wrong about my thought.

the function in PcmPackettizer.java is
public static byte[] enbase(byte [] b) {
     ByteArrayOutputStream os = new ByteArrayOutputStream();
     //byte[] oo = new byte[(b.length + 2) / 3*4];
     //for (int i = 0; i < (b.length + 2) / 3; i++) {
     for (int i = 0; i < (b.length + 2) / 3; i++) {
          short [] s = new short[3];
          short [] t = new short[4];
          for (int j = 0; j < 3; j++) {
               if ((i * 3 + j) < b.length)
                    s[j] = (short) (b[i*3+j] & 0xFF);
               else
                    s[j] = -1;
          t[0] = (short) (s[0] >> 2);
          if (s[1] == -1)
               t[1] = (short) (((s[0] & 0x3) << 4));
          else
               t[1] = (short) (((s[0] & 0x3) << 4) + (s[1] >> 4));
          if (s[1] == -1)
               t[2] = t[3] = 64;
          else if (s[2] == -1) {
               t[2] = (short) (((s[1] & 0xF) << 2));
               t[3] = 64;
          else {
               t[2] = (short) (((s[1] & 0xF) << 2) + (s[2] >> 6));
               t[3] = (short) (s[2] & 0x3F);
          for (int j = 0; j < 4; j++)
               os.write(t[j]);
               //os.write(t[j],(3*i+j),1);
               //os.write(Base64.charAt(t[j]));
     //return new String(os.toByteArray());
     return os.toByteArray();
just like the base64 function

Similar Messages

  • The PyramidVille game in Facebook is not loading.I have no problems with the other games.I'm receiving the message" Forbidden 403" CSRF Verification failed.Request aborted. More information is available with Debug= True

    The PyramidVille game in Facebook is not loading.I have no problems with the other games.I'm receiving the message" Forbidden 403" CSRF Verification failed.Request aborted. More information is available with Debug= True edit

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    Is anyone having problems with the battery heating up and draining the power?  Mine has been doing this for about 2 months now.

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • Problem with the browse sequence back and browse sequence next widget placed in the screen layout

    Hi,
    Some basics: We are using Robohelp 10 to  generate multiscreen  html5 output. We used the pharmaceutical  screen layout downloaded from:  http://helpx.adobe.com/robohelp/robohelp-screen-profiles-layouts.html but modified it to match our GUI.
    We are having a problem with the browse sequence back and browse sequence next buttons placed in the screen layout from the widgets tool bar. We are in no way experts at this part of Robohelp...and the css portion of all this is a bit of mystery but we have managed to get mostly what we need. Now we just need these buttons to work. In the past we used Airhelp and things worked great. Can anyone help us understand why the sequence buttons are not showing up in the output even though it does in the topic preview?
    Also
    This shows up in the  layout.css file:
    a.wBSBackButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSBackButton {
                    border: none;
    a.wBSNextButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSNextButton {
                    border: none;
    Also btw, I forgot to mention that we are linking our FrameMaker files.
    Appreciate the help.
    Thanks!

    hi pradeep
    It does not happen but if you Wait for a while that may be solved

  • I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I c

    I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I can do to repair it

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • Help solve the problem, with the lifting of purchasing and payment card is locked, and now I can not pay for her purchases in the app store

    help solve the problem, with the lifting of purchasing and payment card is locked, and now I can not pay for her purchases in the app store

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • Is anyone having problems with the battery drains quickly and the iphone4 heats up in use and in charging after upgrading to 5.1.1?

    Is anyone having problems with the battery drains quickly and the iphone4 heats up in use and in charging after upgrading to 5.1.1?

    I have had the same problem but I seem to be getting somewhere to fixing it!!! My battery was going down at 20% an an hour now its 10% with constant use and 5 in standby !!! So improvement all round
    First I did a restore then I drained the battery i started to charge it and when it came on I turned the phone off completely and let it charge to 100% I then left it for a couple of hours on charge at 100. I saw no improvement after 1st drain so I repeated the drain battery and charge steps again with the phone turned off when charging and have seen a very big improvement. I am going to do it again tonight and hopefully problem solved!!!!
    The next issue is iMessage as that's playing up and wifi drop out
    Good luck

  • Problems with the examples in NWDS

    Hi All,
    Running the Welcome example project in NWDS i  have the included error.
    I have problems with other examples too.
    I did all the step by step tutorials.
    I have NWDS 2.0.3
             J2EE 6.40 SP15
             EP 2004
    I am new in NWDS and i have not still successed to run any application.
    What is wrong with my systems?
    I did all the configurations start J2EE /sdm etc.
    Do i have to install other versions? I read that maybe i have to install the same SP 15.
    Please if anybody can help me .
    Thanks,
    Ari 
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.sal.deployment.api.WDClassLoaderException: Classloader of 'local/Welcome' is null, even though application is started.
    at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DeployableObject.getClassLoader(DeployableObject.java:81)
    at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:588)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
    at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
    ... 18 more
    Ari

    Thank you for your help,
    I have NWDS 2.0.3 and Web AS 6.40 SP15 and EP 04.
    How can i be sure if  are compatible? Maybe i have to install NWDS SP15?
    I did "Rebuild" and then  "Deploy new archive and run" Deploying i was asking for the sdm password  , then the application opened in a new browser and we can see this message below.
    The Deploy Output View is empty. There is no eny successful deploy message.
    I appreciate your help.
    Thanks,
    Ari
    500   Internal Server Error
      Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator.
    [Details...]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.InstantiationError: com.sap.tc.webdynpro.progmodel.context.NodeInfo
        at com.sap.examples.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:41)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        ... 27 more
    See full exception chain for details.
    Correction Hints
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
    Note: the above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    Version 
    DOM version 
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, Build ID: 6.4015.00.0000.20051123162612.0000 (release=630_VAL_REL, buildtime=2005-12-14:21:51:22[UTC], changelist=377533, host=PWDFM026)
    J2EE Engine No information available
    Java VM Java HotSpot(TM) Server VM, version:1.4.2_07-b05, vendor: Sun Microsystems Inc.
    Operating system Windows 2003, version: 5.2, architecture: x86
    Other
    Session Locale en_US
    Time of Failure Fri Jan 26 14:29:31 EET 2007 (Java Time: 1169814571353)
    Web Dynpro Code Generation Infos
    local/Welcome
    No information available
    sap.com/tcwddispwda
    No information available
    sap.com/tcwdcorecomp
    No information available
    Detailed Error Information
    Detailed Exception Chain
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.sap.examples.welcome.WelcomeComponent. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:38)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doInit(ClientComponent.java:776)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:370)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:608)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         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: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
         ... 26 more
    Caused by: java.lang.InstantiationError: com.sap.tc.webdynpro.progmodel.context.NodeInfo
         at com.sap.examples.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:41)
         ... 31 more

  • HT4113 anyone else have a problem with the iphone 4s locking and not able to unlock even though you keep entering the only code that you have used?

    Anyone else having a problem with the iphone4s locking and not letting you in even though you keep using the only code you have entered from the begginning?

    No. You are the first person out of 900 million users to have this problem.

  • Problem with the connection wi fi and bluetooth

    I can not activate the box for "wi fi" and the box "bluetooth" in my device, when I activate the "check" my device removes it…
    My device is 9800 torch…can you tell me why is the problem..??
    Can send me a answer to my e mail [personal information removed] Thanks

    Try this -
    When you device is POWERED ON, remove the battery for a minute, and then reinsert the battery. This make a reboot to your device which resolves minor issues with the BlackBerry device.
    And then try connecting Wi-Fi or Bluetooth.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Still problems with the Ipod Nano 3g and the Nike+ kit??

    I thinking about buying an Ipod Nano and the Nike+ kit tomorrow but now I'm a bit unsure due to some of the problems mentioned here in this forum? Do you still have problems with the commuication between the Nano and the sensor? Are there still problems wtih the distance being wrong or only in km? Should I buy - if possible - a Ipod Nano 2G?
    Regards
    Morten

    Personally I am very happy with my new iPod Nano. It works great with Nike Plus and I love the video and some of the cool features like stopwatch and more. I have an earlier iPod Nano and I was hesitant to buy the new one but I am so glad I did. I don't have any problems uploading data.

  • Reading TDMS files in Matlab - problems with the example code

    I want to use the TDMS files to store data and do offline analysis in Matlab, version 2009b (either on Mac OS10.6 or Windows XP).
    To test the data import in Matlab I tried the example from http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2 , but without success.
    I tried either with and without the path definition (as explained on the page I referred to before) at the start, and got back the following errors:
    with:
    ??? Error using ==> loadlibrary>deltempfiles at 559
    nilibddc_m.i.
    Error in ==> loadlibrary at 452
        deltempfiles(delfiles);
    Error in ==> Read_TDMData at 7loadlibrary([examplePath '\nilibddc'], hfile);
    without: 
    ??? Error using ==> loadlibrary>deltempfiles at 559
    nilibddc_m.i.
    Error in ==> loadlibrary at 452
        deltempfiles(delfiles);
    Error in ==> Read_TDMData at 36loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path); 
    I found a few messages on the issue, dating from 2006 and 2007, that didn't lead to a satisfying solution and was hoping that, by now, there would be a solution to my problem.
    Thanks a lot
    Remco   
    Solved!
    Go to Solution.

    Hi Musk,
    Thanks for your answer. 
    Unfortunately it didn't help as my problem is not discussed there. I have a problem with this line:
    loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);
    I said before that I was using 2009b, but I was mistaken, I have R2008a, but the 'loadlibrary' is opened in a 2008b editor (no idea why). On the Mac I have 2009b installed.
    Thanks
    Remco 

  • Java EE Tutorial - problem with the example Bookstore

    Hi,
    I've been working few days on a problem running the Bookstore example from the Java EE Tutorial. When I run the application, I'm redirected from the servlet BookStoreServlet to errorpage.html with the following message: The application is unavailable. Please try later. The tutorial troubleshooting reads: ... a servlet can’t retrieve the web context attribute representing the bookstore. This will occur if the database server hasn’t been started. But the database server is running (I'm running Derby bundled into NetBeans 6.5). The Glassfish admin console reads:
    StandardWrapperValve[BookStoreServlet]: PWC1406: Servlet.service() for servlet BookStoreServlet threw exception
    com.sun.bookstore.exception.BookNotFoundException: Couldn't find book: 203
            at com.sun.bookstore1.database.BookDBAO.getBook(BookDBAO.java:58)
            at com.sun.bookstore1.servlets.BookStoreServlet.doGet(BookStoreServlet.java:76)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at com.sun.bookstore1.filters.HitCounterFilter.doFilter(HitCounterFilter.java:71)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)This would indicate that the tables are empty, but they were created according to the tutorial, with the command ant create-tables, and I can see their content in NetBeans. Please help, I really need to run the examples.
    Best regards,
    Rene Puchinger

    I solved the problem running the command that is correctly explained in the page 97 of the tutorial:
    Ant create-tables
    My mistake was that until that day, I was believing that I could do everything inside Netbeans.
    For this you explicitly need to use ant.
    Then I got some error which I solved fixing the file
    C:\Java\JavaEETutorial5\examples\bp-project\ build.properties
    ( like set correctly the path to the server and so on)

  • Two problem with the DNS (hostname order and slow internal DNS)

    Hi,
    First I'm sorry for my english,... So I've two questions which I cannot solve by myself.
    1/ I configured two DNS as primary on my Xserve one .com and one .ch. For the same name : example.com and example.ch. I defined a mail server, my second Xserve.
    If only my example.ch is configured on my DNS server my hostname is mail.example.ch, working fine with my specific MySQL software. But if I add the example.com to my DNS Server, my hostname is changed to mail.example.com !
    And that I do not want ! I need to keep my mail.example.ch. How can I fix my hostname to the .ch ?
    2/We have an Xserve with two Ethernet cards (for the NAT) and we have a DNS server on this computer. When I use the Xserve for DNS Server on the remote computer network preferences the internet is working but very slow to resolve the DNS. I think the problem is from the catching DNS system, but how I can disable that or speed up my internet connection ?
    Regards,
    Florent

    Thanks but my DNS is working fine now. My last
    problem is my hostname.
    Have a look in /etc/hostconfig. HOSTNAME defaults to -AUTOMATIC- which resolves by firstly trying reverse lookup on its IP - the first return from this will be adopted. If you have 2 PTR records for the IP then it may be resolving to the 'wrong' one. If this is the case then you could either...
    1. Remove one of the PTR records, or
    2. Edit /etc/hostconfig, replacing with HOSTNAME=mail.example.ch
    -david

Maybe you are looking for