NullPointerException when using table of trinidad
I use the table of the Trinity as below with delete button< tr:form >
< inlineStyle = tr:panelFormLayout ' height: 334px; ">
< f: facet = 'footer' name / >
< tr:table value = "#{bindings." Var UserFavoriteVO.collectionModel}"="row ".
lines = ' #{bindings. " UserFavoriteVO.rangeSize}"binding * =" #{UserActionBean.table1} "*.
emptyText = "#{bindings." UserFavoriteVO.viewable? "{"No line yet.":"Access Denied."}"
selectedRowKeys = ' #{bindings. " UserFavoriteVO.collectionModel.selectedRow}.
selectionListener = "#{bindings." UserFavoriteVO.collectionModel.makeCurrent}.
rowSelection 'multiple' = >
< tr:column sortProperty = "favoriteContent" sortable = "false".
headerText = "#{bindings." UserFavoriteVO.hints.favoriteContent.label} ">"
< tr:inputText value = "#{row.bindings.favoriteContent.inputValue} '"
simple = 'true '.
required = "#{bindings." UserFavoriteVO.hints.favoriteContent.mandatory}.
columns = "#{bindings." UserFavoriteVO.hints.favoriteContent.displayWidth}.
maximumLength = "#{bindings." UserFavoriteVO.hints.favoriteContent.precision} ">"
< f: validator binding="#{row.bindings.favoriteContent.validator}"/ >
< / tr:inputText >
< / tr:column >
...
...
< text af:commandButton = actionListener * = "#{UserActionBean.performDelete} *" / "Delete" >
UserActionBean:
private UIXTable table1;
public void setTable1 (UIXTable table1) {}
This.Table1 = table1;
}
public UIXTable getTable1() {}
Return table1;
}
public void performDelete (ActionEvent action)
{
...
...
}
When I click on the button Delete I'm below the exception. I even tried a ti debug but unable to reach Perforemdelete (ActionEvent action) method.
Root cause]] of ServletException.
java.lang.NullPointerException
at org.apache.myfaces.trinidad.model.RowKeySet.add(RowKeySet.java:129)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TableSelectManyRenderer._setDeltas(TableSelectManyRenderer.java:161)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TableSelectManyRenderer.decode(TableSelectManyRenderer.java:113)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.decodeSelection(TableRenderer.java:138)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.decode(TableRenderer.java:102)
Truncated. check the log file full stacktrace
>
Lete me know where is the problem
Thanks for any help
Several choices and makecurrent doen't make sense.
...selectionListener="#{bindings.UserFavoriteVO.collectionModel.makeCurrent}"
rowSelection="multiple">...
try to remove the selectionListener in your table. You can remove the selectedRowKeys also...
Timo
Tags: Java
Similar Questions
-
NullPointerException when using::InsertRow()
Hello
I'm trying to add a record to a table in the database and I am getting Nullpointerexception when executing an insert to help : InsertRow().
The use case:
Database table I am trying to insert records in it called someTable.
This table contains the following attributes: A, B, C, D, E
the primary key is a combination of three areas: a. B, C
I am running the following code to insert a new record into someTabletable:
AppModuleImpl appModule = (AppModuleImpl)(JSFUtils.getApplicationModule("AppModuleDataControl")); ViewObject someTableVO =appModule.findViewObject("someTableView1"); Row row= someTableVO.createRow(); row.setAttribute("A", variable1); row.setAttribute("B", variable2); row.setAttribute("C", variable3); row.setAttribute("D", variable4); someTableVO.insertRow(row); // This statement cause the NullPointerException appModule.getDBTransaction().commit(); someTableVO.executeQuery();
Note:
1. There is none Null no don't force exept for ofcourse primary key, and I'm adding data for all fields of primry key.
2. I'm not insert data for class E as you can see it form the example code above. But even when I tried to add value in, still gives me the same error.
3. I'm sure that the variables ( variable1 ... ( variable4) are not null.
4. I get the right view object someTableView1
5. I use the ADF with Jdevelopr 11.1.2.3 technology
Problem solved
I should post the lines before committing as follows:
AppModuleImpl appModule = (AppModuleImpl)(JSFUtils.getApplicationModule("AppModuleDataControl")); ViewObject someTableVO =appModule.findViewObject("someTableView1"); Row row= someTableVO.createRow(); row.setAttribute("A", variable1); row.setAttribute("B", variable2); row.setAttribute("C", variable3); row.setAttribute("D", variable4); someTableVO.insertRow(row); row.validate(); // This statement solved the problem appModule.getDBTransaction().commit(); someTableVO.executeQuery();
-
Hi all
Not sure if anyone has faced this problem earlier.
I work with Oracle Service Bus, creating a SOAP Service. I use GOSA policies with my services to businesses (oracle/wss10_saml_token_with_Message_integrity_client_policy).
Problem: I want to use caching when you call the services in the background as the change from rarely to answer. When I use the service, it works perfectly well for the first time, but the next time that it returns just a
-Error message:
null
java.lang.NullPointerException
at com.bea.wli.sb.security.wss.WssHandlerImpl.doOutboundResponse(WssHandlerImpl.java:1057)
at com.bea.wli.sb.context.BindingLayerImpl.addResponse(BindingLayerImpl.java:736)
to com.bea.wli.sb.pipeline.PipelineContextImpl$ SynchronousListener.onReceiveResponse (PipelineContextImpl.java:1456)
at com.bea.wli.sb.pipeline.resultcache.ServiceResultCachingCallback.run(ServiceResultCachingCallback.java:50)
at weblogic.work.ContextWrap.run(ContextWrap.java:41)
Truncated. check the log file full stacktrace
>
I can't change the policy as my communication brake from the backend. Please let me know if there is anyway I can prevent that or is this a bug with Oracle services.
Thank you guys. Found the "16165934" Patch for this problem.
-
Crash when using table hints with structure of the place
Hello!
I have a problem with structure of the place. I want to index a matrix of waveform (16 items) and when I run or save this labview close...
I have no problem with 15 elements of waveform table or less, but I need to index items 16...
Thanks for your help!
Same 2009 don't crash after adding index up to 20. Thus, it may be a problem with Version 8.5
-
NullPointerException when using an aggregator
Hello
There seems to be a problem with the way my cache is configured and the way it handles an aggregator.
By operating the aggregator of my UT on my local machine, it seems to pay the fine; However, when my aggregator is executed on a cache outside my test JAVA virtual machine, and then the next NullPointerException is thrown.
It really seems that the external cache may not have required dependencies, which would naturally exist when the cache is started on the FMV of the test.
It seems that there may be a simple solution, but for the moment I don't understand.
Thank you in advance, please
Mike Menne
Portable (com.tangosol.util.WrapperException): (Wrapped: execution of requests that have failed for the maintenance DistributedCache member (Id = 1, Timestamp is 2011-06-30 10:44:45.942, address = 10.29.9.91:8088, MachineId = 7771, Location = site: na musician. - .com, machine: na1000-lasch2, process: 5628, role = IntellijRtExecutionAppMain)) null
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onAggregateFilterRequest(PartitionedCache.CDB:67)
to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ AggregateFilterRequest.run (PartitionedCache.CDB:1)
to com.tangosol.coherence.component.util.DaemonPool$ WrapperTask.run (DaemonPool.CDB:1)
to com.tangosol.coherence.component.util.DaemonPool$ WrapperTask.run (DaemonPool.CDB:32)
to com.tangosol.coherence.component.util.DaemonPool$ Daemon.onNotify (DaemonPool.CDB:63)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
the limit of <>process
at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3306)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2603)
at com.tangosol.coherence.component.net.extend.message.Response.readExternal(Response.CDB:20)
at com.tangosol.coherence.component.net.extend.Codec.decode(Codec.CDB:29)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.decodeMessage(Peer.CDB:25)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onNotify(Peer.CDB:47)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
Caused by: Portable (java.lang.NullPointerException)
at com.tangosol.util.InvocableMapHelper.extractFromEntry(InvocableMapHelper.java:294)
to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ Storage$ BinaryEntry.extract (PartitionedCache.CDB:32)
at com.tangosol.util.aggregator.AbstractAggregator.processEntry(AbstractAggregator.java:107)
at com.tangosol.util.aggregator.AbstractAggregator.aggregate(AbstractAggregator.java:94)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onAggregateFilterRequest(PartitionedCache.CDB:46)
to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ AggregateFilterRequest.run (PartitionedCache.CDB:1)
to com.tangosol.coherence.component.util.DaemonPool$ WrapperTask.run (DaemonPool.CDB:1)
to com.tangosol.coherence.component.util.DaemonPool$ WrapperTask.run (DaemonPool.CDB:32)
to com.tangosol.coherence.component.util.DaemonPool$ Daemon.onNotify (DaemonPool.CDB:63)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
the limit of <>process
at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3306)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2603)
at com.tangosol.io.pof.PortableException.readExternal(PortableException.java:150)
at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:58)
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3306)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2603)
at com.tangosol.coherence.component.net.extend.message.Response.readExternal(Response.CDB:20)
at com.tangosol.coherence.component.net.extend.Codec.decode(Codec.CDB:29)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.decodeMessage(Peer.CDB:25)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onNotify(Peer.CDB:47)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
Published by: 869517 on July 6, 2011 10:03Hello
This looks like it could be due to an incorrect serialization/deserialization for your personalized aggregator. The reason that this works very well within the JVM is that coherence should not serialize the message in this case and that it is able to route locally to the thread of the service hides.
Thank you
-Rob -
Is it possible to know which parameter when used during expdp?
Hi experts,
I got a dump expdp from a client file, but usually, he forgot to include the LOG file.
Is it possible to know what settings when used during expdp? I am particularly interested on the QUERY parameters and EXCLUDE because I think that he "forgot" to include tables that are needed.
Thank you
Jose Ramon.
Hello
Yes as long as one parfile didn't - see here
http://dbaharrison.blogspot.de/2013/05/what-command-create-my-DataPump-dumpfile.html
See you soon,.
Rich
-
Hi all, I am designing a 1 page template and goes well but a bit with a problem. I am using tables and trying to put an image directly into a topic. It looks perfect in Design view, but when I go to live mode view there is a little gap/spacing. I need directly under the heading. I'll also put another image directly under the first image.
< / tbody >
< /table >
< table width = "805" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< tbody >
< b >
< td width = "15" bgcolor = "#FBF5F6" > < table >
"< td width ="775"bgcolor ="#FBF5F6"> < shipping h1 > < img src="Our_template/images/blue-bar.jpg "width ="775"height ="10"alt =" "/ > < / h1 > < table >
< td width = "15" bgcolor = "#FBF5F6" > < table >
< /tr >
< b >
< td bgcolor = "#FBF5F6" > < table >
< td bgcolor = "#FBF5F6" > < table >
< td bgcolor = "#FBF5F6" > < table >
< /tr >
< b >
< td bgcolor = "#FBF5F6" > < table >
< td bgcolor = "#FBF5F6" > < table >
< td bgcolor = "#FBF5F6" > < table >
< /tr >
< b >
< td bgcolor = "#FBF5F6" > < table >
< td bgcolor = "#FBF5F6" > < table >
< td bgcolor = "#FBF5F6" > < table >
< /tr >
< / tbody >
< /table >
< / body >
< / html >
Rather than using the sledgehammer that Ben and mages have recommended why not use a scalpel?
Try to change this-
Expedition to the France
on this subject.
Expedition to the France
-
Error link database to MySQL when using variables
Hi guys
I currently have a database of hava link to MySQL. I can read, insert, delete and update without any problem when using literals. However when I try to perform the same actions using pl/sql variables, I get the following error:
ORA-02055: distributed update operation failed. Rollback required
ORA-02068: following a serious error of AAA1
ORA-28511: interruption of the RPC connection to heterogeneous remote agent using SID = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = ProdDB.btl)(PORT=1527) .net) (CONNECT_DATA = (SID = AAA1)))
ORA-06512: at line 15 level
You kindly give me some suggestions?
PL/SQL code
Declare
MSISDN2 tank (8);
IMSI2 number (28.0);
ICC2 number (28.0);
CNT number (28.0);
Begin
MSISDN2: = 610-0850';
IMSI2: = 8950167090300132451;
ICC2: = 702670161017765;
Delete "SUBSCRIBERS"@AAA1 where "MSISDN" = MSISDN2; -'ICC' = ICC2 or 'IMSI' = IMSI2;
End;
-----------------------------------------------------------------------------------------------------------
System information:
Oracle Database 10.2.0.5.0 under Redhat Linux 64-bit
Database portals Oracle ODBC 11.2.0.1.0 on the same machine as above
UnixODBC - 3.2.1 compiled in 64-bit on the same machine so
MySQL ODBC connector DriverVer:05.02.0002
------------------------------------------------------------------------------------------------------
ODBC DSN
;
; ODBC.ini configuration for MYODBC and MYODBC 3.51 drivers
;
[ODBC data sources]
AAA1 = pilot 5.2.2 MyODBC DSN
[AAA1]
Driver = /usr/lib64/libmyodbc5w.so
Description = driver MYODBC DSN 5.52
SERVER = 10.50.18.89
USER = tytancc2
Password = xxxxxx
Database = radiator
OPTION = 3
CHARSET = latin1
Trace = yes
Trace file = /tmp/unixodbc.sql.log
Debug = 1
Debugfile = /tmp/unixodbc.debug.log
---------------------------------------------------------------------------------------
File hs
# This is an example of initialization file of the agent that contains the HS settings
# necessary for the database to ODBC gateway
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = AAA1
#HS_FDS_TRACE_LEVEL = 255
HS_FDS_TRACE_LEVEL = DEBUG
#HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5w.so
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so.2
HS_FDS_SQLLEN_INTERPRETATION = 32
#HS_LANGUAGE = AMERICAN_AMERICA. AL32UTF8
#HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P15
#HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
HS_LANGUAGE = AMERICAN_AMERICA. LATIN1
HS_FDS_FETCH_ROWS = 1
#HS_NLS_NCHAR = UCS2
#HS_OPEN_CURSORS = 10
#
# ODBC specific environment variables
#
Set ODBCINI=/u01/oracle/.odbc.ini
Set ODBCINSTINI=/etc/odbcinst.ini
#
# Required for the non-Oracle system environment variables
#
set LD_LIBRARY_PATH = / usr/lib64
--------------------------------------------------------------------------------------------
Trace file
Oracle Corporation - 22:01:40.555 Friday, February 8, 2013
Heterogeneous Agent release
11.2.0.1.0
Oracle Corporation - 22:01:40.549 Friday, February 8, 2013
Version 11.2.0.1.0
Hgogprd entries
HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'DEBUG '.
Hgosdip entries
default assignment of 50 HS_OPEN_CURSORS
setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
HS_FDS_RECOVERY_PWD layout to the default
default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
HS_IDLE_TIMEOUT layout to the default 0 value
layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
layout by default «AL32UTF8» HS_NLS_NCHAR
layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
layout HS_FDS_DATE_MAPPING default 'DATE '.
layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
HOSGIP returned the value of '1' for HS_FDS_FETCH_ROWS
parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
parameter HS_FDS_CHARACTER_SEMANTICS default 'FALSE '.
parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
parameter HS_FDS_SUPPORT_STATISTICS default 'FALSE '.
The HS_FDS_QUOTE_IDENTIFIER parameter is not defined
setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
HOSGIP returned the value "32" for HS_FDS_SQLLEN_INTERPRETATION
HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
HS_FDS_WORKAROUNDS layout by default "0".
Release of hgosdip, rc = 0
ORACLE_SID is "AAA1.
Product information:
Port RLS / Upd:1 / 0 PrdStat:0
Agent: Oracle Database Gateway for ODBC
: Installation
Class: ODBC, ClassVsn:11.2.0.1.0_0008, Instance: AAA1
Release of hgogprd, rc = 0
Hgoinit entries
HOCXU_COMP_CSET = 1
HOCXU_DRV_CSET = 31
HOCXU_DRV_NCHAR = 873
HOCXU_DB_CSET = 31
HOCXU_SEM_VER = 102000
Entry hgolofn to 2013/02/08-22: 01:40
HOSGIP to 'HS_FDS_SHAREABLE_NAME' returned ' / usr/lib64/libodbc.so.2 '.
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a08f61
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a090e5
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a09c18
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a0b6dc
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a17bc4
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a182e8
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a1bc40
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a1dad8
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a1e6dc
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a20bae
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a20bd0
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a22f44
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a276d4
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a27b90
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2a4a4
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2b574
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2b99c
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2e65c
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2ecd0
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a31db8
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a31ac0
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a0c47c
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a0e884
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a14943
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a1714a
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a19327
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a1d2ce
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a1f648
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a210c7
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a23990
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2414c
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a25d26
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a26cc0
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a288a8
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a28c67
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a29e88
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2c51e
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2ccfa
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2d5c0
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2de92
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a2f088
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a33fa4
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a315fe
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a36de2
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Entry hgolofns to 2013/02/08-22: 01:40
symbol_peflctx = 0x31a380ec
hoaerr:0
Output hgolofns to 2013/02/08-22: 01:40
Release of hgolofn, rc = 0 to 2013/02/08-22: 01:40
HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
HOSGIP to 'HS_FDS_FETCH_ROWS' returned '1 '.
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
treat_SQLLEN_as_compiled = 0
Release of hgoinit, rc = 0 to 2013/02/08-22: 01:40
Entry hgolgon to 2013/02/08-22: 01:40
name: tytancc2, reco:0, tflag:0
Entry hgosuec to 2013/02/08-22: 01:40
Release of hgosuec, rc = 0 to 2013/02/08-22: 01:40
HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.
HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
using tytancc2 as the default value to "HS_FDS_DEFAULT_OWNER".
HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
Entry hgocont to 2013/02/08-22: 01:40
HS_FDS_CONNECT_INFO = "AAA1.
RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
Entry hgogenconstr to 2013/02/08-22: 01:40
DSN:AAA1, name: tytancc2
OPTN:
Entry hgocip to 2013/02/08-22: 01:40
DSN:AAA1
Release of hgocip, rc = 0 to 2013/02/08-22: 01:40
Release of hgogenconstr, rc = 0 to 2013/02/08-22: 01:40
Entry hgolosf to 2013/02/08-22: 01:45
Release of hgolosf, rc = 0 to 2013/02/08-22: 01:45
DriverName:libmyodbc5w.so, DriverVer:05.02.0002
Name of DBMS: MySQL, DBMS Version: 5.1.66 - community-newspaper
Release of hgocont, rc = 0 to 2013/02/08-22: 01:45
SQLGetInfo Returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 192 for SQL_MAX_CATALOG_NAME_LEN
Release of hgolgon, rc = 0 to 2013/02/08-22: 01:45
Entry hgoulcp to 2013/02/08-22: 01:45
Entry hgowlst to 2013/02/08-22: 01:45
Release of hgowlst, rc = 0 to 2013/02/08-22: 01:45
SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
Able TXN: isolation 3, Option: 0xf
SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 192 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 192 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns (0 x 60) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo Returns Y for SQL_COLUMN_ALIAS
16 functions for instance will be uploaded
context: 0x00000000, capno:1964, add info: 0
context: 0x00000000, capno:1989, add info: 0
context: 0x0001ffff, capno:1991, add info: 0
«"" context: 0x0001ffff, capno:1992, info-add: 1, translation:»»»
context: 0x00000000, capno:3042, add info: 0, translation: "42".
context: 0x00000000, capno:3047, add info: 0, translation: "57."
context: 0x00000000, capno:3049, add info: 0, translation: "59".
context: 0x00000000, capno:3050, add info: 0, translation: "60".
context: 0x00000000, capno:3066, add info: 0
context: 0x00000000, capno:3067, add info: 0
context: 0x00000000, capno:3068, add info: 0
context: 0x00000000, capno:3069, add info: 0
capno:3500, context: 0x00000001, add info: 91, translation: "42".
capno:3501, context: 0x00000001, add info: 93, translation: "57."
capno:3502, context: 0x00000001, add info: 107, translation: "59".
capno:3503, context: 0x00000001, add info: 110, translation: "60".
Release of hgoulcp, rc = 0 to 2013/02/08-22: 01:45
Entry hgouldt to 2013/02/08-22: 01:45
NO translation of DD for instance have been downloaded
Release of hgouldt, rc = 0 to 2013/02/08-22: 01:45
Entry hgobegn to 2013/02/08-22: 01:45
tflag:0, original: 1
Hoi:0x9671a48, ttid (len 26) is...
00: 54595441 4E2E6438 32323564 62642E32 [TYTAN.d8225dbd.2]
10: 3433 33313031 [9.7.310143] 392E372E
tbid (len 10) is...
0: 1-000700 7FBB0400 0104 [...]
Release of hgobegn, rc = 0 to 2013/02/08-22: 01:45
Entry hgopdsc to 2013/02/08-22: 01:45
Describing the procedure SUBSCRIBERS
Output hoada
hgopdsc, line 1406: NO hoada to print
Release of hgopdsc, rc = 942 to 2013/02/08-22: 01:45
Entry hgodtab to 2013/02/08-22: 01:45
number: 1
Table: SUBSCRIBERS
Allocate hoada [0] @ 0x3a23590
Entry hgopcda to 2013/02/08-22: 01:45
Column:1 (MSISDN): dtype:1 (CHAR), prc / scl:8 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:2 (IMSI): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 10
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:3 (ICC): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 10
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:4 (CHECKATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:5 (REPLYATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:6 (TIMELEFT): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:7 (ELIMINATED): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:8 (Suspended): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
The hoada for SUBSCRIBERS table follows...
hgodtab, line 876: print hoada @ 0x3a23590
MAX: 8, REAL: 8, BRC:1, WHT = 6 (TABLE_DESCRIBE)
hoadaMOD bit-values found (0x200: TREAT_AS_CHAR, 0x20: NEGATIVE_HOADADTY)
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
1 TANK N 8 8 0 / 0 0 0 200 MSISDN
-5 BIGINT 8 8 N 0 / 0 0 0 20 IMSI
-5 BIGINT 8 8 N 0 / 0 0 0 20 ICC
1 CHAR Y 200 200 0 / 0 0 0 200 CHECKATTR
1 CHAR Y 200 200 0 / 0 0 0 200 REPLYATTR
-5 BIGINT Y 8 8 0 / 0 0 0 20 TIMELEFT
-5 BIGINT Y 8 8 0 / 0 0 0 20 ELIMINATED
-5 BIGINT Y 8 8 0 / 0 0 0 20 SUSPENDED
Release of hgodtab, rc = 0 to 2013/02/08-22: 01:45
Entry hgodafr, cursor IDs 0 to 2013/02/08-22: 01:45
Free Hoada @ 0x3a23590
Release of hgodafr, rc = 0 to 2013/02/08-22: 01:45
Entry hgopars, id of cursor 1 to 2013/02/08-22: 01:45
type: 0
Text SQL hgopars, id = 1, len = 134...
45 00: 53454 C 43542041 53495344 312E604D [SELECT A1.'MSISD]
10: 4E602C41 4 534960 2C41312E 312E6049 [NO, A1.] "IMSI', A1.]
20: 60494343 602C 4131 2E604348 45434B 41 ['ICC', A1' COACHA]
30: 54545260 60524550 4 594154 2C41312E [TTR ', A1' REPLYAT]
40: 5452602 C 54494 45 4 454654 41312E60 [TR ', A1' TIMELEFT]
50: 602C 4131 2E60454C 494D494E 41544544 [', A1.'] ELIMINATED]
60: 602C 4131 2E605355 5350454E 44454460 [', 'SUSPENDED' A1.]
70: 4 206053 55425343 52494245 2046524F [A ' SUBSCRIBE]
80: 52536020 4131 [RS A1]
Release of hgopars, rc = 0 to 2013/02/08-22: 01:45
Entry hgoopen, id of cursor 1 to 2013/02/08-22: 01:45
hgoopen, line 86: NO hoada to print
Delayed open until the first fetch.
Release of hgoopen, rc = 0 to 2013/02/08-22: 01:45
Entry hgodscr, id of cursor 1 to 2013/02/08-22: 01:45
Allocate hoada @ 0x3a23538
Entry hgopcda to 2013/02/08-22: 01:45
Column:1 (MSISDN): dtype:1 (CHAR), prc / scl:8 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:2 (IMSI): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:3 (ICC): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:4 (CHECKATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:5 (REPLYATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:6 (TIMELEFT): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:7 (ELIMINATED): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
Entry hgopcda to 2013/02/08-22: 01:45
Column:8 (Suspended): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
hgodscr, line 880: print hoada @ 0x3a23538
MAX: 8, REAL: 8, BRC:1, WHT = 5 (SELECT_LIST)
hoadaMOD bit-values found (0x200: TREAT_AS_CHAR, 0x20: NEGATIVE_HOADADTY)
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
1 TANK N 8 8 0 / 0 0 0 200 MSISDN
-5 BIGINT 8 8 N 0 / 0 0 0 20 IMSI
-5 BIGINT 8 8 N 0 / 0 0 0 20 ICC
1 CHAR Y 200 200 0 / 0 0 0 200 CHECKATTR
1 CHAR Y 200 200 0 / 0 0 0 200 REPLYATTR
-5 BIGINT Y 8 8 0 / 0 0 0 20 TIMELEFT
-5 BIGINT Y 8 8 0 / 0 0 0 20 ELIMINATED
-5 BIGINT Y 8 8 0 / 0 0 0 20 SUSPENDED
Release of hgodscr, rc = 0 to 2013/02/08-22: 01:45
Entry hgoclse, id of cursor 1 to 2013/02/08-22: 01:46
Release of hgoclse, rc = 0 to 2013/02/08-22: 01:46
Entry hgodafr, id of cursor 1 to 2013/02/08-22: 01:46
Free Hoada @ 0x3a23538
Release of hgodafr, rc = 0 to 2013/02/08-22: 01:46
Entry hgopars, id of cursor 1 to 2013/02/08-22: 01:46
type: 0
Text SQL hgopars, id = 1, len = 56...
45 00: 44454 C 54452046 60535542 524F4D20 [DELETE OF ' SUB]
10: 53435249 42455253 60205748 45524520 [OF THE TRUSQUINS WHERE]
20:60535542 53435249 602E604D 42455253 ["SUBSCRIBERS". AM]
30: 53495344 4E603D3F [SISDN'=?]
Release of hgopars, rc = 0 to 2013/02/08-22: 01:46
Entry hgoexec, id of cursor 1 to 2013/02/08-22: 01:46
octype = 3 (REMOVE)
hgoexec, line 108: print hoada @ 0x3a23538
MAX: 1, SIZE: 1, BRC:1, WHT = 3 (BIND_LIST)
hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
1 TANK N 8 0 0 / 0 31 0 200?
Entry hgoprbv to 2013/02/08-22: 01:46
hgoprbv, line 145: print hoada @ 0x3a23538
MAX: 1, SIZE: 1, BRC:1, WHT = 3 (BIND_LIST)
hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
1 TANK N 8 0 0 / 0 31 0 200?
Release of hgoprbv, rc = 0 to 2013/02/08-22: 01:46Could you please put the table in the MySQL table definition is defined in the MySQL database and the way she is described using the database link (desc 'SUBSCRIBERS"@AAA1)
What happens when you comment the gateway init parameter:
HS_FDS_SQLLEN_INTERPRETATION = 32?Thank you
KlausPublished by: kgronau on February 11, 2013 07:37
Successfully tested the DG4ODBC 11.2.0.3 by the definition of a table in MySQL:
drop table CUSTOMERS;
create table CUSTOMERS (MSISDN char (8), numeric (28.0) IMSI2, ICC2 numeric (28.0), NTC numeric (28.0));
insert into CUSTOMERS values (610-0850', 8950167090300132451, 702670161017765, NULL);and by using this code:
SQL > select count (*) from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB;COUNT (*)
----------
1SQL > declare
2
3 MSISDN2 tank (8);
4 IMSI2 number (28.0);
5 ICC2 number (28.0);
6 NTC number (28.0);
7
Begin 89 10 MSISDN2: = 610-0850';
11 IMSI2: = 8950167090300132451;
12 ICC2: = 702670161017765;
13
14 remove from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB where"MSISDN"= MSISDN2;
15 ' ICC' = ICC2 or "IMSI" is IMSI2;.
16
End 17;
18.PL/SQL procedure successfully completed.
SQL > select count (*) from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB;
COUNT (*)
----------
0Published by: kgronau on February 11, 2013 07:51
Also successfully tested using DG4ODBC Oracle 11.2.0.1 database and 10.2.0.5
-
NullPointerException when getting the serial port.
Hello
I use the comm.jar to get the serial port, but failed.
Error log:
java.lang.NullPointerException: name cannot be null
at java.io.FilePermission.init(FilePermission.java:171)
to java.io.FilePermission. < init > (FilePermission.java:249)
at java.lang.SecurityManager.checkDelete(SecurityManager.java:990)
at javax.comm.CommPortIdentifier.getPortIdentifiers(CommPortIdentifier.java:24)
I check the code in comm.jar.
public static enumeration getPortIdentifiers()
{
SecurityManager securitymanager = System.getSecurityManager ();
If (securitymanager! = null)
securitymanager.checkDelete (propfilename);
return new CommPortEnumerator();
}
Because securitymanager is not null, call checkDelete (propfilename). If securitymanager is null, all is well.
Issues related to the:
1. What is the function of the SecurityManager here, is the default value of null?
2.i put the comm.jar in my class path, see also the win32com.dll file. But what is the cause of the error?
Thanks in advance!Duplicate of NullPointerException when getting sΘrie
Please post questions only once. It is impolite to post several times.
-
wrong values when using NOT EXISTS
Greedings,
I have a problem when using NOT exists in a query
for example, in the following query im trying to recover the unit costs (column) with the code (column), '55210' if the order of this unit cost is included in another table and the order of the 2nd table does not exist in a 3rd table.
Thanks in advance for any advice
SELECT c.unit_cost from amounts c WHERE trim(c.code)='55210' AND EXISTS (SELECT * from order_record a where trim(c.order_no)=trim(a.L1)) AND NOT EXISTS (SELECT * FROM invoice_voucher b,amos_order_record a WHERE Trim(b.F1)!=trim(a.L1)
You don't seem to have linked one of your tables in NOT EXISTS (i.e. invoice_voucher b, amos_order_record one) to the parent table (amount c)
-
Editable JTable fire NullPointerException when user input
Dear Experts,
I received this Swing of Herbert Schildt - A Beginner's Guide book code.
The problem I can't prevent NullPointerException when I press BACKSPACE until the editable cell is empty and I move the selection to another cell. I don't know what steps I have to take. Should I try to prevent the user from changing selection when the editable cell is empty? Or should I try to replace the content with a value such as 0 in this situation? In any case, I have no idea how to do it. Any guidance is appreciated.package testcode; import java.awt.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.table.*; import java.text.*; class MoneyRenderer extends DefaultTableCellRenderer { public Component getTableCellRendererComponen(JTable jtab, Object v, boolean selected, boolean focus, int r, int c) { JLabel rendComp = (JLabel)super.getTableCellRendererComponent(jtab, v, selected, focus, r, c); NumberFormat nf = NumberFormat.getCurrencyInstance(); if (((Double)v).doubleValue() != 0.0) rendComp.setText(nf.format(v)); else rendComp.setText(""); return rendComp; } } class TipModel extends AbstractTableModel { int numRows; String colNames[] = {"Price", "10% Tip", "15% Tip", "20% Tip", "Suggested" }; double[] other; TipModel(int len){ super(); numRows = len; other = new double[numRows]; } public int getRowCount() {return numRows;} public int getColumnCount() {return 5;} public String getColumnName(int c) { return colNames[c]; } public Object getValueAt(int r, int c) { if(c==0) return new Double(r+1); else if(c>0 & c<4) return new Double((r+1) * (c+1)*0.05); else return new Double(other[r]); } public void setValueAt(Object v, int r, int c){ if(c==4){ other[r]=((Double)v).doubleValue(); fireTableCellUpdated(r, c); } } public boolean isCellEditable(int r, int c){ if(c==4) return true; else return false; } public Class getColumnClass(int c){ return Double.class; } } class TipTable { JTable jtabTip; JLabel jlab; TipTable(int size){ JFrame jfrm = new JFrame("A Tip Calculator"); jfrm.getContentPane().setLayout(new FlowLayout()); jfrm.setSize(500, 200); jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); jlab = new JLabel(); jtabTip = new JTable(new TipModel(size)); JScrollPane jscrlp = new JScrollPane(jtabTip); jtabTip.setPreferredScrollableViewportSize(new Dimension(450, 80)); jtabTip.setDefaultRenderer(Double.class, new MoneyRenderer()); ListSelectionModel lsm = jtabTip.getSelectionModel(); lsm.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); TableModel tm = jtabTip.getModel(); tm.addTableModelListener(new TableModelListener(){ public void tableChanged(TableModelEvent tme){ jlab.setText("New suggested tip: " + NumberFormat.getCurrencyInstance().format(jtabTip.getModel().getValueAt(tme.getFirstRow(), tme.getColumn()))); } }); jfrm.getContentPane().add(jscrlp); jfrm.getContentPane().add(jlab); jfrm.setVisible(true); } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub SwingUtilities.invokeLater(new Runnable() { public void run(){ new TipTable(100); } }); } }
Thank you
PatrickOr should I try to replace the content with a value such as 0 in this situation?
Seems reasonable
In any case, I have no idea how to do it.
If value is set to 0 nothing, otherwise convert the value to double.
-
How to set the distribution desc when using interface to import bills of the AP
I'm working on the importation of processing AP invoices, and there is a problem for me in the future.
I'm still not find a way to set the description of distribution ap invoice when using interface to import bills of the AP. The version of the application is 12.1.1.
Does anyone have any suggestions?
Thanks in advance!Hello.
The DESCRIPTION column in table AP_INVOICE_LINES_INTERFACE does not serve for this purpose?
Octavio
-
screen saver turns on when using FaceTime
Since the update to MAC OS Sierra, I noticed that my screensaver activates when using FaceTime - most annoying because I have to quickly move the mouse to put it all again.
He didn't get it until I've updated from El capitan, so I guess it's something to do with MacOS Sierra.
He's not doing it with Youtube but I'm still trying with Skype.
Screen saver works as it should do it with an ordinary application (for example, safari, etc.) Pages) if I don't move the mouse or keyboard for the specified time (five minutes).
I do not have hot set of corners, the display is set on turn off (energy prefs is system) after 10 minutes. Screen saver is five minutes of inactivity.
I have an iMac 27 "retina, first generation (a little less than two years) with i5 and 16 gig memory, standard graphics M290X.
I missed easy adjustment here?
I have it, feel also my parents as well.
-
Why can I never get a good picture on my imac when using Skype?
Why can I never get a good picture on my imac when using Skype?
I use the free Skype to talk to my friend in China every week. They always see me on their computer or phone clearly, but I can never get a good video of them, clues why? I see a good image of myself, but never of them. I can't adjust the settings of the built-in camera because they are fixed. Is this my router modem, which is 8 years old now. What is causing this problem. If you look on YouTube there are hundreds and thousands of good quality webcam videos then why am I having this eternal problem year after year? I've got El Capitan OSX
If they can see you clearly, the problem is not on your side - at least not in your Mac. Could be the router or you internet connection. Otherwise: https://support.skype.com/en/skype/mac/
-
When using on the part of the family can they others besides Organizer individual payments?
When using on the part of the family can others besides the Organizer make individual payments without using the card of the organizers?
Family sharing makes it easy for up to 6 people in your family share each other iBooks, iTunes and App Store purchases without sharing accounts.
"Pay for purchases with the same credit card families and approve kids' expenses directly from the device of a parent." And share photos, a family calendar and more to help keep everyone connected. »
Maybe you are looking for
-
How can I make the content moves WITH the frame as it is to the left or the right. O.K. works in upwards or downwards direction. If the chassis has been moved to the right, leaving the fixed content, the "buttons" don't work until the frame is moved
-
HP Pavilion g7-2259nr Notebook: unable to find the windows 7 enterprise product key
I read all the product key mentioned in the forum issues, but I don't see my problem. I have a used laptop with no product key or any other information except fpr the model and serial number. They say that the product key is emmbedded in the computer
-
I would like to delete some files, but I don't know if it will affect my computer
That is to say, modern diagnostic tool files msxml or application support apple or arcsoft digital line detect
-
Another application is already listening to the application ID - PushWoosh
I'm developing an application of crossed with phonegap and Jquery mobile platform. I'm trying to implement push notifications for the blackberry application using PushWoosh. After installing the application, I am able to successfully save and receive
-
I cut and pasted the following code on the forum which is supposed to work. protected boolean keyDown (int keyCode, int time) {} If (Keypad.key (keycode) == Keypad.KEY_CONVENIENCE_1) {} takeSnapShot(); Returns true; } Return super.keyDown (keycode, t