Problem with including types into other type...
Hi Experts,
here i ve created 2 table types like:
TYPES: BEGIN OF t_pr_ps_rpsco,
pspnr1 LIKE prps-pspnr,
posid LIKE prps-posid,
abgsl LIKE prps-abgsl,
pspid LIKE proj-pspid,
pspnr LIKE proj-pspnr,
END OF t_pr_ps_rpsco.
DATA: it_pr_ps_rpsco TYPE STANDARD TABLE OF t_pr_ps_rpsco WITH HEADER LINE,
wa_it_pr_ps_rpsco TYPE t_pr_ps_rpsco.
TYPES: BEGIN OF i_copy,
include above type ( t_pr_ps_rpsco )
projn LIKE afvc-projn,
vornr LIKE afvc-vornr,
pspel LIKE aufk-pspel,
aufnr LIKE aufk-aufnr,
END OF i_copy.
how to add my above type into below.
Rgds,
sudeer.
Hi Kumar,
You can do this way.
types: begin of t_pr_ps_rpsco,
pspnr1 like prps-pspnr,
posid like prps-posid,
abgsl like prps-abgsl,
pspid like proj-pspid,
pspnr like proj-pspnr,
end of t_pr_ps_rpsco.
data: it_pr_ps_rpsco type standard table of t_pr_ps_rpsco with header
line,
wa_it_pr_ps_rpsco type t_pr_ps_rpsco.
types: begin of i_copy,
pr_ps_rpsco type t_pr_ps_rpsco,
projn like afvc-projn,
vornr like afvc-vornr,
pspel like aufk-pspel,
aufnr like aufk-aufnr,
end of i_copy.
Regards
Raja.
Similar Messages
-
Problems with reference field in material type
Hi,
I have problem with field reference in material type creation.
When I define a self-defined field reference ZERS (copy of standard field reference HERS) for a own defined material type ZERS (copy of material type HERS), I get the following error message:
Field reference ZERS has not been set up
Message no. CZ127
Diagnosis
You have specified a field reference that has not been set up.
Procedure
Set up the new field reference or use an already existing field reference.
I do not understand why because the entry ZERS is present in table T130A.
Here is the IMG config I have made:
1. Logistics general->Material Master->Field selection->Maintain field selection for Data Screens (here I made copy of field reference HERS and named it ZERS)
2. Logistics general->Material Master->Basic Settings->Material types->Define attributes of Material types (here I made a copy of material type HERS and named it ZERS. I then tried to set the field T134-FLREF "Field reference" to ZERS, but then the error message appears)
Does anyone know what config I am missing?
Or any reason why the error message CZ127 is coming up?
ThanksMust have been system error, I deleted all entries and did it all over again, it worked.
-
my phone is iphone 4 (GSM)-american type with IOS5.011 , i have problem with sim card failer (korek type)
Sounds like your iPhone is locked to AT&T. Contact them to see
if you qualify for unlocking.
This link may provide some assistance:
unlocking AT&T iPhones (thanks to wjosten for the link)
http://www.att.com/esupport/article.jsp?sid=KB414532#fbid=Ont7guWFCdY -
Problems with importing images into Lightroom cc
Problems with importing images into Lightroom cc
I have installed lightroom cc and having trouble imortera images from my Canon 1DX.
Lightroom starting the capture, but then nothing happens more, if I turn off the camera, I get error message photo 100-200 could not be loaded.
Now I have left lightroom 5 and where the input port works fine.
What happened to the upgrade from Lightroom 5 to lightroom cc?
The camera has the latest software.I've now tested in various ways.
First, I have images on both memory cards in the camera.
Test1) Selects Not all of the photos in the camera at the input port bearings, it seems to work fine.
Test 2) selects all cards in the camera and then get the following, Lightroom starts inportera short but stops and nothing happens (Fig.1).
I turn the camera off after a while and get the next meddelnade (picture 1)
Which can be translated:
"The following files were not imported because they could not read (351)
Property 1-100
etc. "
Picture 1.
Picture 2 -
Messages from one of my contacts shows up on my iPhone but not on my iPad. I don't have similar problems with any of my other contacts. Any ideas on how to troubleshoot this?
Does your iPhone and iPad use the same address for Messages?
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
iOS: FaceTime is 'Unable to verify email because it is in use'
http://support.apple.com/kb/TS3510
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Troubleshooting iMessage Issues: Some Useful Tips You Should Try
http://www.igeeksblog.com/troubleshooting-imessage-issues/
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
Fix Can’t Sign Into FaceTime or iMessage iOS 7
http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
FaceTime, Game Center, Messages: Troubleshooting sign in issues
http://support.apple.com/kb/TS3970
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
How to Block Someone on FaceTime
http://www.ehow.com/how_10033185_block-someone-facetime.html
My Facetime Doesn't Ring
https://discussions.apple.com/message/19087457
Send an iMessage as a Text Message Instead with a Quick Tap & Hold
http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
How to Send SMS from iPad
http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
You can check the status of the FaceTime/iMessage servers at this link.
http://www.apple.com/support/systemstatus/
Cheers, Tom -
Problem with file access in other computer in jsp
I have problem with file accessing in other computer in jsp.
The follow code
File folder=new File("Z:"+File.separator+"sharefolder");//Z is a net share driver
File[] files=folder.listFiles();
System.out.println("test");
System.out.println("length="+files.length);
will throw exception at the second print.
but it works well in main funtion.
Is anybody know what is the problem.
JSP works on windows2003 server,tomcat 5.0.28 JDK1.4 net share folder on windows2000 serverno error code for this.But when I start tomcat I get the follow error.
java.lang.IllegalArgumentException: Document base Z:\ does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4138)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Jun 5, 2006 6:55:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jun 5, 2006 6:55:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jun 5, 2006 6:55:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jun 5, 2006 6:55:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
LifecycleException: Container StandardContext[msgstore] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4466)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) -
I installed Lion and now seem to have problems with Microsoft Silverlight and other plug ins and applications. I haven't ever used time machine to back up (my bad I know). Is there a way to go back to snow leopard with messing up all my files and my set?
Are you using the latest version of Silverkeeper? - v.2.0.2 is stated to be compatible with Snow Leopard.
http://www.lacie.com/silverkeeper/
If it's messing things up you could try asking LaCie Support for assistance. -
Hi, I have a macbook pro 17" 2.4ghz intel core 2 duo 2007, will upgrading to Yosemite slow me down or create problems with my Iphone or other app ?
Yes, i do not suggest upgrading right now. There is some software malfunction or glitch that spontaneously shuts down this specific model. I upgraded and it was a pain to downgrade and make my mac usable again.
-
Dear all: I have a problem with my iPad, the "other" part of the capacity summary keeps growing like ****, every time I sync the iPad gets bigger and bigger. What is this "other" and what do I do to keep it from getting bigger? Thanks to all!
Marcos,
I did not try your trick, didn't see your post until after i visited the Apple store. The tech at the genius bar did not know why my "Other" memory had grown so huge. It was over 24GB, which only left me with 1 GB free on my 32GB iPad. I had been loading and unloading video's yesterday thru itunes to try various compression settings. I did not notice the other categrory growing until I tried to load a 3 GB movie file and it told me I was out of memory.
I probably loaded and unloaded 30 different times, trying different compression settings. In the process of doing this, it apparently loaded up the "Other: stuff. To me it seems like recycle bin in windows, but no one knows how to free it up.
So here is what he did and it worked. He reset the iPad. Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears. Then he hooked it up to itunes on his computer. Fortunately I have everything backed up on my home computer. When my iPad showed up on iTunes at the store, it showed the 24 MB of "Other" momentarily, then it reduced to about .7 GB giving me 24.5 GB free. Resetting it seemed to do the trick, but he still could tell me how this is happening and how to prevent it.
I think I'll try to call someone at applecare to get an explanation, hopefully. -
Lines around type and other type/text problems in Dreamweaver CS3
Dear Dreamweaver forum:
Good news/bad news,
First the good news…
My thanks to a forum member by the name of Mylenium. With Mylenium's advice I have improved my halo problem by including a black background when I save type in Illustrator CS3 as part of importing it into Dreamweaver CS3.
However, the bad news, is that I’m still having type and text problems.
Problem area 1
Now, in Dreamweaver, I’m getting lines appearing around the type.
I am dragging and dropping the .gif type file into a Dreamweaver Div Tag.
How do I get rid of the lines around the type so that they do not show up in the Safari browser?
(Please see below)
Problem area 2
I cannot drag and drop text from a Word .doc file into a Dreamweaver div tag.
I also cannot copy and paste Word .doc text into a div tag.
How do I include text on my webpage without having to manually type it in?
(Please see below)
Any help would be appreciated. Thanks!
From within Dreamweaver CS3, how do I place text? Dragging and droppign the file does not work.
This is screenshot of what I see so far when I use Safari to test what I have made so far in Dreamweaver CS3.
I get lines around type.........not usually a good thing.........How do I fix it?
The way I created the portfolio type in IllustratorCS3 using the File > Save for Web and Devices. I then imported the resulting .gif file so that it was within my root folder within the Files panel within Dreamweaver CS3.
Am I doing this right?Hi
The problems you are experiencing with the image text, (why are you using image text, these days?) is probably cause by the image having a border when created in illustrator, or the image size being set incorrectly.
As for the word text if you are using windows, see http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ce6.html.
On the mac it is a little more complex, save your word doc as html, then apply the 'clean up word html files', (see - http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ef5.html) copy the relevant text and mark-up from the word html file, and paste into your html document in the required position.
PZ
www.pziecina.com -
Problems with java constructor: "inconsistent data types" in SQL query
Hi,
I tried to define a type "point3d" with some member functions, implemented in java, in my database. Therefor I implemented a class Point3dj.java as you can see it below and loaded it with "loadjava -user ... -resolve -verbose Point3dj.java" into the database.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
package spatial.objects;
import java.sql.*;
public class Point3dj implements java.sql.SQLData {
public double x;
public double y;
public double z;
public void readSQL(SQLInput in, String type)
throws SQLException {
x = in.readDouble();
y = in.readDouble();
z = in.readDouble();
public void writeSQL(SQLOutput out)
throws SQLException {
out.writeDouble(x);
out.writeDouble(y);
out.writeDouble(z);
public String getSQLTypeName() throws SQLException {
return "Point3dj";
public Point3dj(double x, double y, double z)
this.x = x;
this.y = y;
this.z = z;
public static Point3dj create(double x, double y, double z)
return new Point3dj(x,y,z);
public double getNumber()
return Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);
public static double getStaticNumber(double px, double py, double pz)
return Math.sqrt(px*px+py*py+pz*pz);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Additionally, I created the corresponding type in SQL by
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CREATE OR REPLACE TYPE point3dj AS OBJECT EXTERNAL NAME
'spatial.objects.Point3dj' LANGUAGE JAVA USING SQLDATA (
x FLOAT EXTERNAL NAME 'x',
y FLOAT EXTERNAL NAME 'y',
z FLOAT EXTERNAL NAME 'z',
MEMBER FUNCTION getNumber RETURN FLOAT
EXTERNAL NAME 'getNumber() return double',
STATIC FUNCTION getStaticNumber(xp FLOAT, yp FLOAT, zp FLOAT) RETURN FLOAT
EXTERNAL NAME 'getStaticNumber(double, double, double) return double')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After that I tried some SQL commands:
create table pointsj of point3dj;
insert into pointsj values (point3dj(2,1,1));
SELECT x, a.getnumber() FROM pointsj a;Now, the problem:
Everything works fine, if I delete the constructor
public Point3dj(double x, double y, double z)
this.x = x;
this.y = y;
this.z = z;
in the java class, or if I replace it with a constructor that has no input arguments.
But with this few code lines in the java file, I get an error when executing the SQL command
SELECT x, a.getnumber() FROM pointsj a;The Error is:
"ORA-00932: inconsistent data types: an IN argument at position 1 that is an instance of an Oracle type convertible to an instance of a user defined Java class expected, an Oracle type that could not be converted to a java class received"
I think, there are some problems with the input argument of the constructor, but why? I don't need the constructor in SQL, but it is used by a routine of another java class, so I can't just delete it.
Can anybody help me? I would be very glad about that since I already tried a lot and also search in forums and so on, but wasn't successful up to new.
Thanks!Dear Avi,
This makes sense when it is a short code sample (and i think i've done that across various posts), but sometime this is too long to copy/paste, in these cases, i refer to the freely available code samples, as i did above on this forum; here is the quote.
Look at examples of VARRAY and Nested TABLES of scalar types in the code samples of my book (chapter 8) http://books.elsevier.com/us//digitalpress/us/subindex.asp?maintarget=companions/defaultindividual.asp&isbn=9781555583293&country=United+States&srccode=&ref=&subcode=&head=&pdf=&basiccode=&txtSearch=&SearchField=&operator=&order=&community=digitalpress
As you can see, i was not even asking people to buy the book, just telling them where to grab the code samples.
I appreciate your input on this and as always, your contribution to the forum, Kuassi -
Problem with sorting involving user defined types and reports
Hello!
I have a problem with sorting involving Reports and user defined objet types.
I have created the following object types
CREATE TYPE type_balance_compte AS OBJECT
NUM_CPT_SEQ NUMBER(8)
,NUM_CPT VARCHAR2(35)
CREATE TYPE TB_type_balance_compte IS TABLE OF type_balance_compte
At the reports query I use:
SELECT ...
FROM table(cast(test_pkg.balance_comptes(:P_num_soc) as TB_type_balance_compte)) c
The procedure balance_comptes will retrieve data from various tables into the type.
The report is ordered by a certain string field that usually contains characters and numbers.
I need to have numbers always before characters, meaning the data should come in this order in the report for example:
0
1
A
B
So, before the report query, I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) to guarantee NLS_SORT in case it is originally set to FRENCH.
The problem here is that even after this call, I have the report ordered like this
A
B
0
1
And not the numbers before as it should be.
To try and find out where the problem was, I have created a table to use instead of the object type described above. In this case, it worked correctly. So all I know by now is that is has something to do with the type or cast, but what exactly? Does anybody now how to solve this without using a table?
Many thanks
AriadneI have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) why not order directly then:
SQL> select *
from table (sys.dbms_debug_vc2coll ('A', 1, '5', 'C', 'a'))
order by nlssort (column_value, 'NLS_SORT = binary')
COLUMN_VALUE
1
5
A
C
a
5 rows selected.? -
Netbeans + MySQL + Tomcat (problem with: not a known entity type)
I try to create WebApplication with Stripes in netbeans, but I have problem with connect to DB.
I have this code:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("jpaPU");
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
Person p = new Person();
p.setFirstName("name1");
p.setLastName("name2");
try
em.persist(p);
} catch(Exception e)
System.out.println(e.toString());
em.getTransaction().commit();
em.close();
emf.close();But in try{..} is em.persist(p); ant it prints into console this error: "java.lang.IllegalArgumentException: Object: db_entity.Person@13c7c35 is not a known entity type."
I do not know where is problem. Could you help me, please?
This is my persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="jpaPU" transaction-type="RESOURCE_LOCAL">
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<properties>
<property name="toplink.jdbc.user" value="root"/>
<property name="toplink.jdbc.password" value="adminadmin"/>
<property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/test"/>
<property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
<property name="toplink.ddl-generation" value="create-tables"/>
</properties>
</persistence-unit>
</persistence>When I run my application I can see in console:
[TopLink Info]: 2008.11.15 09:01:13.265--ServerSession(4794542)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
[TopLink Info]: 2008.11.15 09:01:13.578--ServerSession(4794542)--file:/D:/Workspace/NetBeansProjects/jpa/build/web/WEB-INF/classes/-jpaPU login successful..so, I hope persistence.xml is good
This is my class Person.java:
@Entity
public class Person implements Serializable {
@Id
@GeneratedValue
private Long id;
private String firstName;
private String lastName;
public void setId(Long id) { this.id = id; }
public Long getId() { return id; }
public String getFirstName() { return firstName; }
public void setFirstName(String firstName) { this.firstName = firstName; }
public String getLastName() { return lastName; }
public void setLastName(String lastName) { this.lastName = lastName; }Please, help me.I had the same "is not a known entity type" error when running under a development environment Eclipse/Tomcat using Toplink. But the almost same code and configuration worked when running under Eclipse as a stand-alone Java app.
Eventually I figured out (actually trial and error), that I had checked the toplink-essentials.jar libraries to be exported under: Eclipse Project/Java Build Path/Order and Export. I was messing around with libraries. Unchecking the export option there fixed the problem.
While its unlikely that this could have been your exact problem, I would check the library order and export configurations. Looking at other message boards about this problem, many seemed to have been caused or fixed by playing with their libraries. -
Problem with RGB Values for Canvas Type ‚Horizontal Toolbar' in Webforms 10
Hello,
I have a problem with the canvas type ‘Horizontal Toolbar’ in Webforms 10g.
When I try to set or change the RGB value of a ‘Horizontal Toolbar’ with the forms function
Set_Canvas_Property(‘my_horizontal_toolbar’, BACKGROUND_COLOR, rgb-value)
(at runtime) it has no effect in Webforms 10g for the canvas type ‘Horizontal Toolbar’ (the background color of the horizontal toolbar doesn’t change).
But it works fine for other canvas types like ‘Stacked’ or ‘Content’.
In Oracle 6i (Client / Server) this function works quiet well (even for the ‘Horizontal Toolbar’ canvas type).
The reason why we are using rgb values instead of visual attributes in this case is, that the color of the ‘Horizontal Toolbar’ should be customizeable (via a RGB Field) for our customers (at runtime).
Further more we are using the same technique for Text-Field-Items, Content- and Stacked-Canvases (and all works fine).
Maybe it has something to do with the pre-configured IAS color-schema (blaf).
But changing the color schema (e.g.: from 'blaf' to 'red') has no effect also.
Thanks for your help.This is probably bug 777312. Call Support for the latest info on this bug and for help getting it fixed.
-
Sap4rails - Problem with automatic handling of data types under Windows
Hello all,
I've been trying to develop my own application using sap4rails library but whenever I call one of standard RFCs I always get strange results. Here is the piece of the code from my model which gets data from CURRENCY_LIST table:
require "sap4rails"
class App < SAP4Rails
@@funcs = [
'BAPI_CURRENCY_GETLIST',
# User defined instance methods here
attr_accessor :message
class << self
def getlist()
RAILS_DEFAULT_LOGGER.info("[App]#getlist ")
App.BAPI_CURRENCY_GETLIST.call()
return App.BAPI_CURRENCY_GETLIST.currency_list.rows()
end
end
here is the code from the controller
class AppController < ApplicationController
layout "standard-layout"
def index
list
render_action 'list'
end
def list
RAILS_DEFAULT_LOGGER.info("[LIST] action started...")
@currencies = App.getlist()
end
end
end the code from the view:
<html>
<head>
<title> Currencies </title>
</head>
<body>
<h1>Listing Currencies</h1>
<table border="1">
<tr>
<% @currencies.first.each_key {|key| %>
<th><%= key %></th>
<% } %>
</tr>
<% for currency in @currencies %>
<tr>
<% currency.each_value {|val| %>
<td><%= val %></td>
<% } %>
</tr>
<% end %>
</table>
</body>
</html>
As you can see everything is just simple. I run my application on the Windows XP OS and always get such result:
<html>
<head>
<title>Currencies and Exchange Rates: index</title>
</head>
<body>
<html>
<head>
<title> Currencies </title>
</head>
<body>
<h1>Listing Currencies</h1>
<table border="1">
<tr>
<th>VALID_TO</th>
<th>ALT_CURR</th>
<th>LONG_TEXT</th>
<th>CURRENCY_ISO</th>
<th>CURRENCY</th>
</tr>
<tr>
<td>oran peseta </td>
<td>231And</td>
<td> </td>
<td>099991</td>
<td>ADP ADP02</td>
</tr>
<tr>
<td>babwean Dollar </td>
<td>231Zim</td>
<td> </td>
<td>699991</td>
<td>ZWD ZWD71</td>
</tr>
</table>
</body>
</html>
It seems like there is sth wrong with mapping data types from R/3 to data types in Ruby. Does anyone has an idea what could be wrong? I would be very grateful for any help.
Best Regards
Michal M.First can you please post all log file errors
>> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
2. You can try reinstall from start (In this case you have to make sure that you un-install all)
[Personal Site] [Blog] [Facebook]
Maybe you are looking for
-
i'm using mini-dvi to s-video, and outputting to a Panasonic somethinsomethin HDTV. However it's only outputing from 640-480 up to 1024-768 is there any way to get widescreen output out of the video out? do i just need a different connector? i know t
-
Cannot use any programs in Win 8.1
Hey Guys. I own an Asus Vivobook S200E and recently i have not been able to use it properly. Due to permissions i cannot install, uninstall, or run mostly all .exe files even though i am the main admin of the machine. I can still use all windows prog
-
Is it possible to insert Chapter Markers via the iOS app?
So I got myself involved in a project that involves creating audiobooks and podcasts. My responsibility involves scanning thru the files, inserting the marks to create the chapters, editing for content and finally creating the .m4a and .m4b files. Ve
-
Content Assist is not showing the id
My problem is I have a custom componts that created by me. but problem is flash builder is not showing the id of it for cntrol+space -->content Assist here is my layout/architecture Application TabNavigator out bound container(inside application) Nav
-
.htaccess redirect not working
I have created a .htaccess file with the following code. "RedirectMatch permanent ^/index.html$ http://www.caymanvacation.com/index.cfm" It is in the domains root folder with the files it is redirecting and it doesn't work. Any advice on how to det a