Javadoc:aggregate throws nullpointerexception

Environment:

  • Java doc 2.9 .1
  • Java version: 1.7.0_51
  • Maven 3.3.3
  • 1,522 Jenkins

One of the projects build recently defeated the javadoc:aggregate step.


Stack trace:

org.apache.maven.lifecycle.LifecycleExecutionException: cannot run org.apache.maven.plugins:maven goal-javadoc - plugin:2.9.1:aggregate (by default-cli) on the XXX project: an error has occurred in the generation of report JavaDocs:

Exit code: 1 - / var/jenkins/workspace /... / XXX.java:4: error: package org.springframework.util does not exist

Import org.springframework.util.Assert;


.. bunch of other errors...


java.lang.NullPointerException

at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:83)

at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:44)

at com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:496)

at com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:459)

at com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:497)

at com.sun.tools.doclets.internal.toolkit.util.ClassTree.processType(ClassTree.java:194)

at com.sun.tools.doclets.internal.toolkit.util.ClassTree.buildTree(ClassTree.java:146)

to com.sun.tools.doclets.internal.toolkit.util.ClassTree. < init > (ClassTree.java:91)

at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:123)

at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)

at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)

at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)

at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)

at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)

at com.sun.tools.javadoc.Start.begin(Start.java:167)

at com.sun.tools.javadoc.Main.execute(Main.java:59)

at com.sun.tools.javadoc.Main.main(Main.java:49)


Additional information:

  • The project's POM and pom base have not been updated recently, in the past - he was able to generate javadoc:aggregate.
  • If I changed the switch of javadoc for javadoc:javadoc, the documents are generated successfully. This problem occurs if we use the javadoc:aggregate switch.

> mvn clean install javadoc:aggregate (this fails with NPE error)

> mvn clean install javadoc:javadoc (this works)


The question seems to be similar to Javadoc aggregation NullPointerException

However, it is unclear what the resolution was.


Any idea on how to solve this issue?

Thank you in advance.

The error was confused, I thought it was a problem with javadoc.

We have updated the project dependency in the project, now it works.

Tags: Java

