Cann't run the examples in dir "webapps\standard-examples\xml" of jstl1.1.2

i'm learning jstl.
fisrtly i downloaded the jstl1.1.2 zip file and upziped it, then i put the standard-examples.war file to the webapps dir of tomcat5.5 to run the examples.
now i could run some of those examples, but strangely i could not run the example of the directory of "standard-examples\xml". if i try to run, an error as follows will emerg:
javax.servlet.ServletException: org/apache/xpath/VariableStack
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.xml.Parse_jsp._jspService(org.apache.jsp.xml.Parse_jsp:90)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NoClassDefFoundError: org/apache/xpath/VariableStack
org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(ExprSupport.java:63)
org.apache.jsp.xml.Parse_jsp._jspx_meth_x_out_0(org.apache.jsp.xml.Parse_jsp:168)
org.apache.jsp.xml.Parse_jsp._jspService(org.apache.jsp.xml.Parse_jsp:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Could anyone give me some advices to deal with this problem? Thanks

LOL.... i ran into the same problem with Tomcat 5.5... it's quite an idiotic problem cuz like you gotta hunt everywhere to figure out why it don't work... reason is cuz those brainchildren at Apache.org who make Tomcat also make the missing Jar file but forgot to include it with Tomcat... duh... :-p
any way... visit this site... http://xml.apache.org/xalan-j/
download the zip file and extract it (follow the instructions)
you only need to copy the xalan.jar file to your Tomcat 5.5's <installpath>\common\lib folder...
then that problem will be fixed...
have fun... :-p
- MaxxDmg...
- ' He who never sleeps... '

Similar Messages

  • Is anyone know how to run the examples in 3d user interfaces with java 3d

    hi dear ,
    I am trying to run the examples in 3d user interfaces with java 3d.
    I hope i can load the library in jcreator. but the libarary for this book are classes files , it do not have jar file for it . the jcreator do not read these classes . i do not know why ? i am wonder if there any one run these code before can give me some idear .
    thanks so much .
    the code u can get from this link.
    http://www.manning.com/books/barrilleaux/source
    thank you for u to have a look for me .
    regards
    xiaocui

    <h2>{color:red}CROSS POSTED{color}</h2>
    [t-5289810]
    Cross posting is rude.
    db

  • Run the example of ejb tutorial ...

    When I run the example of "Enterprise JavaBeansTM Tutorial:
    Building Your First Stateless Session Bean"--DemoClient,(Weblogic server 6.0,
    win 2000) ,I met a probelm.
    Following is the error information:
    C:\bea\wlserver6.0\CLASSES>java -Djava.naming.factory.initial=weblogic.jndi.Teng
    ahInitialContextFactory -Djava.naming.provider.url=t3://localhost:7001 ejb.demo.
    DemoClient
    begin DemoClient...
    => Error <=
    javax.naming.NoInitialContextException: Cannot instantiate class: weglogic.jndi.
    T3InitialContextFactory. Root exception is java.lang.ClassNotFoundException: we
    glogic.jndi.T3InitialContextFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:195)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
    a:45)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    55)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at ejb.demo.DemoClient.getInitialContext(DemoClient.java:58)
    at ejb.demo.DemoClient.main(DemoClient.java:15)
    End DemoClient...
    Any guidance will be appreciated!
    Thanks, Yu

    I managed to fix my problem, hopefully thissolution
    will help you as well.
    I discovered that the following entries arerequired
    in the jndi.properties file in order to lookupEJB's
    using JNDI from a client application:
    java.naming.factory.initial=com.sun.jndi.cosnaming.CNCt
    Factory
    java.naming.provider.url=iiop://localhost:1050
    Note that my environment uses the j2ee server fromSUN
    running on the localhost on port 1050.
    If you can locate the proper settings for theweblogic
    server, then you can try this solution on for size.
    One quick question: When I try to run my client
    against the Ref. Implementation like this:
    java -Dorg.omg.CORBA.ORBInitialHost=localhost
    -Dorg.omg.CORBA.ORBInitialPort=1050
    -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CN
    txFactory
    -Djava.naming.provider.url=iiop://localhost:1050
    com.sld.role.ValidationClient
    I get the following error:
    javax.naming.NamingException: java:comp/env namespace
    is only available from within a J2EE component.
    This stinks. All I can find out is that Sun wants you
    to use runclient, which is silly. My client is trying
    to resolve the JNDI name:
    "java:comp/env/ejb/ValidationSessionBean"
    Any idea why this isn't working?
    Thanks....
    -ScottGot it working. Here's how:
    In the client's CLASSPATH I have three things: j2ee.jar, the client jar file generated by the server during deployment, and my client class files. I took out all of the -D stuff above and it still works. (With or without it.) I haven't tried it from another machine yet - I may need them for that.
    The client uses the JNDI name "ValidationSessionBean", not "java:comp/env/ejb/ValidationSessionBean" and it now can bind to it.
    I wish Sun would have given out this kind of info with their J2EE tutorial, instead of just pushing their runclient script, which uses their own client class.
    -Scott

  • I get errors When running the example programs SampleMetadataDiscoverer10g

    I installed database is 10g release 2 on Windows XP,and AWM version is 102010A.
    When running the example programs SampleMetadataDiscoverer10g.java to get the OLAP metadata,I get the following errors:
    oracle.express.idl.util.OlapiException: java.sql.SQLException: ORA-37158: CLOB &#25110;&#21487;&#21464;&#25968;&#32452;&#36755;&#20837;&#21442;&#25968;&#38169;&#35823;: (&#24773;&#24418; 6)
    ORA-06512: &#22312; "SYS.GENSERVERINTERFACE", line 46
    ORA-06512: &#22312; line 1
    at oracle.express.idl.ExpressConnectionModule.ServerInterfaceStub.connect(ServerInterfaceStub.java:694)
    at oracle.express.olapi.data.full.ExpressDataProvider.connect(ExpressDataProvider.java:436)
    at oracle.express.olapi.data.full.ExpressDataProvider.initialize(ExpressDataProvider.java:282)
    at oracle.olapi.examples.chapter4.MyConnection10g.connectToDB(MyConnection10g.java:126)
    at oracle.olapi.examples.chapter4.SampleMetadataDiscoverer10g.initialize(SampleMetadataDiscoverer10g.java:57)
    at oracle.olapi.examples.BaseExample.execute(BaseExample.java:32)
    at oracle.olapi.examples.BaseExample.execute(BaseExample.java:46)
    at oracle.olapi.examples.chapter4.SampleMetadataDiscoverer10g.main(SampleMetadataDiscoverer10g.java:44)
    Closing JDBC connection.
    Closed the connection.
    please..can someone give me some advice? thanks!

    I got the same error while doing "dp.initialize()"
    I fixed this error by chang the the "olap_api.jar class12.jar" to "o4j.jar".
    But i can't explain that.
    Can anyone tell me why?
    By the way , the "olap_api.jar class12.jar" are copy from the %ORACLE_HOME%\10.2.0\db_1\olap\api\lib .

  • How can i run the example programme without hardware

    Hi,
         We are using NI-9233 for our Project. We would like to run the example programme, the NI-9233 getting started(host).vi ... I would like to ask that how can i run the Programme without Hardware.& How shall i get the input signal (simulating signal)?because we would like to test it while we are waiting for the hardware to be delivered . 
    thanks
    Best regards

    As Mike indicated , " you can use MAX to simulate some (not all) DAQmx devices. There's a NI-USB-9233 device that you can probably use. Open MAX, then expand "My System", the expand "Devices and Interfaces", then right-click on "NI-DAQmx Devices" and select "Create New NI-DAQmx Device -> NI-DAQmx Simulated Device". Select the device from the list. See the online help for MAX for further help.
    If you don't see "NI-DAQmx Devices" in MAX you need to install NI-DAQmx. You can download it from NI here. "
    hi,
         the link you gave me to download is "NI-DAQmx Devices" ... There is no software to download for Labview 8.2.1. So should i use 8.1 or 8.3 instead of 8.2.1 ? If not, can you tell me the CD no. that includes the "NI-DAQmx Devices" folder of Labview 8.2.1 version? Because we can get the cd from our school's component store. Thank you so much.
    Best Regards,
    Su

  • Trying to run the example "rf record and playback reference application"

    http://zone.ni.com/devzone/cda/epd/p/id/5894   trying to run this example but a lot of files are not being found.  I'm using Labview 8.5 with version 4 of the sound and vibration toolkit.  I suspect the problem is the old toolkit version.  Can someone confirm? Can't find any info on upgrading to toolkit so I suppose it would mean a new purchase?  thanks

    Hello Mike,
    This example is designed for our RF Hardware platform.  You need the RFSG driver, RFSA driver, Spectral Measurements Toolkit, Modulation Toolkit, and the advanced signal processing toolkit for the example to run.  You should be able to see this under the software requirements at the bottom of the page.  The two drivers should be available for download on our website, but the toolkits must be purchased and they aren't generally available with the dev suite.
    I hope this helps,
    Paul C
    Message Edited by Paul C. on 03-11-2010 12:28 PM

  • How can I run the examples?

    I need make any test about WebLogic, I have WebLogic Server in Solaris 2.6.
    Thanks in advancing.

    Well,
    I do not know about Solaris, but for the Windows you have a pritty good explanation
    HTML-files for each example.
    So if you want to run for example the WebServices-example, you will look for the
    HTML-File under C:\bea\samples\examples\webservices\rpc Folder.
    I guess it is very the same on Solaris
    good luck
    naz

  • Helpme, I can run the example of statefulSession ejb Client that bring by weblogic5.1

    hello
    i have setup a weblogic5.1 on linux redhat 6.2
    jdk1.3
    the jsp
    and servlt
    can run well
    but the ejb example statefulSession and statelessSession
    client can't run
    i have deploy the ejb in file weblogic.properitys
    that i remove the "#" from some rows that deployed the examples ejb
    and i can see the ejb is loaded well on the weblogic console
    the error messages:
    Exception in thread "main"
    java.lang.NoClassDefFoundError:javax/ejb/EJBObject
    I rn the client like follow:
    java -Djava.naming.factory.initial=weblogic.jndi.TengahInitialContextFactory
    -Djava.naming.provider.url=t3://localhost:7001 (or port 80,null)
    examples.ejb.basic.statelessSession.Client
    or
    java examples.ejb.basic.statefulSession.Client "t3://localhost:7001(or
    80,null)" scott tiger
    can you contact me
    [email protected]
    i 'll than you very much

    At least for WebLogic Server, there's no internal classification of an EJB as being of a specific "version".
    You'll need to work from the descriptors and your view of the application to work through it.
    -steve-

  • Errors found when running the example of "Five XSLT 2.0 Features ..."

    Does anyone encounter the error "XSL-1015: (Error) Function 'current-group' not found" when running Oraxsl grouping_20.xsl?
    Despite I followed exactly what memtioned in the article, it still did not work.
    Thank you very much.

    Before running the samples, I downloaded the Oracle XDK 10G via http://otn.oracle.com/tech/xml/xdkhome.html
    just a week ago.
    So, I believe I got the most up-to-dated version of XMLparserv2.jar.
    I spent a day or 2, trying to execute some samples in the article, but things did not work out well. Whenever a stylesheet file (*.xsl) contains "current-group()" functions, it raises the above error.

  • Not able to run the example given

    Hi All, I just started with J2ME. Tried to run the sample program given in the sun site. The programs are FirstMIDlet.java and HelloMIDlet.java. I've followed the instructions given @ the location 'http://developers.sun.com/techtopics/mobility/midp/articles/setup/#compile'. This page shows how to make the program run. But I couldnt get the color menu out put, coz there is no run.jad file existing in my comp. I didnt understand from where the file should i get and while explaining abt the HelloMIDlet program till jar creation everything went well after creading jar, jad file is been used to execute the program. I didnt understand from where the jad has come. I tried executing the jar file instead, this is the error am getting 'java.io.UTFDataFormatException: invalid first byte 10100000'. Can some help in this. Do I need to do anymore settings ? I think it requires a descriptor file also as well, but not mentioned how to prepare it and where to keep it and how to include in the jar etc...

    Hello. Have you ever tried to download Sun ONE Studio 4 update 1 Mobile Edition it is small, user-friendly and FREE. It is not perfect, but it will work

  • Problems with Running the Examples in J2ee tutorial-asant utility

    Hello,
    I am just working on the examples given in the J2EE tutorials given by SUN.
    When trying to build the examples using the asant utility,I encounter an error message saying
    "BUILD FAILED"
    and it says some error with the build.xml file (C:\lib not found)
    I think i have all my CLASSPATH settings and PATH setting right.Can anyone suggets me a solution to this problem,so that i can go ahead with the details.
    Thanks
    Sandeep

    did you set the build.properties settings properly ?

  • Running the BO servers on non standard ports XIR2

    Hi all,
    I need to know how to get the bo servers to register with the cms when it is running on a non-standard port. The port I'm using is 6409, so I have tried adding -port 6409 to the command line string, but that didn't work.
    I'm running two instanceson BO on the box hence the need for non standard ports.
    Any thoughts?
    TIA,
    Jeff

    -port switch is the correct way to accomplish this.
    So your CMS will have -port 6409, the rest of servers will have -ns cmsname:6409 in their comand line.
    You might want to look at adding -requestport switches as well....
    Please review Admin guide for more details on usage of those switches.

  • Error trying to run the HelloMidlet.java in Java(TM) ME Platform SDK 3.0

    Hi!
    I can not run the example-midlet. I get this error:
    pre-init:
    pre-load-properties:
    exists.config.active:
    exists.netbeans.user:
    exists.user.properties.file:
    load-properties:
    exists.platform.active:
    exists.platform.configuration:
    exists.platform.profile:
    basic-init:
    cldc-pre-init:
    cldc-init:
    cdc-init:
    bdj-init:
    post-init:
    init:
    conditional-clean-init:
    conditional-clean:
    pre-clean:
    clean-timestamp:
    clean-preprocessed:
    clean-classes:
    Deleting directory C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\compiled
    clean-obfuscated:
    clean-preverified:
    Deleting directory C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\preverifysrc
    Deleting directory C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\preverified
    clean-manifest:
    Deleting: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\manifest.mf
    clean-jar:
    Deleting: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\MobileApplication1.jar
    clean-jad:
    Deleting: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\MobileApplication1.jad
    clean-javadoc:
    clean-j9:
    Deleting: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\convert1661546129
    Deleting directory C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build
    Deleting directory C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist
    post-clean:
    do-clean:
    deps-jar:
    pre-preprocess:
    do-preprocess:
    post-preprocess:
    preprocess:
    pre-compile:
    extract-libs:
    Created dir: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\compiled
    do-compile:
    Compiling 1 source file to C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\compiled
    post-compile:
    compile:
    post-obfuscate:
    obfuscate:
    pre-obfuscate:
    proguard-init:
    skip-obfuscation:
    proguard:
    lwuit-build:
    pre-preverify:
    do-preverify:
    Created dir: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\preverifysrc
    Copying 1 file to C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\preverifysrc
    Created dir: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\preverified
    Preverifying 1 file(s) into C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\build\preverified directory.
    post-preverify:
    preverify:
    pre-jar:
    set-password-init:
    set-keystore-password:
    set-alias-password:
    set-password:
    create-jad:
    Created dir: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist
    add-configuration:
    add-profile:
    do-extra-libs:
    Created dir: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\lib
    jad-jsr211-properties:
    do-jar:
    Building jar: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\MobileApplication1.jar
    do-jar-no-manifest:
    bdj-build-image:
    update-jad:
    Updating application descriptor: C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\MobileApplication1.jad
    Generated "C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\MobileApplication1.jar" is 1423 bytes.
    post-jar:
    jar:
    pre-run:
    netmon.check:
    open-netmon:
    cldc-run:
    Copying 1 file to C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\nbrun4923931937783686685
    Copying 1 file to C:\Documents and Settings\Ander\My Documents\JavaMESDKProjects\MobileApplication1\dist\nbrun4923931937783686685
    Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/Documents+and+Settings/Ander/My+Documents/JavaMESDKProjects/MobileApplication1/dist//MobileApplication1.jad
    Starting emulator in execution mode
    *** Error ***
    Failed to connect to device 0!
    Reason:
    Device 0 not available!
    bdj-run:
    cdc-run:
    profiler.check:
    open-profiler:
    run:
    BUILD SUCCESSFUL (total time: 6 seconds)
    I have attempted with other devices and the error is the same Failed to connect to device "X"! Reason: Device "X" not available!.
    I have:
    1. Restarted the system, not works.
    2. Re-install all the sdk, not works.
    3. Deleting C:\Documents and Settings\Ander\javame-sdk and restarting the SDK, not works.
    4. Shutdown the firewall, antivirus, etc... not works.
    I become exasperated, i do not know how to do to solve this situation... could you help me? i am really desperate. Thank you very much for your help, and sorry for my english grammar!!
    thank you very much

    Note: This thread was originally posted in the [Sun Java Wireless Toolkit|http://forums.sun.com/forum.jspa?forumID=82] forum, but moved to this forum for closer topic alignment.

  • Error while running the sample program in Oracle CEP

    Hi I am New to CEP. I have installed Oracle CEP 11g. I am trying to run the example available in sample folder. I am getting the below error.
    Exception in thread "Main Thread" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.wlevs.Server.main(Server.java:185)
    Caused by: java.lang.IllegalArgumentException: Bundle <file:/D:/bea/modules/com.bea.core.apache.commons.logging.api_1.1.0.jar> has no known start level label
         at com.bea.backplane.launcher.Launcher.getStartLevelLabelFromJarLabel(Launcher.java:1663)
         at com.bea.backplane.launcher.Launcher.updateStartLevelViaJarLabel(Launcher.java:1714)
         at com.bea.backplane.launcher.Launcher.adjustStartLevel(Launcher.java:1625)
         at com.bea.backplane.launcher.Launcher.prepareConfig(Launcher.java:1169)
         at com.bea.backplane.launcher.Launcher.run(Launcher.java:539)
         at com.bea.backplane.launcher.Launcher.main(Launcher.java:149)
         ... 5 more
    Please let me know the reason for getting the error.

    I'm gussing you installed OCEP in an existing ORACLE_HOME. You should create a new home otherwise the modules may conflict with other products.
    andy

  • 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

Maybe you are looking for

  • Error: 2330. Error getting file attributes: C:\Program Files (x86)\adobe\reader 9.0\reader\amt. GetL

    Hi! I got this error while trying to uninstall my Adobe Reader MUI 9.5.4.: "Error: 2330. Error getting file attributes: C:\Program Files (x86)\adobe\reader 9.0\reader\amt. GetLastError: 117". The message pops after a long long while. I have to remove

  • Boris Title 3D in FCP

    Hello, I am trying to type in about a paragraph of text into the 3d Title in FCP3. Is there a limit to how much text you can put in there. Once I am back on the timeline I get the beach ball any time I click on that title. Can't resize etc.., I have

  • Diadem 9.1 SP2 and older versions of Diadem

    The instructions for installation of Service Pack 2 (german) contains: "Uninstall earlier DIAdem versions before you install DIAdem Service Pack 2. Do not install DIAdem in a folder where an earlier DIAdem version is installed." I have to use several

  • InDesign CS5 Crashes when inserting pages

    I'm using InDesign CS5 here, and it is crashing almost every time when I try to create a new page. Either by the pages panel, or the layout menu. I doesn't matter if I try to inser a singe page or multiple pages or if it's in the middle or the end of

  • My website loses all artistic attributes on other computers. Please help.

    hello everyone, i have two questions really. The first one is how to fix the loss of all colors and sidebars and everything. The website i am designing is www.troyhighkeyclub.webs.com the website looks really nice on my computer. I mean when i type i