General approach to the implementation of several dictionaries of color name?

My interactive color wheel applet [url http://r0k.us/graphics/SIHwheel.html] currently has a single class providing for more than 1500 color names and hexadecimal values. I am considering multiple supply of these "dictionaries names of colors" (CNDs) - the current set, Munsell colors Sherwin Williams colors, etc... Each item in the Dictionary consists of a hexadecimal string of the value of the color and a name string. There are at least 3 approaches that might be possible:

(1) store each NDT in its own file of plain text with names ending in common extension, for example ".PSF". At runtime, hunt for .PSF files in the current directory and build a GUI selection list dynamically. This would probably be my approach in other languages and would save space in the jar file. (One byte per character instead of two). But I don't even know if a cmdlet can read files in its own .jar file. If it is possible, they would be in the current directory, right?

(2) store each NDT in its own class. Is there a way to simply drag the classes in a project and the parent java automatically recognize what NDT classes it there and adjust the graphical user interface to support / them?

(3) store NSDC all in one class, as 2D arrays separated. It could end up as a huge (class in progress, with just a dictionary, is 78 k in size), but could be the simplest to implement.

Which path would you take? Is there a better way that I didn't think?

If you already use getResource() and you do not place random CND files around the file system, there is no reason to mix FileInputStreams it.

Class.getResourceAsStream () is the way to support different types of loads. It supports even seen your program a jar file or a jar unpacked file. You leave there useless catch block you need to remove.

Tags: Java

Similar Questions

  • General approach to the addition of new attributes

    Hi all

    I'm after that insight that the approach that I plan to add new attributes to posted tables UI is healthy.



    Basically, I need to add attributes to the tables view reporting within projects. These attributes already exist on the tables of the ebs. The approach that I considered includes using JDeveloper to add a few columns to the extended view objects, make a BC4J substitution and then customize the UI to include the new column.



    I know that this approach should work for flex-fields. I was just wondering if this is the best way to make such an extension? Is this what I need to consider?



    Thank you

    Kris


    Kris,

    If the attributes are available in the t, then simply create columns in the table through customization and refer to the instance of the view and correctly display the attribute names.
    If the attributes are not available in the original Version, you may need to modify the query and substitute the original standard Version with a custom one. Then the same process of adding columns through customization and evoking the display attributes.

    Hope that helps.

    Concerning
    Sumit

  • Drive the General Question of the layout - Interface user - fields and color

    Can general question if possible to do or not, we do a field in color similar to the Red required fields?

    Change the color of text or field only is not supported by OnDemand now

  • Approach of the album (several pieces) project?

    Hello. What is the right approach for the work of the album from?

    Let's say that I have several audio tracks for the album, most of the tracks have same basic settings/plugins/etc + automation. But they should sound compatible with each other and I really don't want to transfer settings every time that I change/tune something.

    BUT at this stage I do not see how to deal with it in a project in Logic Pro X. Things like lunch to several titles (battery, for example), bounce/export, freeze - work for the entire project, which means take a lot of time and disk space.

    Export of the stems of selection is also weird - they don't start from the same place.

    In Reaper I used before, there are regions. You can select a part of a project, mark it as a region and then free to accomplish within it. In addition, where the subprojects. You could do things separately and then only incorporate such what within any track.

    Just to be clear: work with this I expect to be easy and convenient to export a part, not all projects. But it seems logical is more oriented to the project as a song on the album.

    Not a pro engineer music yet, so I hope that there is something I missed it.

    Thanks in advance for the advice.

    Anyone?

  • What is the best approach to the conversion of the LV7.1 tags to the variables shared by several screws LV2012?

    What is the best approach for the upgrade of the DSC-LV2012/LV7.1/DSC static variable tags in several screws running on several platforms? Our system is made up of about 5 PC running Windows 2000/LV7.1 DURATION, the more a PLC and a PDC running XP/SP3/LV2012. About 3 PC publish information from the sensor through tags on the local network to the PDC. Only the main command is currently being upgraded. Basic questions:

    1. the other computers running RTÉ 7.1 (with labels) will be able to communicate with the PDC running 2012 (shared variables)?

    2. is it necessary for conversion of tags shared variables, or the deprecated legacy tag screws of LV7.1 work in LV2012?

    3 all of the main controllers will be screw must be integrated in a project in order to use shared variables?

    4 is the only way to do it is to find all the tags and replace them with elements of shared variable?

    Thank you in advance with all the information and advice!

    lb

    Hello lb.

    Datasockets are the common middle only my knowledge between versions, so apart from the upgrade to the same version, they will probably be your best bet.

  • A general question to the community

    I have a general question to the forum community. I noticed that many contributors have more than 100,000 points. I'm a contributor forum for several years, I consider myself to be a casual user and offer contributions to daily or occasionally and then my answer is chosen as the solution. Not that it's really important to me because I love just to help others. However, unless a person is right in front of their computer constantly on the communities of Apple I for the life of me see how a person could possibly reach more than 100 000 points. Y at - it a secret that I don't know?

    No, I think you worked which is the secret.

    TT2

  • Best approach for the design of the Radial Image - sector scanning Sonar

    This is not a problem, but you are asked to think about the best approach.

    I need a sector sonar image data.  This device runs on 360 (degree sub-segments) and generates a set of data from the origin - radially outwards at an angle of no - to an endpoint.  Therefore, for each 'ping' sonar I need data points in the center of a circle graph, a radial angle on the outside.

    I don't know if I should use LabView vi for the drawing tools, or go to ActiveX or?

    Anyone has a suggestion on the best approach to this?

    Thank you
    Peter

    Peter,

    You can use a chart of the LabVIEW intensities for this kind of display.

    Maybe not the best way, but it is possible.

    As an attachment, I did an example with your specifications.

    datapoints 1024 by degree

    See example image:

    Basic principle:

    -Create the matrix of 2048 x 2048 points database

    -For each 'line of angle' calculate which pixel to replace each data point in the line

    -Because "datapoints" becoming bigger, far from the Center, repeat the action for several "sup angles. for example, to 85 deg also Calc. 84.6, 84.8, 85, 85.2 85.4

    It gives you an idea of the possibilities, but performance may be necessary.

    -Only external Calc x pixels more degrees

    -Do some kind of anti-aliasing to avoid the pixelated lines.

    See attached example. (LV 8.6)

  • PropertyNotFoundException: Lack of resources in the implementation of EL:? propertyNotReadable?

    Hi all

    I'm the fill af:table with bean managed. I followed this blog Ashish Awasthi (Jdev/ADF) Blog: fill af:table programmatically from managead using POJO beans . After deploying my application when I have access to the browser, it gives me the following error.


    To resolve this error, I followed this blog as well, but couldn't solve the problem https://technology.amis.nl/2011/06/23/how-to-run-into-and-resolve-el-propertynotfound-exception-and-propertynotreadable-...


    Kindly help me on this issue. I use Jdeveloper 11.1.1.7.1


    AF table code

    <af:table value="#{TestUserTasksClass.listUserTasks}"
                                  var="row" rowBandingInterval="0" id="t6">
                          <af:column sortable="false" headerText="Title"
                                     align="start" id="c5">
                            <af:outputText value="#{row.title}" id="ot22"/>
                          </af:column>
                        </af:table>
    
    

    Root cause]] of ServletException.

    javax.el.PropertyNotFoundException: lack of resources in the implementation of EL:? propertyNotReadable?

    at javax.el.BeanELResolver.getValue(BeanELResolver.java:252)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)

    at com.sun.el.parser.AstValue.getValue (unknown Source)

    at com.sun.el.ValueExpressionImpl.getValue (unknown Source)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)

    at org.apache.myfaces.trinidad.component.FacesBeanWrapper.getProperty(FacesBeanWrapper.java:58)

    to org.apache.myfaces.trinidad.component.UIXTable$ RowKeyFacesBeanWrapper.getProperty (UIXTable.java:630)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.getProperty(UIXComponentBase.java:1353)

    at org.apache.myfaces.trinidad.component.UIXIterator.getValue(UIXIterator.java:722)

    at org.apache.myfaces.trinidad.component.UIXCollection.__flushCachedModel(UIXCollection.java:1438)

    at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:524)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1045)

    in oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$ 100 (PanelFormLayoutRenderer.java:46)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$ FormColumnEncoder.processComponent (PanelFormLayoutRenderer.java:1491)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$ FormColumnEncoder.processComponent (PanelFormLayoutRenderer.java:1410)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)

    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:352)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:187)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$ 300 (PanelGroupLayoutRenderer.java:30)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$ EncoderCallback.processComponent (PanelGroupLayoutRenderer.java:682)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$ EncoderCallback.processComponent (PanelGroupLayoutRenderer.java:601)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)

    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:438)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderChildrenAfterHelpAndInfo(PanelHeaderRenderer.java:615)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer._renderContentCell(PanelHeaderRenderer.java:1163)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderContentRow(PanelHeaderRenderer.java:522)

    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailHeaderRenderer.renderContentRow(ShowDetailHeaderRenderer.java:181)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:262)

    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailHeaderRenderer.encodeAll(ShowDetailHeaderRenderer.java:107)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$ 300 (PanelGroupLayoutRenderer.java:30)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$ EncoderCallback.processComponent (PanelGroupLayoutRenderer.java:682)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$ EncoderCallback.processComponent (PanelGroupLayoutRenderer.java:601)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)

    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:438)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderChildrenAfterHelpAndInfo(PanelHeaderRenderer.java:615)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer._renderContentCell(PanelHeaderRenderer.java:1163)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderContentRow(PanelHeaderRenderer.java:522)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:262)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$ 300 (PanelGroupLayoutRenderer.java:30)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$ EncoderCallback.processComponent (PanelGroupLayoutRenderer.java:682)

    to oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$ EncoderCallback.processComponent (PanelGroupLayoutRenderer.java:601)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)

    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)

    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:438)

    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:422)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:438)

    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1341)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)

    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)

    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:979)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:408)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:237)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

    to 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:300)

    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:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:175)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

    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)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    In addition, your list is never initialized. The Get accessor of that we called several times during the rendering of the user interface, the set accessor is not called.

    You need to implement some sort of initialization (for example, https://tompeez.wordpress.com/2014/10/18/lazy-initalizing-beans/) of

    Timo

  • column of a link with the ability to send the user on several different pages

    using apex 4.0

    In my example:
    User: Secretary for a large company in charge of the HR database, enter new employees, reorganizing the employees, managers, etc.).
    Employee: A person working for the company whose information is in the database.

    The problem: my client wants the data divided into several subcategories, so, for example, it would be like sales, managers, etc., using the human resources database. The main page of this project contains a table that lists all the company employees, low to high. There is a column of navigation with several links to predefined reports filter that filters data on the question whether the employee in the database is a seller, Manager, etc.. If the user clicks on the link change, it will take them to a page master detail where the upper part is general information and background tasks of the employee. The problem is that, according to his level, there may be additional details that the user will want to change, such as if the employee is responsible for, the user will also want to see another table a list of employees by the Manager. There is also a second level of managers who will have a table of managers of this person manages. The dream is that there is a list of links above the tabular presentation, which will allow the user to choose what table they want to see. I thought about the following:

    1. create several copies of the home page, one for each subcategory, so that she will be the link change correct.
    Positives - Simple, easy, I know how to.
    Negative - would like it to appear on the same page, such that if the user deletes / adds a column in a single page, this change would occur on all other pages. I also have to make the same changes on several pages, one is required.

    2. create a text field hidden on the page that records the last link, what they clicked. When the user clicks on the link change, some kind of javascript selects the right page to go to in view of what is in the box.
    Positives - seems simple enough, but I have not tapped into javascript a lot
    Negative - not for sure if it is even feasible, would need help

    3. create a subpage of master-detail, that holds all the necessary tables and hide those that are not. When the user clicks on a link, the link triggers the current table to hide and another to appear.
    good points - all in the same place, that one page to link to main page
    negatives - it would require at least 5 tables on one page and I do not know how the apex would like that. I also don't like the idea of the page calling itself when the user is looking at senior managers and to display a lower Manager / employee.

    4. a creative method / useful / incredibly simple bore by a user of this forum.

    Because I'm in a very short, customer review period next week, I implémenterai #1 because it is the easiest and most straight forward, but I would like to know your thoughts to make much cleaner.

    Published by: rabbitman June 4, 2012 08:07

    I don't know if it's the best way to accomplish what you want, but it worked for me.

    Change the link in the column to specify the following for a target URL, where EMP_NO and EMP_TYPE are columns of the report.

    JavaScript:apex. Submit('#EMP_NO##EMP_TYPE#')

    In the processing of the page after several branches to different pages depending on the type of employee. For example,.

    Branch to Page 2: Condition = instr (: REQUEST, 'SALES') > 0
    Branch to Page 3: Condition = instr (: REQUEST, "MANAGER") > 0
    Branch to Page 5: Condition = instr (: REQUEST, 'PRÉSIDENT') > 0

    Since the: APPLICATION also has the EMP_NO, you can use this to set the value of the EMP_NO for the target page, pull up to the employee's file.

    Natasha

  • How to solve a problem related to the implementation of the legacy?

    Hello

    Then I come on this way to ask for assistance on the implementation of the legacy on my request. So the problem is:

    I apply I need to capture audio and analyzing this capture of the Spectrum Analyzer, Volumes etc.

    So I will use several microphones in this application, I will use the same code in the audio capture.

    I have a class called Application which has GUI and events, such as events of button and update the values in the GUI. In my first version of the Application, I have everything here, but I had Don t like that and is not good for performance, so I want to divide the code by other classes. That's why I try to the legacy.

    So I created a class called equipment which is the super class and in this class will have the method captureAudio(), the calculateRMSLevel(), the sendOutPresenceUpdates() etc... And I have 3 variables:
    public abstract class Equipment {
    
        public AudioFormat format;
        public TargetDataLine line;
        public Mixer mixer;
        public EventListenerList listenerList = new EventListenerList();
        
        public Equipment(AudioFormat format, TargetDataLine line, Mixer mixer){
    
            this.format = format;
            this.line = line;
            this.mixer = mixer;
        }
    
        public AudioFormat getFormat() {
            return format;
        }
    
        public void setFormat(AudioFormat format) {
            this.format = format;
        }
    
        public TargetDataLine getLine() {
            return line;
        }
    
        public void setLine(TargetDataLine line) {
            this.line = line;
        }
    
        public Mixer getMixer() {
            return mixer;
        }
    
        public void setMixer(Mixer mixer) {
            this.mixer = mixer;
        }
    
         public int calculateRMSLevel(byte[] audioData){
         // audioData might be buffered data read from a data line
            long lSum = 0;
            for(int i=0; i<audioData.length; i++)
                lSum = lSum + audioData;

    double dAvg = lSum / audioData.length;
    double sumMeanSquare = 0d;
    for(int j=0; j<audioData.length; j++)
    sumMeanSquare = sumMeanSquare + Math.pow(audioData[j] - dAvg, 2d);

    double averageMeanSquare = sumMeanSquare / audioData.length;
    return (int)(Math.pow(averageMeanSquare,0.5d) + 0.5);
    }

    public void sendOutPresenceUpdates(int FullJIDAndResource, String NewPresence) {
         Object[] listeners = listenerList.getListenerList();

         Integer inputValue = _FullJIDAndResource;
         String convertedValue = inputValue.toString();
    // Empty out the listener list
         // Each listener occupies two elements - the first is the listener class and the second is the listener instance
    for (int i=0; i < listeners.length; i+=2) {
              if (listeners[i]==CustomPresenceListener.class) {
                   ((CustomPresenceListener)listeners[i+1]).presenceEventOccurred(new CustomPresenceEvent(this, convertedValue, _NewPresence));
                   }
              }
         }
    public void listenForPresenceEvents(CustomPresenceListener _listener) {
              listenerList.add(CustomPresenceListener.class, _listener);
         }


    public void removeEventListener(CustomPresenceListener _listener) {
              listenerList.remove(CustomPresenceListener.class, _listener);
         }
    public void captureAudio(){

    }
    And i have questions about the constructor, is right the constructor that i created in the superclass?
    
    So i create a subclass called Microphone1 and in this class i make override from the method captureAudio() from the superclass and here i create the thread for the capture.
    class Microphone1 extends material {}



    Public Microphone1 (format AudioFormat, line TargetDataLine, drummer mixer) {}

    Super (format, line, mixer);

    }


    public void captureAudio() {}
    try {}
    format = getFormat();
    MixerInfo [] Mixer.Info = AudioSystem.getMixerInfo ();
    DataLine.info get information on line.
    DataLine.Info info = new DataLine.Info (TargetDataLine.class, format);
    Drummer mixer = AudioSystem.getMixer(mixerInfo[3]);
    Download the info from the desired line.
    line = (TargetDataLine) AudioSystem.getLine (info);
    Get a TargetDataLine on selected mixer.
    line = mixer.getLine (info) (TargetDataLine);
    Line.Open (format);
    Line.Start ();

    CaptureThread captureThread = new CaptureThread();
    captureThread.start ();

    } catch (Exception e) {}
    System.out.println (e);
    System.Exit (0);
    } //end wrestling
    }
    But now i have a problem in the class Application, because i want to start the capture when i click in the button so i created the actionPerfomed and inside of this event i create this:
    Microphone1 m1 = new Microphone1 (format, line, mixer);
    M1.captureAudio ();
    But when i execute the application and click in the button appears this: java.lang.NullPointerException :/ and i don't know how to solve this.
    
    Any help? Where i am wrong?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Well Yes, see also http://download.oracle.com/javase/tutorial/java/index.html

  • Change the location of several pictures at the same time?

    I see how to change the location of a photo at a time. Is it possible to change the location of several pictures at the same time?

    Thank you

    Phil

    Select the photos and info - enter the location (or any other field of the info) and it is applied to all photos

    This is described in using Photos - a good place to get help with Photos

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.

      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    LN

  • Even though I've updated to the latest version several times, I get messages from "update." How to stop the input messages?

    I get "upgrade to the latest version of Firefox" messages on my iMac, even if I downloaded the latest version several times. I'm afraid to click on the update message, because it might be spam/virus/whatever. Mozilla tells me that I downloaded the latest version of Firefox successfully. How to stop messages from appearing?

    Hello!

    Thank you to get in touch with us here at Mozilla's Support. I'll do my best to help you.

    To better help you with your question, please provide us with a screenshot. If you need help to create a screenshot, please see How to make a screenshot of my problem?

    Once you have done so, attach the file to screen shot saved to your post on the forum by clicking on the button Browse... under the box to post your reply . This will help us to visualize the problem.

    I see that you are running Firefox 25.0.1. Our latest version is the version of 26. But Firefox should display this update constantly. The screenshot is necessary so I can see if it's a legitimate link to Mozilla.

  • The start section of the general tab in the Options dialog box has disappeared, what gives?

    My question says it all. It USED to be there (or if not, I could not put my pages in the past), but now it isn't, and I haven't changed all the settings of Firefox.

    Thanks for the quick response. Oddly enough, this problem "disappeared" as suddenly as it appeared. Next time that I started Firefox (which was just a few minutes after I reported this), the general tab had the available selection area to set the home pages. Occurrences weird like that make me nervous, however, that things don't "just" without reason.

  • How to complete the implementation of process after inserting the new sim card to unlock the phone

    Try to unlock the phone more 6s with ATT, but do not know how to perform the implementation of process after inserting the new sim card. I got the unlock code confirmed att.

    After the unlock code is confirmed, you will have to restore the unit to the factory via iTunes settings.  He must inform you that the device is unlocked, THEN you change sim cards.

  • What happened to the button on the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? I use it all the time and it is not on FF4.

    What happened to the button on the left end of the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? You can look at the drop down window of pages and just choose whatever you want. I use it all the time and it is not on FF4. I want to go back to the old FF.

    If you right click on your back button, or click and hold down the mouse button, it will display the list. (I prefer a click-right, because sometimes my fingers slide when I try to click and hold)

Maybe you are looking for

  • How to cancel it?

    I don't want this on my computer. Please let me know how to cancel it.

  • Cannot install drivers for HP photosmart C4640

    Try to install the drivers for HP Photosmart C4640 online I have no CD. After downloading, click on install and I have two such messages: the instruction at "0x7712153d" referenced memory at "0x77c623d8" memory can not be read. Second: this computer

  • Cannot install live messenger 2009 he continues to fall

    Sorry if I posted in the wrong place if there is a link to were I must be can I please have. I helped family and friends, update their PC and even updated their messenger live windows to the latest version which ends in 2009 or is the most common of

  • Want 5532: Printer cannot connect to the wireless network

    My desire 5532 impossible to connect to the network wireless after upgrading the firmware on the router. When you use the wireless on the printer configuration wizard, it cannot find the router. When I manually enter the SSID router and the password,

  • Inspiron 15R 5520 strange problem

    Hello My laptop is DELL Inspiron 15R 5520 and I bought it 3 years ago and it was nice but I recently had a problem with my laptop and I hope someone can identify the problem and help solve it. The problem is that my laptop makes 1 beep per second eve