Similar Questions

  • PhoneLogs.addCall (Journal CallLog) throwing NullPointerException in OS 5.0?

    Hi developers, RIM

    I found phonelogs.addcall (Journal CallLog) seems to throw NullPointerException in Simulator for OS 5.0 beta. Could someone confirm this?

    Same error occurs in swapCall() as well.

    You can report bugs using the developer Issue Tracker.  Please refer to this post: http://supportforums.blackberry.com/t5/Java-Development/Developer-Issue-Tracker/td-p/271768

  • The assignment of focuschangelistener to BitmapButtonField throws NullPointerException

    Hello

    When you set focuschangelistener to BitmapButtonField, it throws a NullPointerException.

    Someone knows why?

    Ex: myBitmapButtonField.setFocusListener (myFocusChangeListener);

    Thank you very much

    I made a big mistake!

    I forgot to instantiate this particular BitmapButtonField...

    Sorry for the inconvenience!

  • getAttribute after invokeMethod in processRequest throws NullPointerExcepti

    Hello:
    I appreciate your time to help me with this problem. I'm puzzled as to why this error is thrown. Pointers or ideas will be certainly useful. Please, share your ideas.
    =========
    Requirement:
    =========
    My basic page (custom OA Framework page) is called from another page with a parameter EstimateId. You use this parameter, I invoke a custom method "initHeaders" in processRequest executing the query on the view object wldssLabelEstimateHeadersVO. This query is performed on the base table that will return me a number of fields/columns based on the given primary key estimateId. As soon as I invoke the "initHeaders" method, I need a lot of the values returned by the query because only based on these values, I need to display the page properly.
    (For example) According to the type of estimate code, several elements/fields on the page are not appropriate. So, I have to hide those. When they are appropriate, I have to show them. Another area is "Die indicator. If it has a specific string value ("Die required'), I need restore a region called"dies. " And so on.

    ======
    Problem:
    ======
    I coded as follows in my page controller. After that I invoke the "initHeaders" method, if I do a findViewObject on the original Version and do a getAttribute, I should have the value in the EstimateTypeCode attribute. Fix? But he throws a NullPointerException.

    Here is the code:
    -------------------------------------------------------------------------------------------------- Code Begins -----------------------------------------------------------------------------------------------------------
    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    String EstimateId = pageContext.getParameter ("EstimateId");
    If ((EstimateId! = null) & & (!("".)) Equals (EstimateId.Trim ()))
    {
    [Serializable] param1 = {EstimateId};
    am.invokeMethod ("initHeaders", param1);
    OAViewObject vo = (OAViewObject) am.findViewObject ("wldssLabelEstimateHeadersVO1");
    String estTypeCode = (String) vo.getCurrentRow () .getAttribute ("EstimateTypeCode"); -<-this line up the NullPointerException because vo is null
    [Serializable] param2 = {estTypeCode};
    am.invokeMethod ("initEstimateActions", param2);
    }
    -------------------------------------------------------------------------------------------------- Code Ends -----------------------------------------------------------------------------------------------------------

    I don't know what I'm missing. I checked for typos, correcting the names VO several times and am exhausted. Help please!
    Kind regards
    Muzammil

    Muzammil

    Please go through the link below and check my answers here. If you are facing problems. Please post your AM, CO and complete VO codes.

    Re: Add lines to the table of results

    Thank you
    AJ

  • sqlcl 4.1.0.15.106.1020 tnsping throws NULLPointerException

    While playing with sqlcl 4.1.0.15.106.1020, I can reproduce this behavior:

    berx$ ./sql /nolog
    
    
    SQLcl: Release 4.1.0 Release Candidate on Thu Apr 16 22:05:22 2015
    
    
    Copyright (c) 1982, 2015, Oracle.  All rights reserved.
    
    
    
    
    SQL> tnsping
    Apr 16, 2015 10:05:27 PM oracle.dbtools.raptor.newscriptrunner.ScriptExecutor run
    SEVERE: oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.ping(PingCmd.java:69)
    java.lang.NullPointerException
      at oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.ping(PingCmd.java:69)
      at oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.handleEvent(PingCmd.java:53)
      at oracle.dbtools.raptor.newscriptrunner.CommandRegistry.fireListeners(CommandRegistry.java:380)
      at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.run(ScriptRunner.java:197)
      at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:269)
      at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:180)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.process(SqlCli.java:250)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.processLine(SqlCli.java:257)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.startSQLPlus(SqlCli.java:682)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(SqlCli.java:297)
    
    
    SQL>
    

    probably should say "you want to do a ping?"

    My approx. is a MacBook with OSX 10.10.3

    java -version
    java version "1.8.0_40"
    Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
    

    Yes, it's a bug

  • setCurrentRow throws NullPointerException

    someViewObject.setCurrentRow (someRow);

    the previous statement always gives NullPointerException


    java.lang.NullPointerException

    at oracle.jbo.server.ViewRowSetIteratorImpl.setCurrentRow(ViewRowSetIteratorImpl.java:1021)

    at oracle.jbo.server.ViewRowSetImpl.setCurrentRow(ViewRowSetImpl.java:3470)

    at oracle.jbo.server.ViewObjectImpl.setCurrentRow(ViewObjectImpl.java:11207)

    ...................

    I don't know that someRow and someViewObject are not null.

    Use case:

    During execution of the program, I can rollback in some cases. When the restore is executed the view lose its current line and returns to the default state (from the beginning). I store the last line someRow and try to return under the current name online in the view to help setCurrentRow method. But I always get a NullPointerException.

    It's been asked before, but there is no clear answer.

    I use Jdeveloper 11.1.1.7

    Well, your line is probably in different range.

    Try again with a code similar to this example: http://adfcodebits.blogspot.com/2010/09/bit-23-using-findandsetcurrentrowbykey.html

    Dario

  • JDK 8 and JavaFX TabPane throwing NullPointerException

    Hi all. I hope this is the right forum for this. I want to preface this question by declaring that the following code works perfectly fine in JDK 1.7. The goal here is to create a component with a tab at the end tab (with the value text '+') so that whenever this tab is selected, the program creates a new tab in the tab pane. This feature works fine. The problem is that when you close the new tab via the X, it goes to the tab 'add,' creates a new tab, then survey the following NullPointerException in some code JDK (and the app shows now TWO new tabs that correspond to the exact same object):

    Execution using the C:\Program Files\Java\jdk1.8.0\jre/bin/java java.lang.NullPointerException at com.sun.javafx.scene.control.skin.TabPaneSkin platform $TabHeaderSkin.access$ 302 (TabPaneSkin.java:1040) of C:\Users\XXXXXX\Documents\NetBeansProjects\TestJavaFx\dist\run2082574567\TestJavaFx.jar...

    I cut down the trouble code bare minimum to view the issue, and it's as follows:

    (Incase it do not paste correctly, see here: [Java] package testjavafx; import javafx.application.Application; import javafx.bea - Pastebin.com)

    package testjavafx;
    
    
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.Tab;
    import javafx.scene.control.TabPane;
    import javafx.scene.control.TabPane.TabClosingPolicy;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    
    public class TestJavaFx extends Application {
    
    
        private TabPane tabPane;
        private Tab addTab;
        private Tab currentTab;
    
    
        @Override
        public void start(Stage primaryStage) {
    
    
            //Create the tab pane and the 'addTab' for adding new tabs.
            tabPane = new TabPane();
            tabPane.setTabClosingPolicy(TabClosingPolicy.SELECTED_TAB);
    
    
            addTab = new Tab("+");
            addTab.setClosable(false);
            tabPane.getTabs().add(addTab);
    
    
            //Add a listener to listen for changes to tab selection.
            tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
                @Override
                public void changed(ObservableValue<? extends Tab> observable, Tab oldSelectedTab, Tab newSelectedTab) {
    
    
                    //If we change to the addTab create a 
                    //new tab and change selection.
                    if (newSelectedTab == addTab) {
                        //Create the new tab.
                        createNewTab();
                    } else {
                        currentTab = newSelectedTab;
                    }
                }
            });
            //Create a new tab for initial load of the app
            createNewTab();
    
    
            StackPane root = new StackPane();
            root.getChildren().add(tabPane);
    
    
            Scene scene = new Scene(root, 500, 500);
    
    
            primaryStage.setTitle("Tab Test");
            primaryStage.setScene(scene);
            primaryStage.show();
        }
    
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            launch(args);
        }
    
    
        private Tab createNewTab() {
            Tab newTab = new Tab("New Tab");
            newTab.setClosable(true);
            tabPane.getTabs().add(tabPane.getTabs().size() - 1, newTab);
            tabPane.getSelectionModel().select(newTab);
            return newTab;
        }
    
    
    }
    

    Does anyone have ideas on this? Why it would break in 1.8? Is there a bug in the JDK?

    It's clearly a bug in the code of TabPaneSkin. What seems to be the case, it's that the tab is removed before the end of the deletion tab animation. The problem may be exacerbated by the code by automatically adding a tab if the last tab is deleted, but the code base should not fall like that.

    To work around the issue, disable the close animation of the tab with the following CSS bit.

        tabPane.setStyle ("- fx - close-tab-animation: none ;"); ")

    I created https://javafx-jira.kenai.com/browse/RT-36443 to follow up the matter.

  • NullPointerException when app running, but don't not during debugging

    When I run my app in the Simulator I get a nulpointerexception, but when I debug in the Simulator even I get no exception.  Has anyone seen this behavior before and how can I find the source of the exception?

    I tried this a couple of simulators.  There's a place in my code I know wherever I knocked a nullpointer but this exception is caught by the debugger with a catch (Throwable t) {...} line.  Catch (Throwable) does not work in run mode?

    I use JDE 5, 9550 and 9530 sims, eclipse 3.5.2 plugin 1.1 and compliance of java 1.5

    By adding an extra

    catch (NullPointerException e) {}

    block that now my exception gets handled.  The final catch blocks look like this:

    try{
    ...
    //code that throws nullpointerexception
    ...
    } catch (NullPointerException e) {
        lat=0;
        lon=0;
    catch (Throwable t) {
            lat=0;
        lon=0;
    }
    

    Seems to me the catch (Throwable t) should work in run mode too.  Is NullPointerException not a throwable in run mode?

    -Peter, I did not look into the timing stuff.

  • NullPointerException in screen #navigationMovement Manager

    Hello

    After you add a VerticalFieldManager to a screen, Manager of navigationMovement super screen throws a NullPointerException and the verticalFieldManager scroll with the trackpad of this point (using the Enter key to scroll works very well and after once the trackpad works again scroll).

    I use the same model as this post defining NullField focus on the top and the bottom of the field with vertical scrolling. Has anyone have the same problems, or have any ideas on places of interest to search for?

    I'm sorry, that I couldn't reproduce it with a simple example. After a few hours, I was able to solve the problem by changing the hierarchy of my screen area, adding a handler of accepting high-field the developed anything in it.

    I think what he throwed NullPointerException because he could not find a field of focus when took place the first movement of the navigation, or the system has attempted to lock the focus on an element unfocusable. I have no final conclusion, I could work around it by rearranging the fields.

  • AF:form causes NullPointerException

    I use JDeveloper 11 g and ADF. I use dynamic region with fragments of the page to view the different pages.

    I'm doing a form of submission, but jdeveloper throws NullPointerException because soon I add af:form to my jsff.
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:234)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1066)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1501)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Here is my code to the jsff page
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
                  <af:form id="f1">
                    <af:inputFile label="File" id="inputFile" autoSubmit="true"
                                  columns="30" required="true"
                                  valueChangeListener="#{Arkiv.inputFileValue}"
                                  binding="#{Arkiv.inputFile}"/>
                      <af:commandToolbarButton text="Save file" id="ctb2" actionListener="#{Arkiv.onUploading}"/>
                      <af:commandToolbarButton text="Cancel" id="ctb3" immediate="true"/>
                  </af:form>
    </jsp:root>
    If I remove the form from the page loads, but then I can't use the inputFile.

    Any ideas?

    Best wishes in advance.

    -Thomas

    If you use regions, then you af:form component in the main page.
    You can have more then one af:form in a page that I know, or at least you can't have nested.
    Why do you need all the af:form? It should work fine without it.

    Edited by: Valhery 2010-4-15 05:36

    Edited by: Valhery 2010-4-15 05:36

  • How to dynamically set the width of the bitmap as mobile size and adjust accordingly the photo.

    I have the bitmap image. Now, I want the bitmap to the screen but its size should be as mobile width and adjust the picture accordingly. For the former I enlarge it should look like small small mobile screen.

    My code but its not working.

    public static BitmapField getHeader() throws NullPointerException {}
    Bitmap b = Bitmap.getBitmapResource("img/logo.jpg");
    return (new BitmapField (b, Field.FIELD_HCENTER) {})
    Protected Sub layout (int width, int height) {}
    setExtent (365, 80);
    }
    });
    }

    You will need to put the image yourself to match the dimensions you need.

    Watch Bitmap.scaleInto)

    If you have transparent images, then watch this:

    http://supportforums.BlackBerry.com/T5/Java-development/resizing-transparent-bitmaps/Ta-p/703239

  • ObjectChoiceField.getContextMenu () .getDefaultItem () .run () not working OS 5.0

    Hello
    I have an application that works well with the OS 4.6.247, but with the 5.0 OS, I have a problem with the function ObjectChoiceField.getContextMenu () .getDefaultItem () .run ().

    Is to throw NullPointerException.

    The code is the same on OS4.6 and OS 5.0

    Any idea?

    Thank you

    Everything is OK with:

    SerializableAttribute public class MyObjectChoiceField extends ObjectChoiceField {}
    Private boolean _IsFocusable;
    public MyObjectChoiceField() {}
    Super();
    }
    public MyObjectChoiceField (String Label, Object [], int InitialIndex, long Style) {}
    Super (label, Choices, InitialIndex, style);
    }
    public boolean isFocusable() {}
    Return _IsFocusable;
    }
    public void SetFocusable (boolean Focusable) {}
    _IsFocusable = active;
    }
    public void ShowContextMenu() {}
    invokeAction (Field.ACTION_INVOKE);
    }
    }

  • Could not get CameraDemo as application to work

    I am trying to take a snapshot with MMAPI, based on this article, and also based on the CameraDemo code. I can view the field, then the guests of simulators for a photo. I select the sample, wich becames visible image. There is no other field on this screen, only the field that is returned by VideoControl.initDisplayMode mode full-screen. Then I take the snapshot (triggered from a TrackwheelClick event) and the returned byte array is null. It is a sample of the code:

    // The screen is created, then initialized and pushed: synchronized (Application.getEventLock()) { cameraScr.initScreen();   app.pushScreen(cameraScr);}cameraScr.start();
    
    //CameraScr is a MainScreen, and these are the methods mentioned above:public void initScreen() {    try{                              p = Manager.createPlayer("capture://video");      p.realize();                  p.prefetch();
    
          vc = (VideoControl) p.getControl("VideoControl");     if(vc != null){           viewFinder = (Field)vc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");            vc.setVisible(true);          vc.setDisplayFullScreen(true);              
    
              deleteAll();                  add(viewFinder);                      } else {          System.err.println(ERR_TAG + "initScreen(): VideoControl is NULL");       }                             } catch (Exception me){       System.err.println(ERR_TAG + "initScreen(): " + me);  }       }
    
    public void start(){   try {     p.start();    } catch (MediaException e) {      System.err.println(ERR_TAG + "start(): " + e);    }}
    
    //The TrackwheelListener overriden method which fires the snapshot: public boolean trackwheelClick(int status, int time) {  snap();   return true;}
    
    //The snap() method:private void snap(){ byte[] imageBytes = null; try {     imageBytes = vc.getSnapshot("encoding=jpeg&width=640&height=480&quality=normal"); } catch (MediaException e) {      System.err.println(ERR_TAG + "snap(): " + e);     imageBytes = null;    } // After this block, no exceptions are thrown, but imageBytes is always null.               }
    

    As you can see, I call Player.start () after the field is added and the screen, following the advice of peter_strange on another post. I also tried calling start() after initDisplayMode (as in CameraDemo) without success. I tried all kinds of stuff, and nobody seems to work.

    Tested with:

    BB - plugin for eclipse, v1.0.0.67, component Pack 4.6.0 ("BOLD" 9000 Simulator)

    -Blackberry 8900 (real device)

    -For the test with the component Pack 4.6.1 (8900 Simulator), I am never invited to an image and the Simulator crashes.

    Needless to say I tested CameraDemo on device (8900) and it doesn't work, but I think it's because there are other fields on the screen.

    OK, I found what happens.

    First of all, old CameraDemo fails due to the button. New CameraDemo (included with JDE 5.0) does not work, but it will throw NullPointerException if it is configured with this coding:

    'encoding = jpeg & width = 640 & height = 480 & quality = normal '.

    Which was originally my app to not too. Now lets change to this other coding:

    "encoding = jpeg & width = 640 & height = 480 & quality = very well"

    And everything works perfectly.

    This happens also on real devices, though I'm afraid that this is a bug. It's really weird because the first coding is among the strings returned by this sentence:

    System.getProperty("video.snapshot.encodings");
    
  • SetFocus problem with screen Page tabs

    Hi Blackberry guys,.

    I followed the base article of developers Blackberry How-to - create display tabbed screens

    a source of inspiration for my screen to the custom tab.

    I have to create the control tab with unlimited tabs as follows

    Tab1. Tab2. Tab 3. >>


    On >focusChanged, I remove Tab1 in horizontal Manager and add Tab4 and set the current focus to Tab4.

    But when I invoke the. setFocus() tab4; It throws NullPointerException

    Here's the event focusChanged for reference

    ' Public Sub focusChanged (field field, int eventType)
    {
    If (eventType is FOCUS_GAINED)
    {
    for (int i = 0; i)<>
    {
    (field is tabs [i])
    {
    Delete (tabPanel);
    tabPanel = getTabPanel (i);
    Add (tabPanel);
    return;
    }
    }
    if(Field == LabelNext)
    {
    tabs [nextTab] = getNextTab();
    hManager.add (tabs [nextTab]);
    Tabs [lastTab]. SetFocus();
    }
    }
    }

    Any idea of implementation of dynamic tabbed screen, would be much appreciated

    Thank you very much

    Pinsard

    Welcome to the forums!

    Try to encapsulate the setFocus() in invokeLater() - your focusChanged() is called within a chain of calls that surrounds a user interface event.  Leave (as well as the whole of the chain) finish and then issue the setFocus().

    Grabbing a lock of the event won't do any good - you're already on the event thread in your focusChanged method. You really need to let the frame to finish his work with the previous event before initiating a new. Which is why invokeLater() seems like the right way to go.

  • liaison work not when you use EL for Hashtable keys

    Hi all

    Here's the scenario: I have an iteration of the external, in this iterator, a table and a PanelGroupLayout are generated; the PanelGroupLayout displayed or not displayed depends on a property in backing bean which is a hash table and touch which is based on the attribute of the external iterator, so access to the current item in the hash through table

    the key, he has incorporated EL; and inside the table, there are 2 radio buttons and each is bound to an instance of CoreSelectBooleanRadio using a hash table and key in this table is based on the same attribute of the external iterator (so same EL), the segment code looks like this:

    < tr:iterator var = "item" varStatus = "status" value = "#{bk_myBackingBean.subQuestions}" lines = '0' > ' "

    < tr:panelBox > <!-block test to check how to access the hastable value is OK->

    < tr:outputText value = "#{item.questionNumber}" / >

    < tr:outputText value = "#{bk_myBackingBean.dependent.medicalData.displayQ2Answers [item.questionNumber]}" / > <! - it's a good way to get the hastable value - >

    < / tr:panelBox >

    < trh:tableLayout >

    < trh:rowLayout >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 10px 0 10px 50px;  styleClass = "alignleft" >

    < label > < tr:outputText value = "#{item.questionLetter} #{item.description}" / > < / label >

    < / trh:cellFormat >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 0 0 10px 50px" styleClass = "alignleft" >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:selectBooleanRadio id = "Q2No" group = "question2 #{status.index}" text = "" autoSubmit = "true" inlineStyle = "border-width: 0px; »

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < tr:spacer width = "5px" / >

    < tr:selectBooleanRadio id = "Q2Yes" group = "question2 #{status.index}" text = 'Yes' autoSubmit = "true" inlineStyle = "border-width: 0px; »

    onclick = "removedRequiredError (this.ID)" "

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < / tr:panelGroupLayout >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:outputLabel id = "Q2Error" value = "#{bk_myBackingBean.dependent.medicalData.questionErrors [item.questionNumber]}" "

    styleClass = "error" / >

    < / tr:panelGroupLayout >

    < / trh:cellFormat >

    < / trh:rowLayout >

    < / trh:tableLayout >

    "" < tr:panelGroupLayout layout = "default" inlineStyle = "#{bk_myBackingBean. dependent.medicalData.displayQ2Answers [item.questionNumber]}".

    I checked the value of #{item.questionNumber} is just out of view it in the interface user as described above and also I tried to exit with a value in the hashtable and it is successfully recover and displayed in the user interface. (Those who are in the < tr:panelBox > block above) and the hastable displayQ2Answers is of type < String, String >. So far so good, but when I tried to link in what follows the radios and the PanelGroupLayout, he throws NullPointerException. But if I tried to link explicitly radio to an item in the hash table instead to use the key "" EL:

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2NoRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos ['q2a']} '

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2YesRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos ['q2a']} '

    then the page is rendered with success.

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type < String, String >, I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of < String, CoreSelectBooleanRadio > or < String , CorePanelGroupLayout > (this is not shown in the above code segment), the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. so apparently not caused by initialization

    . What follows is an overview of the data model, this is how I initialize the option button:

    public class MedicalInfo {}

    == getters and setters are defined but not shown here

    / / theare hash tables used to be linked to radio buttons

    Hashtable < String, CoreSelectBooleanRadio > q2NoRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    Hashtable < String, CoreSelectBooleanRadio > q2YesRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    / / these are the items that are stored in above hash for the actuall link tables

    private CoreSelectBooleanRadio q2aNoRdo = new CoreSelectBooleanRadio();

    private CoreSelectBooleanRadio q2aYesRdo = new CoreSelectBooleanRadio();

    and in the constructor, except for the hash for the binding tables:

    public MedicalInfo() {}

    ...

    q2NoRdos.put ("q2a", q2aNoRdo);

    q2YesRdos.put ("q2a", q2aYesRdo);

    ...

    }

    Where could I have missed or done wrong? Any hint is appreciated!

    Thank you

    Shawn

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type of , I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of or (this is not shown in the above code segment) the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. It is not caused by the initialization

    Well, #{number} is not resolved in the same phase as the 'binding' property ("compulsory" is resolved in the phase of restore view and variable "var" is resolved in the rendering phase).

    Dario

