Problem with retiriving links froma web page

hi friends,
ca n anyone help me out.i am trying to retrieve all the links from a web page .but all the linkjs are not being retrieved.can anyone tell me why.
here i am submitting the code of it.
private static ArrayList retrieveLinks(URL pageUrl, String pageContents, HashSet crawledList,boolean limitHost)
// Compile link matching pattern.
Pattern p = Pattern.compile("<a\\s+href\\s*=\\s*\"?(.*?)[\"|>]", Pattern.CASE_INSENSITIVE );
Matcher m = p.matcher(pageContents);
// Create list of link matches.
ArrayList linkList = new ArrayList();
while (m.find()) {
String link = m.group(1).trim();
// Skip empty links.
if (link.length() < 1) {
continue;
// Skip links that are just page anchors.
if (link.charAt(0) == '#') {
continue;
// Skip mailto links.
if (link.indexOf("mailto:") != -1) {
continue;
// Skip JavaScript links.
if (link.toLowerCase().indexOf("javascript") != -1) {
continue;
// Prefix absolute and relative URLs if necessary.
if (link.indexOf("://") == -1) {
// Handle absolute URLs.
if (link.charAt(0) == '/') {
link = "http://" + pageUrl.getHost() + link;
// Handle relative URLs.
} else {
String file = pageUrl.getFile();
if (file.indexOf('/') == -1) {
link = "http://" + pageUrl.getHost() + "/" + link;
} else {
String path =
file.substring(0, file.lastIndexOf('/') + 1);
link = "http://" + pageUrl.getHost() + path + link;
// Remove anchors from link.
int index = link.indexOf('#');
if (index != -1) {
link = link.substring(0, index);
// Remove leading "www" from URL's host if present.
link = removeWwwFromUrl(link);
// Verify link and skip if invalid.
URL verifiedLink = verifyUrl(link);
if (verifiedLink == null) {
continue;
/* If specified, limit links to those
having the same host as the start URL. */
if (limitHost && !pageUrl.getHost().toLowerCase().equals(verifiedLink.getHost().toLowerCase()))
System.out.println("the given link does not exist");
continue;
// Skip link if it has already been crawled.
if (crawledList.contains(link)) {
continue;
// Add link to list.
linkList.add(link);
return (linkList);
Hope some one can help me outr of this .i susupect some problem with the regular expression used.
it is unable to parse links like
http://www.cricinfo.com/ci/engine/current/match/scores/live.html
http://www.cricinfo.com/nzvind2009/content/current/series/366616.html

kathiksagar wrote:
i dont have much idea about html parser
can u tell me how to do itHere are a couple of free parser written in Java:
[http://java-source.net/open-source/html-parsers]
I'm sure many of them have a manual, and/or have example code on their website on how to use it.
Good luck.

Similar Messages

  • Problem with return link from html page back to css page

    Here is the site..almost ready for publication
    http://www.matriley.com/glensite/index.html
    1) Go to properties for sale
    2)Choose a suberb
    3)click on a property with a video
    4) watch the crazy video if you like
    5) Click go back to properties
    ^) Yes the page is there but the property page is now
    inactive...why?
    8)The whole thing works fine on Firefox but we do have this
    Glitch on IE
    PLEAASSE Can someone help
    Regards Matthew [email protected]
    Everything works well but for the problem return link to the
    properties page after you have gone to the video.The property page
    becomes inactive

    Your page is a monster -
    Empty Cache
    10.6K 1 HTML/Text
    1.5K 1 Stylesheet File
    985.4K 25 Images
    997.7K Total size
    27 HTTP requests
    25 images with aggregate weight of ~1MB is much too large,
    you know?
    Anyhow, I cannot reproduce your problem in IE7. Are you
    referring to IE6,
    instead?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "fredbillmatt" <[email protected]> wrote in
    message
    news:fv0m9k$a7a$[email protected]..
    > Here is the site..almost ready for publication
    >
    http://www.matriley.com/glensite/index.html
    >
    > 1) Go to properties for sale
    > 2)Choose a suberb
    > 3)click on a property with a video
    > 4) watch the crazy video if you like
    > 5) Click go back to properties
    > ^) Yes the page is there but the property page is now
    inactive...why?
    > 8)The whole thing works fine on Firefox but we do have
    this Glitch on IE
    > PLEAASSE Can someone help
    > Regards Matthew [email protected]
    > Everything works well but for the problem return link to
    the properties
    > page
    > after you have gone to the video.The property page
    becomes inactive
    >

  • Firefox is my default browser, however i am not thinking of switching because it is having problems with button links on web pages, when i click a button it brings me to a white page on mozilla

    an example of a page gone wrong...
    http://ops.theladders.com/job/alert?et_id=1884492595&cr=2546606&alert=4675965?sign=y&thumbingJobList=2546229,2546638,2545219,2546565,2545967,2546784,2546606,2546513,2549099,2550891&link_id=176
    this is a link to a job site however it is impossible to get to it because when you hit apply in foxfire it brings up a blank screen (i can't give you the address because it just brings up a box without an address screen)
    it should bring up this link http://ops.theladders.com/viewExternalJob?jobId=2546606

    Have you submitted the hint button issue to the site for comment?
    It is hard to debug script problems without access to the page... If you want to research it yourself, start by opening the Error Console (Tools menu) and clicking the Clear button. Then reload the page and check the Console for any errors (red icon). These can indicate when scripts are not loading correctly. Then try to click the hint button and see whether that triggers any additional errors.
    The error messages generally are most useful to the page's programmer, but sometimes can reveal enough information to create a user solution (e.g., running a script through the GreaseMonkey extension that repairs the problem).

  • Hi guys. i have some problem with a link from a pdf on-line,when i click on it,the page adds a "%" at the and of the link and says "page not found" because of it

    Hi guys. i have some problem with a link from a pdf on-line,when i click on it,the page adds a "%" at the and of the link and says "page not found" because of it.
    This happens only when a load my pdf file on my server, because if i click on the link when the file is on my iPad, the page opens without problem.
    Any help please?
    thanx

    the % sign is often used when there's a space in a name. HTML doesn't like spaces so it fills them with % or %20
    try, on the end of that link, see if there's a space built into the page or the link when the page was made
    On the web address you may be able to 'backspace' at the end and erase that space to get the address, but whomever made the page possibly put a mistake in the link

  • Problem with a link from a seeded page

    I know that there has to be something stupid I am doing wrong here, but I cannot figure it out. I am trying to link from a seeded page to a custom page of mine.
    Here is my link:
    OA.jsp?page=/oracle/apps/ar/cusstd/localizationExt/webui/AcctLocalizationsPG&CustAccountId={@CustAcctId}&TabName=Tax&PartyId={@PrtyId}
    Here is part of the seeded page which contains the fields want to use in my link:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile:~PROD:~PATH:~FILE &fullpath:~PROD:~PATH:~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath:~PROD:mds:directory -->
    <page xmlns:jrad="http://xmlns.oracle.com/jrad" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:ui="http://xmlns.oracle.com/uix/ui" version="10.1.3_798" xml:lang="en-US" xmlns:user="http://xmlns.oracle.com/jrad/user" xmlns="http://xmlns.oracle.com/jrad" file-version="$Header: AcctOviewPG.xml 120.36.12000000.2 2007/06/28 13:23:19 nproddut ship $">
    <content>
    <oa:pageLayout id="PageLayoutRN" windowTitle="Customer Account" title="Customer Account" amDefName="oracle.apps.ar.cusstd.acctoview.server.AcctOviewAM" controllerClass="oracle.apps.ar.cusstd.acctoview.webui.AcctOviewPageCO" helpTargetAppShortName="ar" helpTarget="arugctcrua">
    <ui:corporateBranding>
    <oa:image id="corporateBrandingImage" source="/OA_MEDIA/FNDSSCORP.gif"/>
    </ui:corporateBranding>
    <ui:contents>
    <oa:stackLayout id="MainRN">
    <ui:contents>
    <oa:defaultDoubleColumn id="CustInfoRow" text="Customer Information">
    <ui:contents>
    <oa:messageStyledText id="CustName" destination="OA.jsp?OAFunc=AR_CUS_OVR&amp;HzPuiPartyId={!PartyId}" required="no" prompt="Name" styleClass="OraDataText" viewName="ArCustInfoVO1" viewAttr="PartyName"/>
    <oa:messageStyledText id="CustType" required="no" prompt="Customer Type" styleClass="OraDataText" viewName="ArCustInfoVO1" viewAttr="PartyType"/>
    <oa:formValue id="PrtyId" rendered="false" prompt="Paryt Id" dataType="NUMBER" viewName="ArCustInfoVO1" viewAttr="PartyId"/>
    <oa:formValue id="CustAcctId" rendered="false" prompt="Customer Account ID" viewName="ArCustInfoVO1" viewAttr="CustAccountId" dataType="NUMBER"/>
    <oa:formValue id="CustAcctProfileId" rendered="false" prompt="Customer Account Profile ID" viewName="ArCustInfoVO1" viewAttr="CustAccountProfileId" dataType="NUMBER"/>
    <oa:formValue id="AcctNum" rendered="false" prompt="Account Number" viewName="ArCustInfoVO1" viewAttr="AccountNumber"/>
    <oa:messageStyledText id="RegId" dataType="NUMBER" required="no" prompt="Registry ID" styleClass="OraDataText" viewName="ArCustInfoVO1" viewAttr="PartyNumber"/>
    <oa:messageStyledText id="Classfctn" prompt="Classification" styleClass="OraDataText" viewName="ArCustInfoVO1" viewAttr="CategoryCode" rendered="false"/>
    </ui:contents>
    </oa:defaultDoubleColumn>
    </ui:contents>
    </oa:stackLayout>
    I have tried using (@PartyId} , {@PrtyId} and ={@ArCustInfoVO1.PartyId} and all just get me "" as a value in my controller.
    What am I doing wrong here?
    Thanks,
    Greg

    Hi all -
    I'm quite stuck in a (somewhat) similar situation. We have a personalized page containing a link whose URL includes a variable ({@PersonId}). I modified the URL - big mistake - since there is no such variable as {@UserName}. Now when I try to navigate to the personalized page, it doesn't load at all - just returns an error page (the first line of which is this: oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25058: Definition UserName of type Attribute not found in EmployeeDetailsVO). I wouldn't have thought that a non-SYSADMIN user could break a page for all other users, but so it goes.
    Does anyone know how I might correct this problem? I figure there's someplace to change the URL and get rid of the ill-fated {@UserName} but darned if I know where or how.
    Here's a few details that seem like they might be helpful:
    Problem Description:
    - Page: (Barton, Jeffrey - /oracle/apps/per/selfservice/hierarchy/webui/MgrPrsnDetailsPG 120.1)
    - User (CBROWN)
    - Application (800 - PER - Human Resources)
    - Responsibility (54667 - LINE_MANAGER_ACCESS_V4.0 - Manager Self-Service)
    Personalizations:
    - Personalizations are (ENABLED)
    The following personalizations are effective on this page:
    - /oracle/apps/per/selfservice/hierarchy/webui/MgrPrsnDetailsPG (function/HR_PERSON_DETAILS_SS) (site/0)
    Oh, and I probably should note that this is EBS 12 - dunno if that is a given.
    thanks
    - John
    Edited by: user10123775 on Oct 27, 2008 4:48 PM

  • Pleaseeeeeee Help - Problems with position of my web page

    Hi, first sorry on my english
    I have problem with position of my page. I had made my web page in Indesign CS5 and exported to swf file. My web page is working fine (www.igor-flytying.com) but the page is not in the middle of the web browser. How can I fix the problem????? I am a beginer in Indesign. I had try to make some changes in html file (salign) but still nothing.
    Please HELLLLLPPPPPP
    Regards
    Aljosa

    Petteri, SWFObject is much better because it loads the JavaScript so you don't see it inside the HTML page, but it still wraps the swf in a div which by default will be positioned in the upperleft of the browser window.
    This is the only way I've been able to center using SWFObject—note that it's the "flashcontent" div style that does the centering not the align embed parameter:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>S W F | Centered</title>
    <meta http-equiv="Content-Type" content="text/html" />
    <!-- Centers the swf on the page. Note: width and height need to match the swf and margin left and right are -.50%-->
    <style type="text/css">
              #flashcontent {width: 1000px; height: 750px; margin-left: -500px; margin-top: -375px; position: absolute; left: 50%; top: 50%;}
    </style>
              <script type="text/javascript" src="swfobject.js"></script>
              <script type="text/javascript">
                        var flashvars = {};
                        flashvars.myFlashVar = "Testing";
                        var params = {}; //Embed parameters: http://kb2.adobe.com/cps/127/tn_12701.html
                        params.quality = "best";
                        params.align="t"
                        //SWFObject parameters: http://code.google.com/p/swfobject/wiki/api
                        swfobject.embedSWF("swftest.swf", "flashcontent", "1000", "750", "10.0", false, flashvars, params);
              </script>
    </head>
    <!-- ALT HTML TEXT-->
    <body style="background-color: #888888">
              <div id="flashcontent">
                        <a href="http://www.adobe.com/go/getflashplayer"><img src="getFlash.gif"  alt="adobe icon" border="0" /></a>
              </div>
    </body>
    </html>

  • Have problem on creating pdf from web page

    When acrobat finished downloading of that web page to start creating pdf file,  acrobat.exe take more and more memory, eventually the whole physical memory  and OS prompt memory inefficient warning.
    the web page is only 900+K,
    url is http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/        ( I use the only one layer configuration)
    but url: http://www.w3.org/TR/2004/REC-xmlschema-0-20041028/ is turn out to be fine, which is 300+K 
    it seems when the web pages is more than some hundreds of KB, then the acrobat went insane and took all the memory out there.
    Please fix the bug asap!
    PS:  I use acrobat pro 9.4.1

    Adobe only provides security fixes for all versions. With Acrobat X out, you will see any bug fixes. I don't have the problem you are seeing on 9.4.1 on the Mac nor on Acrobat X under Windows. I no longer have Acrobat 9.4.1 on my Windows machine, so I cannot check. Perhaps someone else can. Methinks you are seeing something else going one. Perhaps something is interfering with the pdf creation. What OS do you have? Maybe it has something to do with virus/spam software on your computer. Can you turn this off for testing purposes?

  • Problem with Print Email from Web IC

    Hello Experts,
    I am currently working on CRM 6.0. When i try to print an EMail from Web IC using Print Message Button at the bottom of Email body, I can only find this email in spool rather than printing on printer.
    Also I have assigned the printer to my user. Even though `m not able to get the print of the email using Print Message Button. Please Advice.
    Thank you.

    I have a same problem. I've turned on print immediately, but it still prints E-mails to spool and not to printer. Printing from GUI works ok. Do you have any other advice?
    Best regards,
    Duško Šorak

  • Problem with Exchange Admin Center Web page Layout.

    Hello Everyone,
    I am facing one problem in Exchange 2013 CU2, ECP web page.
    when I enter the URL of ECP the page loads properly and after entering the user credentials the ECP layout changes. To resolve the issue I have tried resetting the ECP virtual directory but no luck.
    Request you all to please suggest what can be done.
    And for reference attached is the screenshot of the Page Layout.
    Thanks in Advance.
    Hasan Sayyed.
    Regards, Hasan Sayyed

    Hi,
    It’s a display issue, not web.config file setting issue.
    Thanks,
    Simon Wu
    TechNet Community Support

  • Problem with printing selection of web page

    Print selection function from webpage don't print correctly. If text is marked then first line of text is printed not correct (printed only lower part of line). If text is longer than one page there is similar problem at the end of first page and begining of second. The problem occurs on HP LaserJet 4015 printer, and PDF creator too. Firefox 18.0.2 and firefox 19.0 , Windows 7 64bit

    Hi mrbcl1, unfortunately the answer is that Firefox has some bugs when it comes to printing selections!
    Typically, where the top of the selection is cut off, it means that Firefox is applying some style rules meant to position that part of the page on screen -- even though they are irrelevant when printing a selection. There's no built-in way to get Firefox to ignore those rules. You can try a different selection (keep more stuff above) or other interventions, but it can be a waste of time in many cases.
    Here are two workarounds. In both cases, the idea is to isolate the selected part of the page (hide everything else) so you can print it ''normally'', bypassing the limitations of the Print Selection feature.
    (1) Use the [https://addons.mozilla.org/en-US/firefox/addon/nuke-anything-enhanced/ Nuke Anything Enhanced extension]
    See: [https://support.mozilla.org/questions/927457#answer-333518 When using print selection in Firefox 12.0, it prints wherever the selection is on the page (on paper) instead of at the top of the page (of paper).]
    (2) Use a bookmarklet (snippet of JavaScript saved as a button on your bookmarks toolbar) to isolate the selection for printing.
    This is the technique I generally use due to force of habit. The details are in [https://support.mozilla.org/en-US/questions/943039#answer-384875 this post].

  • CS 5.5 problem with PDF links of master page TOC

    Hi
    Lately i moved from ID CS5 to CS5.5 working on Windows 7.
    All spreads of my document are based on a master page. This mater page includes a pane with a TOC. This TOC serves as navigation pane.
    When exporting the document to interactive PDF, the TOC appears on all spreads but the TOC links function well on the first spread and will not function on the next pages.
    The interactive PDF export settings include: "open in full screen mode" and "buttons and Media = include all".
    I made a test, and added hyperlink on the master page next to the TOC, now the TOC links turnned active on all pages but the PDF will not open in full screen although i did not change the export settings. If i remove this extra hyperlink the TOC links problem returns.
    I used the same document a lot in the past (with CS5) and did not have any such problem.
    Hope i managed to describe this case well.
    Highly appreciate your help.
    RGDs
    Tamir

    Thanks Steve
    I trashed the two preference files as instructed.
    Expoerted the file to IDML.
    Opened the IDML file and saved it as an ID file.
    The problem still exist.
    RGDs
    Tamir

  • Problem with oppening link from sms

    From some time now i cant open the links in my sms, from them directly. When i pull down the cursor it doesnt highlight either numbers or links. I didnt have these problem before. 

    You didnt mention which phone are u using ??  i presume it as a S60 smartphone while keeping that Message open hit on Options >  Automatic Find On  the links will be highlighted
    If a reply has solved your problem click Accept as solution button, doing it will help others know the solution. Thanks.

  • Help with getting links from HTML page

    Hello all. I found the sun tutorial for getting HREF values from a tags in an HTML document at <http://java.sun.com/developer/TechTips/1999/tt0923.html>. My question now is how would a person add the ability to get the text of the link to this code?
    For example:
    Provided the HTML code:<a href="link.html">example</a>Returned is: href=link.html text=example

    I think the TechTip you've linked too is quite old (1999). I would write a simple SAXParser that uses TagSoup (http://www.ccil.org/~cowan/XML/tagsoup/) as its input source. In your handler, simply set a flag and reset a StringBuffer to collect the contents of any <a>...</a> element. Simplified:
        public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
            if ("a".equals(localName)) {
                currentHref = attributes.getValue("href");
                if (currentHref != null && currentHref.length() > 0) {
                    inLink = true;
                    //reset the string buffer
                    buffer.setLength(0);
        public void characters(char[] ch, int start, int length) throws SAXException {
            if (inLink) buf.append(ch, start, length);
        public void endElement(String uri, String localName, String qName) throws SAXException {
            if ("a".equals(localName) && inLink) {
                inLink = false;
                //add link to the stack
                links.add(new Link(currentHref, buffer.toString()));
        }Completely untested, of course... .Good luck...

  • Problem sending jms message from Web page button (JSF 1.2)

    SJSAS PE 9.0 running on Windows
    Some of the code
    //imports:
    import javax.jms.ConnectionFactory;
    import javax.jms.Queue;
    import javax.jms.Session;
    import javax.jms.JMSException;
    import javax.annotation.Resource;
    //Injection
    @Resource(mappedName = "jms/ConnectionFactory")
    private ConnectionFactory connectionFactory;
    @Resource(mappedName = "jms/Queue")
    private Queue queue;
    //Button action code
    System.out.println("Trying to send message to EJB");
    javax.jms.Session jmssession = null;
    javax.jms.Connection connection = null;
    javax.jms.MessageProducer messageProducer = null;
    javax.jms.TextMessage message = null;
    final int NUM_MSGS = 1;
    try {           
    // This line is failing, java.lang.NullPointerException
    connection = connectionFactory.createConnection();
    jmssession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
    messageProducer = jmssession.createProducer(queue);
    message = jmssession.createTextMessage();
    for (int i = 0; i < NUM_MSGS; i++) {
    message.setText("PV interface jobid " + (i + 1));
    message.setBooleanProperty("Gyldig", true); // Sample on how to use properties; can be used to collect necessary information
    System.out.println("Sending message: " + message.getText());
    messageProducer.send(message);
    } catch (JMSException e) {
    System.out.println("Exception occurred: " + e.toString());
    } finally {
    if (connection != null) {
    try {
    connection.close();
    } catch (JMSException e) {
    } // if
    } // finally
    ERROR MESSAGE
    Log Entry Detail
    Details
    Timestamp:
    May 8, 2007 15:24:26.608
    Log Level:
    SEVERE
    Logger:
    javax.enterprise.resource.webcontainer.jsf.application
    Name-Value Pairs:
    ThreadID=12;ThreadName=httpWorkerThread-8080-1;_RequestID=832ea681-575f-4126-9bcf-01dcdf010044;
    Record Number:
    2513
    Message ID:
    java.lang.NullPointerException javax.faces.el.EvaluationException
    Complete Message
    java.lang.NullPointerException
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
         at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
         at javax.faces.component.UICommand.broadcast(UICommand.java:383)
         at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: java.lang.NullPointerException
         at com.company.testinterfaceportal.JmsSending.<init>(JmsSending.java:37)
         at com.company.testinterfaceportal.MainApplicationBean.SendBeskjedNaa(MainApplicationBean.java:192)
         at com.company.testinterfaceportal.Status.button1_action(Status.java:709)
         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.sun.el.parser.AstValue.invoke(AstValue.java:151)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
         ... 34 more

    I know the code for the jms-sending is OK (I've
    tested in another application, copy of code), but i
    dont know why it isn't working in this particual
    Visual Web Project. It does seem like the injection
    isn't taking place here; and i have no clue to
    why.....where does your web.xml schema location points to ?
    Injection works only with JEE 5, which means that you have to point to the right version of the servlet spec, i.e version="2.5" and web-app_2_5.xsd.

  • After updating to 4.0.1 (linux, x86-32) the popup-blocker prevents to open links from web-pages, e.g. from google news! Why?

    I just updated to 4.0.1 and since that moment the popup-blocker seems to block even normal links which are opened in a tab in previous versions.
    When I disable the popup-blocker everything works as before (but popups will open of course).

    I just updated to 4.0.1 and since that moment the popup-blocker seems to block even normal links which are opened in a tab in previous versions.
    When I disable the popup-blocker everything works as before (but popups will open of course).

Maybe you are looking for

  • ICal won't even start-up

    Not sure what caused this to happen, but when I click the iCal app icon it will not start. The toolbar is populated with the iCal menus, but the application does not appear. When I go into the applications folder via my HD disk navigator the iCal ico

  • FF68 house bank and account id detail update - table

    Hi, we are doing the process of FF68 for customer incoming payment. here i need to know which table house bank, account id and check number will update. govind

  • Use TaskQueryService via Axis2 Client - unrecognized operation: credential

    Trying to use the TaskQueryService via an Aixs2 client results in 'Unexpected subelement credential'. org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement credential      at org.apache.axis2.AxisFault.makeFault

  • Open with default options

    Wondering if anyone knows how to set the default 'option' of the "Open With" box to have this box UNchecked: Always use the selected program to open this kind of file By default in windows 7 this is checked. I have found docs online to completely rem

  • How do I recover a file...

    How do I recover a file in Photoshop Elements 8 after it shuts down unexpectedly?  It is a new file and I didn't get the chance to save it.  Thanks for any help...