Maybe you are looking for

  • incompatibility of time information and block length

    This seems to be a regular problem. But I couldn't solve it in other cases in the forum. I get error when I try to run the program:"The duration of block or the information of the input channels does not match...". » The program complains to my switc

  • Photosmart 5520 black ink cartridge not working not

    I have the same problemwith Photosmart 5520, black ink, it's not working A few hours ago, I bought a new cartridge. Because the return, we were out of ink and... I changed (for the second time since I bought the printer) and after that... the printer

  • echo of Skype on samsung elypsis 7 Tablet

    I start Skype echo test.  He places his call.  Call lasts about 30 seconds.  Never any indication of when I need to record my voice.  call ends I realize subject supply to accessories of surface is not appropriate but haven't seen any advice for tabl

  • This view returns 'NO' in the field of open_mode (mgmt$ dbninstanceinfo)

    Hi allUsing EM12c v4 and I was looking for a view as v database $ (open_mode), but in view of the EM instead.So I don't see this management point of view and says 'NO' on all databases of the open_mode attribute.Not very useful.My question can I accu

  • From XHTML to HTML5 in DW CS3 will malfunction of the site if only 1/3 of the pages are HTML5?

    I will present the figure and the figure caption language in a site that has begun to go live and then translates to DW CS3. These pages, I've been working on this day represent about 1/3 of the Web site. I have not yet downloaded these new pages on